Dan*_*eld 3 microdata rich-snippets schema.org
我审查了以人为中心的数据。
我想用结构化数据来表示这些评论。
像这样的东西:(来自这里)

这是我尝试过的:(这是 Google 图书示例的变体)
<div itemscope itemtype="http://schema.org/Person">
<h2>
<span itemprop="honorificPrefix">Dr</span>
<span itemprop="name">Joe Smith</span>
</h2>
<h3 itemprop="jobTitle">Doctor</h3>
<div itemprop="description">Extra super Doctor</div>
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<div>Doctor rating:
<span itemprop="ratingValue">88</span> out of
<span itemprop="bestRating">100</span> with
<span itemprop="ratingCount">20</span> ratings
</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
现在,当我在谷歌的测试工具中测试这段代码时,我收到错误:
对于 Person 类型的对象,Google 无法识别属性aggregateRating。
那么这是否意味着没有办法利用结构化数据对人进行评分呢?
该aggregateRating属性仅针对CreativeWork// Offer// Organization/定义,但不Place针对.ProductPerson
备择方案:
\nAggregateRating定义了itemReviewedproperty,它需要 aThing作为值,因此它可以与 一起使用Person:
AggregateRating\xe2\x86\x92 itemReviewed\xe2\x86\x92Person
您可能还想考虑它\xe2\x80\x99是否真的是在这里获得评级的人,而不是这个人提供的东西(即,像体检这样的服务):
\nPerson\xe2\x86\x92 makesOffer\xe2\x86\x92 Offer
\n Offer\xe2\x86\x92 aggregateRating\xe2\x86\x92AggregateRating
| 归档时间: |
|
| 查看次数: |
1868 次 |
| 最近记录: |