Tim*_*Tim 6 schema.org json-ld
我正在尝试正确有效地使用 schema.org json-ld 建议来向网页添加语义。
我有一个独特组织的网页(http://example/organization1):
{
"@context": "http://schema.org/",
"@type": "Organization",
"@id" : "#ID_Organization1",
"name": "Organization1",
"url": "https://myorganization1.com
}
Run Code Online (Sandbox Code Playgroud)
我可以在另一个页面上重复使用该组织的信息而无需重新声明吗?( http://example/offers )
{
"@context": "https://schema.org/",
"@type": "Review",
"itemReviewed" : {
"@type" : "Organization",
"@id" : "http://example/organization1#ID_Organization1"
},
}
Run Code Online (Sandbox Code Playgroud)
小智 2
3.3 节点标识符
为了能够从外部引用 RDF 图中的节点,节点具有标识符非常重要。IRI 是链接数据的基本概念,对于真正链接的节点,取消引用标识符应该会产生该节点的表示。这可以允许应用程序检索有关节点的更多信息。在 JSON-LD 中,使用@id关键字来标识节点。
这可能意味着该元素的使用没有限制。
| 归档时间: |
|
| 查看次数: |
1898 次 |
| 最近记录: |