From w3c/wot-thing-description#894
Compacting the following:
{
"https://www.w3.org/2019/wot/td#hasPropertyAffordance": [
{
"http://purl.org/dc/terms/title": "Switch"
}
],
"http://purl.org/dc/terms/title": "46203"
}
with the following context:
{
"@context": {
"td": "https://www.w3.org/2019/wot/td#",
"dct": "http://purl.org/dc/terms/",
"properties": {
"@id": "td:hasPropertyAffordance",
"@type": "@id",
"@container": "@index",
"@context": {}
},
"title": "dct:title"
}
}
prevents "title" from being used in the output:
{
"@context": {
"td": "https://www.w3.org/2019/wot/td#",
"dct": "http://purl.org/dc/terms/",
"properties": {
"@id": "td:hasPropertyAffordance",
"@type": "@id",
"@container": "@index",
"@context": {}
},
"title": "dct:title"
},
"title": "46203",
"properties": {
"@none": {
"dct:title": "Switch"
}
}
}
Instead, it uses "dct:title". Removing "@context": {} from the context makes it work and use "title" instead.
From w3c/wot-thing-description#894
Compacting the following:
{ "https://www.w3.org/2019/wot/td#hasPropertyAffordance": [ { "http://purl.org/dc/terms/title": "Switch" } ], "http://purl.org/dc/terms/title": "46203" }with the following context:
{ "@context": { "td": "https://www.w3.org/2019/wot/td#", "dct": "http://purl.org/dc/terms/", "properties": { "@id": "td:hasPropertyAffordance", "@type": "@id", "@container": "@index", "@context": {} }, "title": "dct:title" } }prevents "title" from being used in the output:
{ "@context": { "td": "https://www.w3.org/2019/wot/td#", "dct": "http://purl.org/dc/terms/", "properties": { "@id": "td:hasPropertyAffordance", "@type": "@id", "@container": "@index", "@context": {} }, "title": "dct:title" }, "title": "46203", "properties": { "@none": { "dct:title": "Switch" } } }Instead, it uses "dct:title". Removing
"@context": {}from the context makes it work and use "title" instead.