hreview结合架构的评论项目类型

时间:2019-02-15 15:13:14

标签: html schema.org microdata structured-data microformats

多年来,我在产品页面上使用hreview微格式进行产品评论。因此,对于Google的结构化数据测试工具而言,hreview一切都很好,但是我收到了有关该产品的一些警告,而在这些警告中,我有一个有关“ review”部分的警告。我想摆脱那个警告。我在产品页面上使用了schema.org微数据,并且尝试为评论以及hreview添加schema.org“评论”项目类型。

所以我的问题是:将hreview与来自schema.org的review microdata结合起来是否存在问题或不好的做法?

我创建了一个我的评论部分的示例:

<div class="hreview review-wrapper" itemprop="review" itemscope itemtype="http://schema.org/Review">
    <div class="hidden item">
        <a class="url fn" href="product.com">
            <img src="/images/product.jpg" alt="umbrella" class="photo" />
        </a>
    </div>

    <div class="vcard reviewer">
        <div class="author">
            Review added by: <span class="fn" itemprop="author">John Doe</span>
        </div>

        <div class="adr">
            <div class="locality"><span>from Paris</span></div>
        </div>
    </div>

    <div class="rating" itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">
        <span itemprop="ratingValue">5</span>
    </div>

    <div class="write-date">
        Written on <abbr class="dtreviewed">15th february 2019</abbr>
        <meta itemprop="datePublished" content="2019-02-15">
    </div>          

    <div class="review-content">
        <div class="description">
            <p>
                <span itemprop="description">This is the best umbrella ever</span>
            </p>
        </div>
    </div>
</div>

0 个答案:

没有答案