Seems incompatible with Google 'Article' schema

Created on 4 July 2023, over 1 year ago
Updated 5 July 2023, over 1 year ago

This is unexpected.
I'm publishing my schema.org article like this:

<script type="application/ld+json">{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "NewsArticle",
            "@id": "https://www.torquenews.com/1/teslas-impressive-model-3-train-delivery-sparks-excitement-and-speculation",
            "name": "Tesla\u0027s Impressive Model 3 Train Delivery Sparks Excitement and Speculation",
            etc...

And Google is completely ignoring it. The example google gives, and which is indicated on this modules settings page is like this:

<script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "NewsArticle",
      "headline": "Title of a News Article",
      etc...

This is so different I can't help I'm doing something wrong.
The module's data is encapsulated in side a @graph property, and includes an @id which google doesn't reference.
Can I be advised how the module can produce something so different and what I should do to make it comply with Google? I can hack it of course, but that shouldn't be necessary!

πŸ’¬ Support request
Status

Closed: works as designed

Version

1.26

Component

Other tags

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @matslats
  • Status changed to Closed: works as designed over 1 year ago
  • I realised this is an issue with the schema_metatag module and it is already handled there

  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    Glad to hear you were able to work it out, thanks for letting us know.

    BTW there's an error showing on that Tesla page related to a typo in token.tokens.inc, if you applied any patches or manually changed the file you should double-check the changes.

Production build 0.71.5 2024