Web of Things (WoT) Working Group
F2F Düsseldorf - July 2017
Daniel Peintner
Identify suitable serialization formats for WoT Thing Description
What is not a goal?
Text-based
Binary-based
{
"@context": ["http://w3c.github.io/wot/w3c-wot-td-context.jsonld"],
"@type": ["Thing"],
"name": "MyTemperatureThing",
"interaction": [{
"@type": ["Property"],
"name": "temperature",
"outputData": { "type": "number" },
"writable": false,
"link": [{
"href" : "coap://mytemp.example.com:5683/temp",
"mediaType": "application/json"
}]
}]
}
CBOR
EXI4JSON
{
"@context": ["http://w3c.github.io/wot/w3c-wot-td-context.jsonld"],
"@type": ["Thing"],
"name": "MyTemperatureThing",
"interaction": [{
"@type": ["Property"],
"name": "temperature",
"outputData": { "type": "number" },
"writable": false,
"link": [{
"href": "coap://mytemp.example.com:5683/temp",
"mediaType": "application/json"
}]
}]
}