json-ld output has incorrect @context value

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • 2023-02-28
    • Affects Version/s: None
    • Component/s: None
    • None

      As identified by a colleague, pasting an MB json-ld document into the json-ld playground (https://json-ld.org/playground/) gives a warning about badly formed data:

      jsonld.InvalidUrl: Dereferencing a URL did not result in a valid JSON-LD object. Possible causes are an inaccessible URL perhaps due to a same-origin policy (ensure the server uses CORS if you are using client-side JavaScript), too many redirects, a non-JSON response, or more than one HTTP Link Header was provided for a remote context.

      he says "If you change the value in @context from https://schema.org to https://schema.org/docs/jsonldcontext.json, then it will magically work as expected"

            Assignee:
            Nicolás Tamargo
            Reporter:
            Alastair Porter
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2023-02-28