我正在为我的网站实现结构化数据(schema.org(。
我一直在输入ratingValue
和reviewCount
,以及我能够动态输入的所有其他内容。
"review": [
{
"@type": "Review",
"reviewRating":{
"@type": "Rating",
"ratingValue": "4",
"bestRating": "5"
},
"author":{
"@type": "Organization",
"name": "xyz"
}
}
],
"aggregateRating":
{
"@type": "AggregateRating",
"ratingValue": "3.7",
"reviewCount": "15"
}
我可以把reviewCount
和ratingValue
放在哪里?我们没有要求我们的客户提供任何评论/评级
我认为在您的情况下,使用AggregateRating
是没有意义的,因为(假设的(网站作者只有一次评论。"聚合"基本上意味着"集合的摘要",因此使用AggregateRating
时,您表示存在或可能存在多个评论,而不仅仅是一个评论。
假设这是一个Product
,我会使用这个标记:
{
"@context": "https://schema.org/",
"@type": "Product",
"name": "Some Product",
"description": "This is some product",
"review": {
"@type": "Review",
"author": {
"@type": "Organization",
"name": "xyz"
},
"reviewRating": {
"@type": "Rating",
"bestRating": "5",
"ratingValue": "4",
"worstRating": "1"
}
}
}
建议使用结构化数据测试工具中的AggregateRating
,但不是必需的。
如果出于某种原因,您必须在该项目中使用AggregateRating
,那么您可以将reviewCount
硬编码为1
,并将ratingValue
设置为您已经提取到reviewRating
中的值。然而,这再次违背了AggregateRating
的目的。