找到你要的答案

Q:Will Google accept combined JSON-LD and HTML meta/microdata?

Q:谷歌将接受联合json-ld和HTML元/微数据?

I have a situation where I can put 99% of my structured data into JSON-LD in the of my product pages. But the only way I can get the UPC is to place it inline as microdata.

Will Google aggregate the product data from the JSON-LD and the inline microdata?

我有一个情况,我可以把我99%的结构化数据为json-ld在我的产品页。但我能得到的UPC的唯一方法是将其内嵌的数据。

将谷歌从json-ld和内联数据集产品数据?

answer1: 回答1:

Most likely yes.

  • Google’s Structured Data Testing Tool works fine if you are using JSON-LD and Microdata (and RDFa).

  • Google does not say otherwise (they did in the past), see their Structured Data Policies:

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

  • Some of Google’s structured data features are (currently) only documenting JSON-LD (for example, TV and Movie Watch Actions); for others, Google recommends using RDFa/Microdata, see for example their "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.

    It wouldn’t make sense for Google to restrict authors so that can’t make use of all the features (using different syntaxes) in the same document.

That said, you can never know for sure (their documentation is not always up-to-date, and their rules might change each day.)

最可能的是。

  • 如果您使用的是谷歌的json-ld和微观数据结构化数据测试工具工作正常(和RDFa)。

  • 谷歌不说别的(他们以前做过),看他们的结构化数据政策:

    数据可以被嵌入在你的网页使用任何支持的格式:三json-ld,RDFa和微数据。

  • 谷歌的一些结构化数据的特点是(目前)唯一的记录json-ld(例如,电视和电影看的动作);对于其他人来说,谷歌推荐使用RDFa或微数据,例如见他们”模式。“:

    […]谷歌推荐使用这些功能的json-ld。对于剩余的丰富片段类型和面包屑,谷歌推荐的微观数据或使用RDFa。

    它不会使意义的谷歌限制作者,不能利用所有的功能(使用不同的语法)在同一个文档。

也就是说,你永远无法确定(他们的文档并不总是最新的,他们的规则可能每天都会改变)。

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