Image views and ratings - schema.org

I need help getting some useful snippets on my site.

I inserted the survey microdata according to the instructions given on schema.org here http://schema.org/docs/gs.html#advanced_missing , using a star image for evaluation, and text for viewing the score, but testing it with a test tool He showed nothing. An example page where we use microdata for feedback .

and this is what i used

<div itemprop="reviews" itemscope itemtype="http://schema.org/AggregateRating"> <A HREF="javascript:an();"><img src="/images/stars/4.5.gif" border=0></a> <meta itemprop="ratingValue" content="4.5" /> <meta itemprop="bestRating" content="5" /> <BR> <span class="bottomnavfooter"> <A HREF="javascript:an();">Read (<span itemprop="ratingCount">70</span>) Reviews</A </span> </div> 

Then I created a static test page and made some changes using the Google instructions provided here http://www.google.com/support/webmasters/bin/answer.py?answer=172705 (which is different from what I found on schema.org !!), but still the test returned only the name of the product, not the price or reviews.

Here is my test page - Could you see where I am wrong

Thank you so much!

+7
source share
1 answer

The above code snippet will fail because it has itemprop for aggregateRating but is not enclosed in itemscope . It also doesn't help that your last anchor close tag is missing > , but I assume it was just a random case when you copied the code to SO.

Another problem is mainly due to the fact that the example on schema.org is incorrect (I wrote a bug report). They mention itemprop="reviews" instead of itemprop="aggregateRating" . The code should look like this:

 <div itemscope itemtype="http://schema.org/Offer"> <span itemprop="name">Ray-Ban 2132 New Wayfarer Sunglasses</span> <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"> <a href="javascript:an();"><img src="/images/stars/4.5.gif" border=0></a> <meta itemprop="ratingValue" content="4.5" /> <meta itemprop="bestRating" content="5" /> <br /> <span class="bottomnavfooter"> <a href="javascript:an();">Read (<span itemprop="ratingCount">70</span>) Reviews</a> </span> </div> </div> 
+9
source

All Articles