Skip to content

Instantly share code, notes, and snippets.

@jmjpro
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmjpro/9956487 to your computer and use it in GitHub Desktop.
Save jmjpro/9956487 to your computer and use it in GitHub Desktop.
Microdata review without ratings attempt 1
<!DOCTYPE html>
<html lang="en">
<head>
<title>Proper use of reviewCount</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
</head>
<body>
<div itemscope itemtype="http://schema.org/Article">
<h1 itemprop="name">Proper use of reviewCount</h1>
<div itemprop="description">Don't use reviewCount when you should use ratingCount.</div>
<div itemprop="articleBody">When marking up something with reviewCount make sure the something in question has reviews. Otherwise, use ratingCount.</div>
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">Rated <!--span itemprop="ratingValue">4</span-->/5 based on <span itemprop="reviewCount">2</span> reviews</div>
<div itemprop="review" itemscope itemtype="http://schema.org/Review"><span itemprop="name">A great article</span> - by <span itemprop="author">John</span>, <meta itemprop="datePublished" content="2013-10-16">October 26, 2013
<!--div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating"><span itemprop="ratingValue">5</span>/5</div-->
<span itemprop="reviewBody">What I especially liked about this piece was that it contained only 17 words.</span>
</div>
<div itemprop="review" itemscope itemtype="http://schema.org/Review"><span itemprop="name">A bit brief</span> - by <span itemprop="author">Mary</span>, <meta itemprop="datePublished" content="2013-10-16">October 26, 2013
<!--div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating"><span itemprop="ratingValue">3</span>/5</div-->
<span itemprop="reviewBody">It was okay, but I was hoping for something a bit more comprehensive.</span>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment