TREEcg / specification

RDF vocabulary and hypermedia specification to publish your Linked Data using search trees
https://w3id.org/tree/specification
27 stars 12 forks source link

A standard JSON-LD context #108

Open pietercolpaert opened 3 months ago

pietercolpaert commented 3 months ago

A work item to work on a standard JSON-LD context and frame

{
    "@context" : "TODO",
    "@id": "#Collection",
    "@type": "Collection",
    "title": "My TREE collection",
    "view": {
        "@id": "", → must be the current page, so a relative IRI should always work
        "@type": "tree:Node",
        "relation": [
           {
              "@type": "GreaterThanOrEqualToRelation",
              "value":  {
                  "@value":"5",
                  "@type":"xsd:integer"
              }
              "path": "ex:number",
              "node": "?starting=5"
           }, …
        ]
     },
    "member": [
        … 
    ]
}

First part: the context should be made re-usable. When using JSON-LD examples, we should be able to assume that context is being used.

Second part: we could propose a URI for a profile in which this context is used. That way, when that profile is set, a client could parse the JSON in the member array streamingly.

This is also relevant for https://github.com/SEMICeu/LinkedDataEventStreams/issues/42

pietercolpaert commented 3 months ago

From today’s call: let’s focus first on the context. The profile can be created as a side-project: we’ll first need to see incredible performance gains if we want to add it to the spec.