Skip to content

Consider context by reference with metadata #108

Open
@azaroth42

Description

@azaroth42

On the call of 2018-12-14, we discussed (briefly) #20, #98, and #86. One realization that came out of the discussion was that we currently have two ways to refer to contexts - either by references as a single string (the URI of the context) or by value as a JSON object (the actual context). In order to have in-document metadata about the context, such as asserting fixity such as via the SRI specification, we would need to have a URI with additional metadata about it.

Questions that arise:

  • How to distinguish between a context by value JSON object and a context by reference with metadata JSON object?
  • As the version is in the context, and this functionality is only version 1.1, how would we signal the processing requirement - some sort of transclusion within a context that has the version?
  • Are metadata properties extensible or fixed in the specification? If they're extensible, we would need some sort of meta-context wherein the mapping is asserted. If they're fixed, we would need to be very careful to accommodate the various use cases otherwise the tendency will be to simply add in new keys regardless and hope for the best.

For example:

{
  "@context": [
    "https://example.com/context-by-reference",
    {"id": "@id"},
    {"@version": 1.1, "@context": "https://example.com/context-with-metadata", "@sri": "sha256-abcd"}
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    defer-future-versionDefer this issue until a future version of JSON-LDprivacy-trackerGroup bringing to attention of Privacy, or tracked by the Privacy Group but not needing response.security-trackerGroup bringing to attention of security, or tracked by the security Group but not needing response.

    Type

    No type

    Projects

    Status

    Future Work

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions