reviewRating中的aggregateRating

时间:2017-10-11 19:52:05

标签: schema.org google-rich-snippets

我们正在尝试使用aggregateRating代码,但我们会在SDTT中收到此警告:

  

aggregateRating对象中的Review属性适用于评论本身,作为广告素材作品。您的意思是改为使用reviewRating

我们希望汇总所有用户的评论,而不是使用reviewRating(我们已经将这一评论用于我们自己的评论)。

有谁知道如何修复此错误?

JSON-LD(example page):

<script type="application/ld+json">
{
    "@context": "http://schema.org",
    "@type": "Review",
    "name": "It",
    "datePublished": "2017-09-06",
    "description": "Based on Stephen King's 1986 novel, […]",
    "url": "https://dev.commonsensemedia.org/movie-reviews/it",
    "reviewBody": "Based on Stephen King's 1986 novel, […]",
    "author": {
        "@type": "Person",
        "name": "Jeffrey M. Anderson",
        "sameAs": "https://dev.commonsensemedia.org/users/jeffrey-m-anderson"
    },
    "itemReviewed": {
        "@type": "Movie",
        "name": "It",
        "sameAs": "http://www.imdb.com/title/tt1396484/",
        "datePublished": "2017-09-08",
        "image": {
            "@type": "ImageObject",
            "url": "image.jpg"
        },
        "director": {
            "@type": "Person",
            "name": "Andres Muschietti"
        },
        "actor": [
            {
                "@type": "Person",
                "name": "Bill Skarsg\u00e5rd"
            },
            {
                "@type": "Person",
                "name": "Jaeden Lieberher"
            },
            {
                "@type": "Person",
                "name": "Finn Wolfhard"
            }
        ]
    },
    "publisher": {
        "@type": "Organization",
        "name": "Common Sense Media",
        "sameAs": "https://www.commonsensemedia.org"
    },
    "reviewRating": {
        "@type": "Rating",
        "ratingValue": "4"
    },
    "aggregateRating": {
        "@type": "AggregateRating",
        "ratingValue": "4.04651",
        "bestRating": 5,
        "worstRating": 1,
        "reviewCount": "43",
        "name": "Parents say",
        "description": "All parent member reviews for It"
    }
}
</script>

1 个答案:

答案 0 :(得分:0)

aggregateRating属性添加到Review项时,汇总评分用于审核,而非审核项目。

如果汇总评分适用于已审核的商品,则必须将aggregateRating添加到此商品(例如Movie)。

如果这是你想要的,你可以在aggregateRating下移动Movie,例如:

{
    "@context": "http://schema.org",
    "@type": "Review",

    "itemReviewed": {
        "@type": "Movie",

        "aggregateRating": {
          "@type": "AggregateRating"
        }

    }
}
相关问题