-1

我正在尝试将 Schema.org 结构化数据实施到我的网站。在我的一个页面上,我可以让用户对旅游景点(例如维也纳的圣斯蒂芬大教堂)进行评分和评论。现在我想用结构化数据来增强我的 HTML。

这是它的示例代码(也可在http://pastebin.com/u8YZtrpW上找到):

<!doctype html>
<html lang="de">
<head></head>
<body itemscope itemtype="http://schema.org/WebPage">


<div itemscope itemtype="http://schema.org/Place">
    <article class="boxy-full">
        <div>
            <div class="rating" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating" title="Rating: 4.50/5 <br># Ratings: 10">
                <meta itemprop="ratingValue" content="4.50"/>
                <meta itemprop="bestRating" content="5"/>
                <meta itemprop="ratingCount" content="10"/>

                <i class="glyphicon glyphicon-star"></i>
                <i class="glyphicon glyphicon-star"></i>
                <i class="glyphicon glyphicon-star"></i>
                <i class="glyphicon glyphicon-star"></i>
                <i class="glyphicon glyphicon-star-empty"></i>
            </div>
        </div>

        <h1 itemprop="name">Vienna - St. Stephan's Cathedral</h1>

        <div class="ccheader">
            <meta itemprop="image" content="/myimg.jpg"/>
            <img src="/myimg.jpg" alt="St. Stephan's Cathedral"/>
        </div>

        <div class="content">
            <p>Here comes some text to describe the Place...</p>
        </div>
    </article>

    <div class="boxy-full">
        <h2>User-Bewertungen</h2>

        <article class="blueblock" itemscope itemtype="http://schema.org/Review">
            <div class="pull-right" itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">
                <meta itemprop="ratingValue" content="5"/>
                <meta itemprop="bestRating" content="5"/>
                <meta itemprop="worstRating" content="1">
                <div class="rating" title="Rating: 5/5" data-placement="bottom">
                    <i class="glyphicon glyphicon-star"></i>
                    <i class="glyphicon glyphicon-star"></i>
                    <i class="glyphicon glyphicon-star"></i>
                    <i class="glyphicon glyphicon-star"></i>
                    <i class="glyphicon glyphicon-star"></i>
                </div>
            </div>
            <meta itemprop="itemreviewed" content="Stephansdom in Wien">
            <h3 itemprop="name">Review 1 Title</h3>

            <div class="co" itemprop="reviewBody">
                Here comes some review text...
            </div>
            <footer class="small">Created by Gastuser, on 19.01.2015
                <meta itemprop="datePublished" content="2015-01-19">
            </footer>
        </article>

        <article class="blueblock" itemscope itemtype="http://schema.org/Review">
            <div class="pull-right" itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">
                <meta itemprop="ratingValue" content="5"/>
                <meta itemprop="bestRating" content="5"/>
                <meta itemprop="worstRating" content="1">
                <div class="rating" title="Rating: 5/5" data-placement="bottom">
                    <i class="glyphicon glyphicon-star"></i>
                    <i class="glyphicon glyphicon-star"></i>
                    <i class="glyphicon glyphicon-star"></i>
                    <i class="glyphicon glyphicon-star"></i>
                    <i class="glyphicon glyphicon-star"></i>
                </div>
            </div>
            <meta itemprop="itemreviewed" content="Stephansdom in Wien">
            <h3 itemprop="name">Review 1 Title</h3>

            <div class="co" itemprop="reviewBody">
                Here comes some review text...
            </div>
            <footer class="small">Created by Gastuser, on 19.01.2015
                <meta itemprop="datePublished" content="2015-01-19">
            </footer>
        </article>
    </div>
</div>

</body>
</html>

我现在的问题是,用于测试结构化数据的 Google 网站管理员工具 ( https://www.google.com/webmasters/tools/richsnippets ) 给了我以下错误消息:

不会为此数据生成丰富的摘要,因为它似乎包含对一个项目的多个评论,但没有汇总评论信息。

但是有一个汇总的评级标记。我做错了什么?

4

1 回答 1

1

我不知道为什么 Google 的旧 SDTT 会报告这一点,但他们的新 SDTT不会:

除了Google 希望查看项目的author属性Review外,不会报告任何相关错误或警告。

于 2015-01-20T07:26:04.847 回答