1

根据 schema.orgPlace应该支持AggregateRating.

但是当我使用这个片段时:

<div class="row-fluid rating-summary" itemscope itemtype="http://schema.org/Place">         
  <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">    
    <span itemprop="ratingValue">4.5</span>
    <span itemprop="bestRating">5</span>                
    <span itemprop="ratingCount"21</span>
  </div>
</div>

PlaceProduct. 那当然是错误的。

我可以通过使用解决这个问题

itemscope itemtype="http://schema.org/WebPage"

上,body但我真的很想知道集成Rating租赁物业的最佳方式是什么。

4

1 回答 1

0

像这样试试

  <div itemscope itemtype="http://schema.org/Review">  
     <div itemprop="reviewRating" itemscope itemtype="http://schema.org/AggregateRating">    
        Avg. Rating:
        <span itemprop="ratingValue">9</span> 
        <meta itemprop="bestRating" content="10"/>   
        <span itemprop="ratingCount">4</span> Reviews 
     </div>

     <div itemprop="itemReviewed" itemscope itemtype="http://schema.org/Place">
        <a itemprop="url" href="wells-fargo-center.html">
        Wells Fargo Center
        </a>
        <div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
          <span itemprop="addressLocality">Philadelphia</span>,
          <span itemprop="addressRegion">PA</span>
        </div>
    </div>
  </div> 

如您所见,这个想法是将 Place 放在 Review 中。谷歌为此打了星。 在此处输入图像描述

对我来说不太好,但有效。

于 2013-07-27T12:19:22.050 回答