JSON-LD "@id" 可以用于 link 另一个网页上描述的项目吗?
Can JSON-LD "@id" be used to link to an item described on another web page?
我正在尝试正确有效地使用 schema.org json-ld 向网页添加语义的建议。
我有一个针对独特组织 (http://example/organization1) 的网页:
{
"@context": "http://schema.org/",
"@type": "Organization",
"@id" : "#ID_Organization1",
"name": "Organization1",
"url": "https://myorganization1.com
}
我可以在另一个页面上重复使用该组织的信息而不必重新声明吗? (http://example/offers)
{
"@context": "https://schema.org/",
"@type": "Review",
"itemReviewed" : {
"@type" : "Organization",
"@id" : "http://example/organization1#ID_Organization1"
},
}
勾选following JSON-LD 1.1 documentation information:
3.3 Node Identifiers
To be able to externally reference nodes
in an RDF graph, it is important that nodes
have an identifier. IRIs are a fundamental concept of Linked Data, for
nodes to be truly linked, dereferencing the identifier should result
in a representation of that node. This may allow an application to
retrieve further information about a node. In JSON-LD, a node is identified using the @id keyword.
这大概意味着这个元素的使用没有限制。
我正在尝试正确有效地使用 schema.org json-ld 向网页添加语义的建议。
我有一个针对独特组织 (http://example/organization1) 的网页:
{
"@context": "http://schema.org/",
"@type": "Organization",
"@id" : "#ID_Organization1",
"name": "Organization1",
"url": "https://myorganization1.com
}
我可以在另一个页面上重复使用该组织的信息而不必重新声明吗? (http://example/offers)
{
"@context": "https://schema.org/",
"@type": "Review",
"itemReviewed" : {
"@type" : "Organization",
"@id" : "http://example/organization1#ID_Organization1"
},
}
勾选following JSON-LD 1.1 documentation information:
3.3 Node Identifiers
To be able to externally reference nodes in an RDF graph, it is important that nodes have an identifier. IRIs are a fundamental concept of Linked Data, for nodes to be truly linked, dereferencing the identifier should result in a representation of that node. This may allow an application to retrieve further information about a node. In JSON-LD, a node is identified using the @id keyword.
这大概意味着这个元素的使用没有限制。