【发布时间】:2021-01-17 08:27:03
【问题描述】:
我有一个页面上的组织列表。
我为他们创建了一个JSON-LD 块。
您可以在邮件末尾找到它。
用验证器检查后,我得到了一个错误。
All values provided for itemListElement.item.url must point to the same page.
目前组织 URL 指向公司简介。
根据https://schema.org/Organization,应该是URL of the item.
是否所有组织 URL 都应指向带有列表的当前页面?
但那有什么意义呢?
另外,我想在最后的搜索中获得rating widget。 但谷歌忽略了这个列表。 我究竟做错了什么? 我应该每页只有一个评分吗?
任何建议将不胜感激。谢谢。
{
"@context": "https://schema.org",
"@type": "ItemList",
"name": "service pros",
"itemListOrder": "Unordered",
"numberOfItems": 3711,
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"item": {
"@context": "https://schema.org",
"@type": "Organization",
"url": "https://example.com/profiel/barotech",
"name": "Barotech",
"areaServed": {
"@type": "Place",
"address": {
"@type": "PostalAddress",
"addressLocality": "Rotterdam"
}
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": 9.6,
"reviewCount": 226,
"bestRating": 10,
"worstRating": 0
}
}
},
{
"@type": "ListItem",
"position": 2,
"item": {
"@context": "https://schema.org",
"@type": "Organization",
"url": "https://example.com/profiel/felix-montage-service",
"name": "Felix montage & service",
"logo": "https://www.example.com/images/sp/thumbnail_small/546ccf07-de13-41bf-9f5c-27f3205ea8f8.jpeg",
"areaServed": {
"@type": "Place",
"address": {
"@type": "PostalAddress",
"addressLocality": "Den Haag"
}
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": 7.9,
"reviewCount": 28,
"bestRating": 10,
"worstRating": 0
}
}
}
]
}
【问题讨论】:
-
似乎是一个验证器错误:stackoverflow.com/questions/40180660/…。其他工具,例如 extendsclass.com/json-schema-validator.html 或 search.google.com/test/rich-results,在您的示例中没有发现任何错误
-
看起来是这样。但是我在搜索查询中仍然没有任何小部件。所以还是有问题。
标签: schema.org json-ld structured-data microformats