aimas-upb / aimas-upb/CONSERT-CaaS

Refactor ThingWrapper serializations

Open
#13 0 comments 0 reactions 1 assignee Claimed by @sergiumhi View on GitHub
enhancement
Dominant language
Python
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

### Why
The standardization of a ThingDescription API is not yet available, so we are going forward with the existing implementation from [Mozilla WebThings](https://iot.mozilla.org/wot/) as a practical solution.

We wish however to remain compatible with ThingDescription draft specifications.

### What
- [ ] implement serialization of WebThing to simple JSON (see [this example](https://iot.mozilla.org/wot/#example-1-a-simple-thing-description)) - this is the default of WebThing

- [ ] implement serialization of WebThing as JSON-LD using the [JSON Schema for TD Instance Validation](https://w3c.github.io/wot-thing-description/#json-schema-for-validation)

- [ ] implement serialization of WebThing as RDF Triples using [ThingDescription Ontology model](https://www.w3.org/2019/wot/td)

### Notes
- A client must switch between the representations using a query string: ?format=json, ?format=jsonld, ?format=rdf
- JSON-LD and RDF representations should be interchangeable when converting to and from using [this tool](http://rdf-translator.appspot.com/) or Python RDFLib to read an RDF graph and serialize it to JSON-LD

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.