[英]Google JSON Review Snippet not validating
我正在使用以下 JSON 来生成评论片段:
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "Review",
"name": "Great service from the start.",
"author": {
"@type": "Person",
"name": "Chris Tonich"
},
"reviewBody": "Very thorough...would highly recommend!",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.9",
"bestRating": "5",
"ratingCount": "110",
"itemReviewed": {
"@type": "Product",
"image": "https://www.homeintegrity.com.au/wp-content/uploads/2020/12/hi-new-logo2.jpg",
"name": "Pre-Purchase Building Inspections",
"priceRange": "$$",
"telephone": "08 8375 8130",
"address" :{
"@type": "PostalAddress",
"streetAddress": "PO Box 163",
"addressLocality": "Scarborough",
"addressRegion": "WA",
"postalCode": "6019",
"addressCountry": "AU"
}
}
}
}
</script>
Google Rich Snippet Test 说:
当Review
包含包含itemReviewed
的aggregateRating
时,为什么我会收到错误消息?
为什么它说我评价了一个Review
而不是一个Item
?
帮助表示赞赏。
您的结构不符合https://schema.org/上的架构
Review
必须包含字段itemReviewed
(或嵌入在已审核的 object 中)。 (参见https://schema.org/Review中的示例)
另一方面, Review
不得包含AggregateRating
(请参阅https://schema.org/AggregateRating ),因为AggreateRating
只能是Brand
、 CreativeWork
、 Event
、 Offer
、 Organization
、 Place
、 Product
的子节点,或Service
。 请注意,这些类型也可能包含Review
。
你的结构大致如下:
您可能想要的是以下内容:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.