json - Google JSON Review Snippet 未验证
问题描述
我正在使用以下 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
当contains aggregateRating
which contains时,为什么我会收到错误消息itemReviewed
?
为什么它说我评价的是 aReview
而不是 a Item
?
帮助表示赞赏。
解决方案
您的结构不符合https://schema.org/上的架构
AReview
必须包含一个字段itemReviewed
(或嵌入到被审查的对象中)。(参见https://schema.org/Review上的示例)
Review
另一方面,A不得包含 an AggregateRating
(请参阅https://schema.org/AggregateRating),因为 anAggreateRating
可能只是 a Brand
、CreativeWork
、Event
、Offer
、Organization
、Place
、Product
或的子节点Service
。请注意,这些类型也可能包含 a Review
。
你的结构大致如下:
- 回顾“从一开始就提供优质服务”。
- 作者“克里斯托尼奇”
- 综合评分“4.9”
- 产品“购买前建筑检查”
- 地址“6019 - ...”
- 产品“购买前建筑检查”
您可能想要的是以下内容:
- LocalBusiness“购买前建筑检查”
- 地址“6019 - ...”
- 回顾“从一开始就提供优质服务”。
- 作者“克里斯托尼奇”
- 综合评分“4.9”
推荐阅读
- firefox-addon - 有没有办法在我的网站的 Content-Security-Policy 中包含一个 firefox 扩展弹出窗口?
- python-3.x - 如何从 .har 文件重放服务器响应?
- applescript - 如何从 Applescript 启动特定版本的 Illustrator?
- amazon-web-services - 如何在 ECS(容器存储)上验证 AWS EBS(Beanstalk)?AccessDeniedException
- python - 将字符串中的字符拆分为列表,除非在 Python 3 中被多位整数包围
- c++ - 在两个文件之间共享静态全局变量
- sql - 将窗函数与比较运算符一起使用
- javascript - 要使用 Javascript 删除和替换的 HTML 元素
- javascript - JavaScript 字符串搜索对象数组
- javascript - 如何访问选择器的对象而不是事件选择器,