AggregateRating

From getSchema

(Difference between revisions)

Jump to: navigation, search

m (Created page with "{{Schema.org.property |domain= CreativeWork |range = AggregateRating |cardinality = 0..1 }} ==Description == The overall rating, based on a collection of reviews or rat…")
 
 
(5 intermediate revisions by one user not shown)
Line 1: Line 1:
?
{{Schema.org.property
 
?
|domain= [[CreativeWork]]
 
?
|range = [[AggregateRating]]
 
?
|cardinality = 0..1
 
?
}}
 
   
?
==Description ==
+
{{#widget:SchemaClass
  +
|name=AggregateRating
  +
}}
   
?
The overall rating, based on a collection of reviews or ratings, of the item.
+
{{CreativeWork}}
   
  +
==Definition==
   
?
==Example==
+
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.
   
  +
== Examples ==
  +
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.
  +
 
<source lang="html5">
 
<source lang="html5">
?
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
+
  <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">   
?
  <span itemprop="ratingValue">4</span> stars –
+
    <div class="rating-stars-img stars4-5" title="Most of the readers loved this article">
?
  based on <span itemprop="reviewCount">250</span> reviews
+
<meta itemprop="ratingValue" content="4.904762" />
?
</div>
+
    </div>
  +
    <div>Read Reviews (<span itemprop="reviewCount">21</span>)</div>
  +
</div>  
 
</source>
 
</source>

Latest revision as of 10:36, 12 August 2014

This Page Semantic Annotations

Definition

Aggregated rating of an item.

Examples

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