我无法弄清楚如何在同一页面上定义一堆视频.即搜索页面.假设您有一个可以返回50个不同视频的网站.那么你应该怎么定义这个JSON-LD?
我已经在主页上定义Organization的WebSite节点上定义了发布者,现在我想从其他页面上的文章链接到该发布者.但是,我也希望链接到它WebSite,@id如果我遵循使用URL作为的建议,他们自然会共享相同的内容@id.
{
"@context": "http://schema.org",
"@type": "WebSite",
"@id": "http://www.example.com/",
"url": "http://www.example.com/",
...
"publisher": {
"@type": "Organization",
"@id": "http://www.example.com/", <-- duplicated
"url": "http://www.example.com/"
}
}
Run Code Online (Sandbox Code Playgroud)
{
"@context": "http://schema.org",
"@type": "WebPage",
"@id": "http://www.example.com/news",
"url": "http://www.example.com/news",
"isPartOf": {
"@id": "http://www.example.com/" <-- site or publisher?
}
...
"publisher": {
"@id": "http://www.example.com/" <-- site or publisher?
}
}
Run Code Online (Sandbox Code Playgroud)
我假设每个节点的ID必须是唯一的,那么是否有一个最佳实践来统一ID,例如添加哈希?
{
"@id": "http://www.example.com/#site",
...
"publisher": {
"@id": "http://www.example.com/#publisher",
}
}
Run Code Online (Sandbox Code Playgroud)
如果可行的话,处理器(谷歌)会加载@id以查找节点的其余属性吗?
与此相关的是,url在许多节点类型中发现的属性是假设@id …