Google does not correctly merge microdata and json+ld in the same page using same URI id

后端 未结 2 1822
广开言路
广开言路 2020-12-06 22:29

I have a product page with \"microdata\" and \"json+ld\" codes. Both of the codes refers to the same @id URI object (http://www.example.org/product#this) so I would expect t

相关标签:
2条回答
  • 2020-12-06 23:12

    My guess would be that Google’s Structured Data Testing Tool doesn’t support this for different syntaxes, as it seems to work if using the same syntax. But as they still display the URIs correctly (http://www.example.org/product#this in both cases), you could argue that it’s just the tool’s interface that doesn’t merge them.
    However, as far as I know Google does not document to support these subject URIs anyway (but this doesn’t necessarily mean that they don’t support it), so it might not matter for them.

    Your example works fine if using http://linter.structured-data.org/: it creates one item with both brands and both offers.

    0 讨论(0)
  • 2020-12-06 23:15

    While technically it is feasible to merge data coming from two different syntaxes (read microdata and json-ld) and the Structured Data Linter confirms so, Google does not support it, which means properties won't be merged (and won't satisfy Rich Snippets' requirements).

    We have a final confirmation by several actors in the SEO World, including Dan Brickley and Jarno van Driel.

    in general you can use both syntaxes side by side, but you won't get the fine-grained merging of triples by ID that a pure RDF application might expect (Dan Brickley on Twitter, Jan 14th, 2020, bold mine)

    --

    I think @danbri already was pretty clear. Highly doubt you'll get a different answer from other Googlers. (Jarno van Driel on Twitter, Jan 14th, 2020)

    The proposed solution so far is to parse the microdata and publish it as JSON-LD.

    0 讨论(0)
提交回复
热议问题