问题原文
原帖链接 · Nick · CC BY-SA 3.0
I'm just starting to learn more about rich snippets and I saw that they support aggregate ratings. But on my blog, users cannot rate articles; they can only "like" them (like on Facebook). Some of the articles have hundreds of likes and I think being able to see that data from a SERP would give users more motivation to read those articles (much like seeing an article that had, say, 4 or 5 stars out of 5).
I haven't been able to find any information on doing this using rich snippets, so I'm thinking either it's not supported or I'm not looking in the right place.
Do rich snippets support "total likes" instead of a rating?
已采纳解答
原帖链接 · unor · CC BY-SA 3.0
The vocabulary Schema.org doesn’t offer a property for this purpose.
Schema.org defines the type LikeAction, but this is for representing the action that something has liked (or can like) something. (The type UserLikes is deprecated, but wouldn’t help anyway.)
You could represent with Schema.org that your article is the object of multiple LikeAction items (one for each like), but that would be a lot of additional markup/data for articles with many likes.
Example in Microdata:
<!-- user 23 liked article 42 -->
<div itemscope itemtype="http://schema.org/LikeAction">
<link itemprop="agent" href="http://example.com/users/23" />
<link itemprop="object" href="http://example.com/articles/42" />
<link itemprop="actionStatus" href="http://schema.org/CompletedActionStatus" />
</div>
<!-- user 12 liked article 42 -->
<div itemscope itemtype="http://schema.org/LikeAction">
<link itemprop="agent" href="http://example.com/users/12" />
<link itemprop="object" href="http://example.com/articles/42" />
<link itemprop="actionStatus" href="http://schema.org/CompletedActionStatus" />
</div>
<!-- user 5 liked article 42 -->
<div itemscope itemtype="http://schema.org/LikeAction">
<link itemprop="agent" href="http://example.com/users/5" />
<link itemprop="object" href="http://example.com/articles/42" />
<link itemprop="actionStatus" href="http://schema.org/CompletedActionStatus" />
</div>
(You could also add the datetime of the like. If only the count matters, you could omit agent and actionStatus.)
But anyway, Google Search doesn’t offer a Rich Snippet that would show the likes count.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
