schema.org - schema.org 中的产品类别?

标签 schema.org microdata google-rich-snippets

用作引用:https://support.google.com/webmasters/answer/146750?hl=en

您会注意到在“产品”下有一个属性类别,此外页面下方还有一个示例:

<span itemprop="category" content="Hardware > Tools > Anvils">Anvils</span>

我已经完全模仿了:

<span itemprop="category" content="kitchen sinks > stainless steel sinks > undermount">undermount</span>

但是,当我使用 Google 的结构化数据工具对其进行测试时,出现错误:

Error: Page contains property "category" which is not part of the schema.



我也在示例中意识到,它使用的是 data-vocabulary.org→Product,其中我使用的是 schema.org→Product。

现在在 http://schema.org/Product ,它没有提到任何地方的类别。 schema.org 不提供类别吗?或者我错过了什么?

最佳答案

category 是模式/商品的 itemprop,而不是模式/产品

要解决您的问题,请在产品中放置一个优惠,并将类别附加到优惠中。

关于schema.org - schema.org 中的产品类别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19031818/

相关文章:

navigation - schema.org:具有多个元素的 SiteNavigationElement

schema.org - 如何在有月费的产品/服务上实现 Rich Snippets?

google-search - 丰富的摘要仅显示在网站查询中,而不显示在正常搜索中

php - 图片缺失且必需 - Wordpress AMP 结构未添加图片属性

Schema.org 适用于没有地址的基于服务的企业

javascript - 正确部署 Google Rich Card 的结构化数据

html - 多语言网站的 Google 搜索结果中的网站名称

microdata - How to use multiple Vocabularies with HTML5 Microdata (different vocab than schema.org)

drupal - 在 Drupal 7 中为面包屑搜索引擎优化添加微数据或 schema.org

microdata - 使用图像进行评论计数和评分 - schema.org