SDTT error: "Service is not a known valid target type for the itemReviewed property"
SDTT error: "Service is not a known valid target type for the itemReviewed property"
使用以下 HTML+RDFa:
<div vocab="https://schema.org/" typeof="Service">
<meta property="name" content="My Service Name"/>
<div property="description">
For verified ratings of our services, please view our:
<a
href="https://www.capterra.com/link/to/captera"
target="_blank"
>4.9 Star Rating on Capterra</a>
</div>
<div property="aggregateRating" typeof="AggregateRating">
<div>
Capterra Rating:
<span property="ratingValue">4.9</span> out of
<span property="bestRating">5</span> with
<span property="ratingCount">112</span> ratings
</div>
</div>
</div>
这个片段在我的代码中,但是当我在 Google 的 Structured Data Testing Tool 中测试它时,我得到以下错误:
我无法接受这个错误,因为(如果我没看错的话),根据 Service
docs in https://schema.org/,这是受支持的 属性。我确定某处存在语法错误,或者,如果我敢触摸太阳,Google 是错误的。
我运行它通过了structured data它认出了它:
我做错了什么?
你没有做错什么。
2019 年 9 月 16 日,Google tweaked 他们的丰富网页摘要要求,其中 itemReviewed
属性 现在仅支持非常小的列表 Schema.org类型。
根据Google:
While, technically, you can attach review markup to any schema type,
for many types displaying star reviews does not add much value for the
user. With this change, we’re limiting the pool of schema types that
can potentially trigger review rich results in search. Specifically,
we’ll only display reviews with those types (and their respective
subtypes)...
之前CreativeWork
、Article
、BlogPosting
、Service
都支持,在结构化数据测试工具上也没有报错
现在,除以下列表之外的任何模式都将触发“_______ 不是 itemReviewed 属性 的已知有效目标类型。”错误。
itemReviewed
属性 的有效类型是:
Book
ListItem
Course
CreativeWorkSeason
CreativeWorkSeries
Episode
Event
Game
HowTo
LocalBusiness
MediaObject
Movie
MusicPlaylist
MusicRecording
Organization
Product
Recipe
SoftwareApplication
注意:还有其他有效的模式类型,可能不会在 aggregateRating 或 itemReviewed 的测试工具上触发错误消息。但是,从 Google 博客帖子中,我将其理解为 'Even if the schema is valid, stars / rich snippets may not show up for schemas other than those specifically listed.'
使用以下 HTML+RDFa:
<div vocab="https://schema.org/" typeof="Service">
<meta property="name" content="My Service Name"/>
<div property="description">
For verified ratings of our services, please view our:
<a
href="https://www.capterra.com/link/to/captera"
target="_blank"
>4.9 Star Rating on Capterra</a>
</div>
<div property="aggregateRating" typeof="AggregateRating">
<div>
Capterra Rating:
<span property="ratingValue">4.9</span> out of
<span property="bestRating">5</span> with
<span property="ratingCount">112</span> ratings
</div>
</div>
</div>
这个片段在我的代码中,但是当我在 Google 的 Structured Data Testing Tool 中测试它时,我得到以下错误:
我无法接受这个错误,因为(如果我没看错的话),根据 Service
docs in https://schema.org/,这是受支持的 属性。我确定某处存在语法错误,或者,如果我敢触摸太阳,Google 是错误的。
我运行它通过了structured data它认出了它:
我做错了什么?
你没有做错什么。
2019 年 9 月 16 日,Google tweaked 他们的丰富网页摘要要求,其中 itemReviewed
属性 现在仅支持非常小的列表 Schema.org类型。
根据Google:
While, technically, you can attach review markup to any schema type, for many types displaying star reviews does not add much value for the user. With this change, we’re limiting the pool of schema types that can potentially trigger review rich results in search. Specifically, we’ll only display reviews with those types (and their respective subtypes)...
之前CreativeWork
、Article
、BlogPosting
、Service
都支持,在结构化数据测试工具上也没有报错
现在,除以下列表之外的任何模式都将触发“_______ 不是 itemReviewed 属性 的已知有效目标类型。”错误。
itemReviewed
属性 的有效类型是:
Book
ListItem
Course
CreativeWorkSeason
CreativeWorkSeries
Episode
Event
Game
HowTo
LocalBusiness
MediaObject
Movie
MusicPlaylist
MusicRecording
Organization
Product
Recipe
SoftwareApplication
注意:还有其他有效的模式类型,可能不会在 aggregateRating 或 itemReviewed 的测试工具上触发错误消息。但是,从 Google 博客帖子中,我将其理解为 'Even if the schema is valid, stars / rich snippets may not show up for schemas other than those specifically listed.'