schema.org - Google 会接受组合的 JSON-LD 和 HTML 元/微数据吗?

标签 schema.org microdata google-rich-snippets json-ld

我有一种情况,我可以将 99% 的结构化数据放入产品页面的 JSON-LD 中。但我获得 UPC 的唯一方法是将其作为微数据内联。

Google 会汇总来自 JSON-LD 和内联微数据的产品数据吗?

最佳答案

很可能是的。

  • 谷歌的 Structured Data Testing Tool如果您使用 JSON-LD 和微数据(和 RDFa),则工作正常。
  • 谷歌没有另外说( they did in the past ),见他们的 Structured Data Policies :

    The data may be embedded in your webpage using any of three supported formats: JSON-LD, RDFa, and microdata.

  • Google 的一些结构化数据功能(目前)仅记录 JSON-LD(例如,TV and Movie Watch Actions);对于其他人,Google 建议使用 RDFa/Microdata,例如他们的 "About schema.org" :

    […] Google recommends the use of JSON-LD for those features. For the remaining Rich Snippets types and breadcrumbs, Google recommends the use of microdata or RDFa.



    谷歌限制作者是没有意义的,这样就不能使用同一文档中的所有功能(使用不同的语法)。

  • 也就是说,您永远无法确定(他们的文档并不总是最新的,而且他们的规则可能每天都在变化。)

    关于schema.org - Google 会接受组合的 JSON-LD 和 HTML 元/微数据吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31017712/

    相关文章:

    google-search - Google 站点链接搜索框的 Schema.org SearchAction 错误 : "valueName: missing and required"

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

    seo - 为什么我的富人名片显示在结构化数据部分?

    html - 关于 'Question' 类型 : "Missing a QAPage markup item on page to which this item should be associated." 的警告

    google-search - Google 结构化数据错误 : "All values provided for http://www.example.com/must have the same domain."

    html - 如何将 Schema.org 标签添加到酒店房间?

    schema.org - 使用 cssSelector : "The property value is not recognized by Google for an object of type WebPageElement." 选择 mainContentOfPage 的 DOM

    python - 我应该在 Python 中使用哪个微数据解析器

    google-webmaster-tools - Schema.org 和网站管理员工具丰富的片段工具

    schema.org - 验证 JSON-LD 标记中的组织 Logo 时出现 Unresolved 错误 : "A value for the ' url' field is required.“