w3c / wot-binding-templates

Web of Things (WoT) Binding Templates
http://w3c.github.io/wot-binding-templates/
Other
23 stars 25 forks source link

@context for CoAP vocabulary #217

Open ektrah opened 1 year ago

ektrah commented 1 year ago

The CoAP protocol binding template doesn’t come with a “CoAP in RDF” ontology. Nevertheless, there need to be the necessary @context definitions so that the vocabulary can be used in JSON-LD.

ektrah commented 1 year ago

As a first step, #246 provides a context.jsonld file. Next, the CoAP binding document should be updated to describe how to use this file in a TD. There may be other adjustments needed to make it work; see https://github.com/w3c/wot-binding-templates/pull/246#pullrequestreview-1333140744. A good test could be if you can paste a TD using the CoAP vocabulary into the JSON-LD Playground and all JSON keys are resolved properly.

relu91 commented 1 year ago

On the TD repo, I did some unit tests to check jsonld correctness, we could introduce something similar also for each binding.