我找到了丰富网页摘要的代码:
<div itemscope itemtype=”http://schema.org/Product”>
<img itemprop=”image” src=”image-link.jpg” alt=”Product Name“/>
<span itemprop=”name”>Product Name</span>
<div itemprop=”aggregateRating itemscope
itemtype=”http://schema.org/AggregateRating”>
<span itemprop=”ratingValue”>4.5</span>
out of <span itemprop=”bestRating”>5</span>
based on <span itemprop=”ratingCount”>301</span> user ratings.
</div>
但我不需要对<span itemprop=”ratingCount”>301</span>
用户评分感到厌烦。因为收视率只有作者才能看到,如下图所示:
答案 0 :(得分:0)
在您发送的图片中,评论者的姓名不是内容作者。 但是,您可以将此代码用于您的内容:
<div itemprop="review" itemscope itemtype="http://schema.org/Review">
<span itemprop="reviewRating">5</span> stars -
<b>"<span itemprop="name">A masterpiece of literature</span>"</b>
by <span itemprop="author">John Doe</span>,
Written on <meta itemprop="datePublished" content="2006-05-04">May 4, 2006
<span itemprop="reviewBody">I really enjoyed this book. It captures the essential
challenge people face as they try make sense of their lives and grow to adulthood.</span>
</div>
和reviw作者的文章的间接作者
答案 1 :(得分:0)
在标记审核时,Google要求您标记itemReviewed(在Review中嵌套有效的模式类型 - 最能描述正在审核的项目的类型)。如果标记评级,Google建议通过reviewRating嵌套评级类型,并另外标记评级值(ratingValue)。
示例标记:
<div itemscope itemtype="http://schema.org/Review">
<time itemprop="datePublished" datetime="2016-09-04">September 4, 2016</time>
<span itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">
<span itemprop="ratingValue">5</span>
</span>
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
<span itemprop="name">Reviewer's Name</span>
<link itemprop="sameAs" href="http://example.com/reviewers-profile-page"/>
</span>
<span itemprop="description">Snippet from the body of the actual review that captures the author's opinion about the review subject.</span>
<span itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<a itemprop="sameAs" href="http://publishershomepage.com"><span itemprop="name">Publisher's Name</span></a>
</span>
<div itemprop="itemReviewed" itemscope itemtype="http://schema.org/Product">
<img itemprop="image" src="product-image.jpg" alt="Product Image"/>
<span itemprop="name">Product Name</span>
</div>
在Google doc中查看有关要求的更多详细信息。