类型为Place的Rich Snippet AggregateRating

时间:2013-07-09 12:31:25

标签: microdata schema.org

根据schema.org Place应支持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>
在我与Place交换Product之前,

Googles Rich Snippet tester不会显示评分。那当然是错的。

我可以使用

来解决这个问题
itemscope itemtype="http://schema.org/WebPage"
<{1>}上的

但我真的想知道将body与租赁属性进行整合的最佳方法是什么。

1 个答案:

答案 0 :(得分:0)

像这样尝试smth

  <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。谷歌为此提供了明星。 enter image description here

对我不太好但是有效。