Next time you sit down to code up some JSON document -- even one you think only you will use -- consider mapping your key names to meaningful vocabulary terms via JSON-LD. Your future self will thank you.
从代码中可以看到,CSDN 使用了 application/ld+json 这种MIME type 进行了脚本挂载。熟悉知识图谱和 web 4.0 的朋友对这玩意儿应该不陌生,它是 JSON-LD (JSON for Linking Data) 格式的脚本标签。在语义网构建中常被使用。 上面的键值,比如 upDate,pubDate 都是固定的,可以在 google 搜索引擎指南中找到所有支持:...
Username for 'https://gitee.com': userName Password for 'https://userName@gitee.com': # 私人令牌 main 分支(3) 管理 管理 main test master nextjs-learning / package-lock.json package-lock.json 251.60 KB
hZ2VFeHRlbnNpb25zIjpbInRzeCIsInRzIiwianN4IiwianMiXSwicG93ZXJlZEJ5SGVhZGVyIjp0cnVlLCJjb21wcmVzcyI6dHJ1ZSwiaW1hZ2VzIjp7ImRldmljZVNpemVzIjpbNjQwLDc1MCw4MjgsMTA4MCwxMjAwLDE5MjAsMjA0OCwzODQwXSwiaW1hZ2VTaXplcyI6WzE2LDMyLDQ4LDY0LDk2LDEyOCwyNTYsMzg0XSwicGF0aCI6Ii9fbmV4dC9pbWFnZSIsImxvYW...
Specifically, thejson-silostores "stories" which are machine-readable representations of people, products, places, etc. in the form of JSON-LD and Schema.org. Additionally, it provides a simple mechanism for file storage and retrieval, for any accompanying metadata such as images. Thejson-siloca...
import jsonldDatasetProxy, { write } from "jsonld-dataset-proxy"; import { ContextDefinition } from "jsonld"; import { serializedToDataset } from "o-dataset-pack"; import { namedNode } from "@rdfjs/data-model"; async function start() { // Define initial data const initialData = ` ...
const helloWorld = () => 'hello world'; const template = { updateAt: '@now', age: '@since', stockSummary: '@stock', id: '@uuid | ellipsis:10', expensive: '{{price} | gte:500:__}', LDPictures: '{{pictures} | stringify:__:null:0}', injectedFunction: helloWorld, echo: '...
"help_next", "getToken_next" ] }, "JD_ddwj": { "version": "上次数据更新于:9.25.1", "pv": "openapp.jdmobile://virtual?params=%7B%22des%22%3A%22m%22%2C%22category%22%3A%22jump%22%2C%22url%22%3A%22https%3A%2F%2Fu.jd.com%2FrL0I4ld%22%7D%0A", "endJump"...
Helper for creating output of the JSON-LD data Syntax: {{jsonLD}} Example output: // JSON-LD object output Should be used in the …
ProcessJS = function (ele) { for (var t = "", x = ele.getElementsByTagName("script"), i = 0; i < x.length; i++) { if (x.getAttribute("type") !== "application/ld+json") t = t + "\n" + x.text; } ... Votes 3 Upvotes Translate Translate ...