Skip to content

Is there a scope context mechanism for clearing context definitions? #98

Closed
@dlongley

Description

@dlongley

Is there a way to use the scoped context mechanism to "embed" information in a JSON-LD document such that all term definitions are cleared? So, for example, suppose we had this:

{
  "@context": {
    "@version": 1.1,
    "someTermToClear": "ex:someTermToClear",
    "record": {"@id": "ex:record", "@container": "@graph", "@context": null}
  },
  "someTermToClear": "should be defined here",
  "record": {
    "@context": {
      "someOtherStuff": "ex:someOtherStuff"
    },
    "@id": "ex:someId",
    "someOtherStuff": "this should be defined here",
    "someTermToClear": "this should NOT be defined here"
  }
}

The goal here is to avoid requiring the author of record value (or a user of it) to have to know to clear any terms in an "outer container". This may allow "safer" composition/embedding of JSON-LD documents.

Metadata

Metadata

Assignees

No one assigned

    Labels

    satisfiedRequirement Satisfied

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions