Why doesn't Google Structured Data Testing Tool load external JSON-LD files referenced in @context?

by Benjamin   Last Updated June 12, 2019 10:04 AM

While playing with Google Structured Data Testing Tool, I noticed that it can handle inline @context in JSON-LD alright:

{
    "@context": {
        "Product": "https://mywebsite.com/Product",
        "name": "https://mywebsite.com/name"
    },
    "@type": "Product",
    "name": "test"
}

enter image description here

But fails to handle external JSON-LD files referenced in @context:

{
    "@context": "https://mywebsite.com/context.jsonld",
    "@type": "Product",
    "name": "test"
}

enter image description here

Instead, it resolves the terms relative to the current URL.

And when I check mywebsite.com's server logs, I can see that no attempt was made to request the context file.

Is this a willful violation of JSON-LD because Google only cares about specific vocabularies such as schema.org, or did I miss something?

Bonus question: can we expect the same behaviour from GoogleBot, i.e. not downloading external JSON-LD context files?



Related Questions


Updated May 06, 2016 08:01 AM

Updated October 19, 2017 21:04 PM

Updated June 29, 2016 08:01 AM

Updated July 19, 2018 09:04 AM