Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm trying to add more structural information to my webpages by using the microdata format suggested in www.schema.org. The procedure seems straight forward but I'm having issues validating my results in the Google Rich Snippets Testing Tool.

Check out this review page, here I'm using the 'reviewRating' property item to specify rating values for that particular review. I followed the same format as defined in schema.org/Rating but this markup fails validation in Google's rich snippet testing tool with the following error info.

Item 
Type: http://schema.org/rating
reviewrating = 5 
ratingvalue = 5 
Warning: Property "reviewrating" was not found.
share|improve this question
    
I would work on fixing your validation errors before worrying about Google - validator.w3.org/… –  Toby Nov 29 '11 at 0:09
add comment

1 Answer

Ok, first of all you are not using the microformat suggested by www.schema.org. If you would, your markup code would look like this:

<span itemprop="reviews" itemscope itemtype="http://schema.org/Review" style="display:none;">
<div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">
      <meta itemprop="worstRating" content="1">
      <span itemprop="ratingValue">2</span>/
      <span itemprop="bestRating">5</span>
</div>
<div class="miniratingbox" itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">
      <div class="miniratingvalue blue" itemprop="bestRating">5</div>
      <div class="miniratingimg">★</div>
</div>

and instead of wrapping your complete "reviewContentWrapper" class with a wrong microdata format, you should specifically use the microdata where it belongs ... which in your case is totally unnecessary, since you already passed that information (with only two stars, see above) ...

<span class="rating-foreground" style="width:90%" itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">
    <meta itemprop="ratingValue" content="5">
    ★
    ★
    ★
    ★
    ★
</span>

Hope this helps!

For more information, please consult this page and read thoroughly: http://schema.org/Rating

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.