本文介绍了是否可以使用结构化数据查看人员?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我查看了以为中心的数据.

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 defines the itemReviewed property, which expects a Thing as value, so it can be used with Person:

AggregateRatingitemReviewedPerson

您可能还想考虑是否真的是在这里获得评分的人,而不是该人提供的东西(即像体检这样的服务):

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

PersonmakesOfferOffer
OfferaggregateRatingAggregateRating

这篇关于是否可以使用结构化数据查看人员?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-11 22:06