eclipse-thingweb / eclipse-thingweb/playground

Dealing with prefixed JSON-LD Files

Open
#1 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
34
Forks
23
Avg merge
18h 6m
Merged PRs (30d)
11

Description

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...

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.