Skip to content

@base in remote context not ignored #142

Open
@balhoff

Description

@balhoff

For this document in the JSON-LD Playground:

{
  "@context": [
    "https://raw.githubusercontent.com/monarch-initiative/monarch-app/master/conf/monarch-context.jsonld",
    {
      "ex": "http://example.org/",
      "ex:friendOf": {
        "@type": "@id"
      },
      "ex:hasFriend": {
        "@type": "@id"
      }
    }
  ],
  "@id": "3456",
  "ex:name": "Jim",
  "ex:friendOf": "1234",
  "ex:hasFriend": "9876"
}

The value of @base found in the remote context is used to expand IRIs, like http://monarch-initiative.org/1234.

This seems to be disallowed by the spec: "Please note that the @base will be ignored if used in external contexts."

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions