how to use schema.org metadata on a review for multiple ratings? -


i need markup review metadata product, review have multiple ratings service, satisfaction, quality, lifetime etc in original schema.org documentation review (http://schema.org/review) there property/field: reviewrating using can use 1 field need provide metadata fields, there solution that?

thanks.

actually 1 property isn't issue here since can used multiple times. there lot of discussions around cardinality of schema.org properties. can dive details here (issue @ open tracker) , here (w3c wiki page).

i follow rule stated guha:

right now, allowed have multiple values.

another part of question how describe different ratings. can use mechanism of "multiple inheritance" in "serious" programming language. 1 entity may have several types. in case 1 type http://schema.org/rating , (quality, service, etc) can external schema.org vocabulary. e.g., productontology candidate (you can use http://www.productontology.org/id/quality_philosophy, http://www.productontology.org/id/customer_service accordingly). rdfa can go - language provides necessary mechanisms that. microdata (and bet you're using one) need "dirty hack" , use additionaltype property.

so simple example of need smth this:

  <div itemscope itemtype="http://schema.org/review">     <span itemprop="name">not happy camper</span> -     <span itemprop="author">ellie</span>,     <meta itemprop="datepublished" content="2011-04-01">april 1, 2011     <div itemprop="reviewrating" itemscope itemtype="http://schema.org/rating">       <meta itemprop="additionaltype" content="http://www.productontology.org/id/quality_philosophy">       <meta itemprop="worstrating" content = "1">       <span itemprop="ratingvalue">1</span>/       <span itemprop="bestrating">5</span>stars     </div>         <div itemprop="reviewrating" itemscope itemtype="http://schema.org/rating">       <meta itemprop="additionaltype" content="http://www.productontology.org/id/customer_service">       <meta itemprop="worstrating" content = "1">       <span itemprop="ratingvalue">5</span>/       <span itemprop="bestrating">5</span>stars     </div>     <span itemprop="description">the lamp burned out , have replace     it. </span>   </div> 

and google validator sees data.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -