playground
playground copied to clipboard
Dealing with prefixed JSON-LD Files
My assumption is that prefixed JSON-LD examples like the following should be valid.
{
"@context": {
"wot":"http://w3c.github.io/wot/w3c-wot-td-context.jsonld#",
"td": "http://www.w3c.org/wot/td#",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"sch": "http://schema.org"
},
"@type": "td:Thing",
"wot:name":"echonet",
"wot:interactions": [
{
"@type": "wot:Property",
"wot:name": "operationStatus",
"wot:valueType": { "@type": "xsd:boolean" },
"wot:writable": true
}
]
}
see https://github.com/w3c/wot/blob/master/proposals/td-lifecycle/Echonet_def0.jsonld
It seems the tool expects
"wot:name":"echonet"
to be
"name":"echonet"
et cetera...