2013-07-09 32 views
1

根據schema.org Place應該支持AggregateRatingRich Snippet AggregateRating類型地點

但是當我使用這個片段:直到我Product交換Place

<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> 

Googles Rich Snippet tester將不顯示等級。這當然是錯誤的。

我可以用

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

解決這個問題,但我真的想知道什麼是整合Rating用於出租物業的最佳途徑。這樣

<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> 

+0

我不明白這一點。當我使用Google或Yandex(http://webmaster.yandex.ru/microtest.xml)工具驗證您的代碼段時,它工作得很好。 (ITEMTYPE = http://schema.org/Place aggregaterating ITEMTYPE = http://schema.org/AggregateRating ratingvalue = 4.5 bestrating = 5 ratingcount = 21) – ajax

+0

呀,但產品替代地方,你會看到Google會在實際搜索列表中顯示評分星。 – Mike

+0

星星,有你。請參閱下面的答案。 – ajax

回答

0

嘗試不便正如你所看到的想法是把裏面放上評論。 Google爲此提供了明星。 enter image description here

對我來說不是很好,但對我有用。