Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A standard JSON-LD context #108

Open
pietercolpaert opened this issue Apr 2, 2024 · 1 comment
Open

A standard JSON-LD context #108

pietercolpaert opened this issue Apr 2, 2024 · 1 comment

Comments

@pietercolpaert
Copy link
Member

pietercolpaert commented Apr 2, 2024

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 SEMICeu/LinkedDataEventStreams#42

@pietercolpaert
Copy link
Member Author

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.

@pietercolpaert pietercolpaert changed the title A standard JSON-LD context and frame A standard JSON-LD context Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant