小编Tim*_*Tim的帖子

JSON-LD“@id”可以用于链接到另一个网页上描述的项目吗?

我正在尝试正确有效地使用 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)

schema.org json-ld

6
推荐指数
1
解决办法
1898
查看次数

标签 统计

json-ld ×1

schema.org ×1