Skip to content

Context-based optimization #4

@vcharpenay

Description

@vcharpenay

Some recurrent patterns within a JSON-LD documents could be summarized as a context entry and serialized in a more compact way using a local context.

E.g.

{
  "@graph": [
    { "p": { "@value": "2", "@type": "xsd:unsignedInt" } },
    { "p": { "@value": "4", "@type": "xsd:unsignedInt" } }
  ]
}

is equivalent to:

{
  "@context": {
    "p": { "@type": "xsd:unsignedInt" }
  },
  "@graph": [
    { "p": 2 },
    { "p": 4 }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Non TR Work

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions