我正在使用以下 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
时收到错误包含 aggregateRating
其中包含 itemReviewed
?为什么它说我评价了
Review
而不是 Item
?帮助表示赞赏。
最佳答案
您的结构不符合 https://schema.org/ 上的架构
一个 Review
必须包含一个字段 itemReviewed
(或嵌入在被审查的对象中)。 (参见 https://schema.org/Review 中的示例)
一个 Review
另一方面不能包含 AggregateRating
(见 https://schema.org/AggregateRating),因为 AggreateRating
可能只是 Brand
的子节点, CreativeWork
, Event
, Offer
, Organization
, Place
, Product
, 或 Service
.请注意,这些类型可能包含 Review
也。
你的结构大致如下:
您可能想要的是以下内容:
关于json - Google JSON Review Snippet 未验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65878379/