在HTML网站中实施结构化架构

我正在为我的网站实施结构化数据(schema.org)。

我一劳永逸地投入ratingValuereviewCount,其他一切我都可以动态投入。

"review": [
    {
        "@type": "Review","reviewRating":{
            "@type": "Rating","ratingValue": "4","bestRating": "5"
        },"author":{
            "@type": "Organization","name": "xyz"
        }
    }
],"aggregateRating": 
{
    "@type": "AggregateRating","ratingValue": "3.7","reviewCount": "15"
}

我可以在哪里放置reviewCountratingValue? 我们不要求客户提供任何评论/评分

wpz731 回答:在HTML网站中实施结构化架构

我认为在您的情况下,使用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"
        }
    }
}
建议使用Structured Data Testing Tool中的

AggregateRating,但不是必需的。

如果由于某种原因必须在该项目中使用AggregateRating,则可以将reviewCount硬编码为1并将ratingValue设置为您要使用的值已经加入reviewRating。但这再次违背了AggregateRating的目的。

本文链接:https://www.f2er.com/3067530.html

大家都在问