AggregateRating

(Difference between revisions)

Jump to: navigation, search

m
Line 1: Line 1:
 
{{CreativeWork}}
 
{{CreativeWork}}
  +
{{Schema.org.class
  +
|supertype = [[Thing]], [[Intangible]], [[Rating]]
  +
|subtype = [[AggregateRating]]
  +
|iproperties = [[additionalType]]:[[URL]], [[description]]:[[Text]], [[name]]:[[Text]], [[image]]:[[URL]], [[sameAs]]:[[URL]], [[url]]:[[URL]], [[bestRating]]: [[Number]] or [[Text]], [[ratingValue]]: [[Number]] or [[Text]], [[worstRating]]: [[Number]] or [[Text]]
  +
|properties = [[itemReviewed]]:[[Thing]], [[ratingCount]]:[[Number]], [[reviewCount]]:[[Number]]
  +
}}
   
?
{{UnderConstruction}}
+
Aggregated rating of an item. 
  +
* [[itemReviewed]] The item that is being reviewed/rated.
  +
* [[ratingCount]] Number The count of total number of ratings.
  +
* [[reviewCount]] Number The count of total number of reviews.
   
?
==Description ==
+
== Example ==
?
 
+
Usually the [[ratingValue]] and [[reviewCount]] are computed by the rating system used by the page. The container with <code>title="Most of the readers loved this article"</code> is for illustrative purpose — it should render, for example, a  5-star rating system.
?
 
+
?
==Example==
+
<source lang="html5">
  +
  <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"> 
  +
    <div class="rating-stars-img stars4-5" title="Most of the readers loved this article">
  +
<meta itemprop="ratingValue" content="4.904762" />
  +
    </div>
  +
    <div>Read Reviews (<span itemprop="reviewCount">21</span>)</div>
  +
</div>
  +
</source>

Revision as of 16:30, 30 January 2014

This Page Semantic Annotations

File:AggregateRating.png

AggregateRating UML Diagram
Supertypes = Thing, Intangible, Rating
Subtypes = AggregateRating
Inherited properties = additionalType:URL, description:Text, name:Text, image:URL, sameAs:URL, url:URL, bestRating: Number or Text, ratingValue: Number or Text, worstRating: Number or Text
Properties = itemReviewed:Thing, ratingCount:Number, reviewCount:Number
Defined by = http://schema.org/AggregateRating
Install RuleTheWeb! the Firefox extension using Schema.org annotations!

Aggregated rating of an item.

Example

Usually the ratingValue and reviewCount are computed by the rating system used by the page. The container with title="Most of the readers loved this article" is for illustrative purpose — it should render, for example, a 5-star rating system.

  <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">       <div class="rating-stars-img stars4-5" title="Most of the readers loved this article"> 	<meta itemprop="ratingValue" content="4.904762" />     </div>	     <div>Read Reviews (<span itemprop="reviewCount">21</span>)</div>  </div>

Personal tools

Namespaces

Variants

Actions

Navigation

Toolbox