LinkedIoT / Sensor-Board-Node

0 stars 1 forks source link

Message structure for wireless transfer #9

Open bergos opened 6 years ago

bergos commented 6 years ago

A structure like in the JSON-LD playground link should be the output at the gateway. The actual data transferred should look like this:

{"temperature": 20.1}

The semantics is added by using the context given during the linking of the device.

There is currently no ontology at that namespace. It's just a dummy and should be later adapted to vocabs like iot.schema.org. This is also just a basic idea. The structure may change during development.

https://json-ld.org/playground/#startTab=tab-expanded&json-ld=%7B%22%40context%22%3A%7B%22%40vocab%22%3A%22https%3A%2F%2Fns.bergnet.org%2Fdark-horse%2F%22%7D%2C%22%40id%22%3A%22mqtt%3A%2F%2Fexample.org%2Froom-a%2Ftemperature-sensor%22%2C%22%40type%22%3A%22Measurement%22%2C%22temperature%22%3A20.1%7D