问题描述
我查看了以人为中心的数据.
I have review data centered around people.
我想用结构化数据来代表这些评论.
I would like to represent these reviews with structured data.
类似这样的东西:( 从这里 )
Something like this: (from here)
这是我尝试的方法:(这是Google图书示例的变体这里)
This is what I tried: (It's a variation of the Google's Book example here)
<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>
现在,当我在 Google的测试工具中测试此代码时,我得到错误:
Now when I test this code in Google's testing tool, I get the error:
那么这是否意味着没有办法对具有结构化数据的人进行评分?
So does this mean that there is there no way to rate people with structured data?
推荐答案
仅 aggregateRating
属性为CreativeWork
/Offer
/Organization
/Place
/Product
定义,但没有为Person
定义.
The aggregateRating
property is only defined for CreativeWork
/Offer
/Organization
/Place
/Product
, but not for Person
.
替代品:
-
AggregateRating
定义了itemReviewed
属性,该属性期望以Thing
作为值,因此可以与Person
一起使用:
AggregateRating
defines theitemReviewed
property, which expects aThing
as value, so it can be used withPerson
:
AggregateRating
→itemReviewed
→Person
您可能还想考虑是否真的是在这里获得评分的人,而不是该人提供的东西(即像体检这样的服务):
You might also want to consider if it’s really the person that gets rated here, and not something that this person offers (i.e., a service like a medical examination):
Person
→ makesOffer
→Offer
Offer
→ aggregateRating
→AggregateRating
Person
→ makesOffer
→ Offer
Offer
→ aggregateRating
→ AggregateRating
这篇关于是否可以使用结构化数据查看人员?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!