Skip to content

Commit d3e6f35

Browse files
Fix JSON-LD context literal
1 parent d5874b0 commit d3e6f35

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

spec.bs

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,17 @@ A first example illustrates the features of a `tss:Snippet`:
4141
tss:until "2026-01-02T00:00:00Z"^^xsd:dateTime;
4242
tss:pointType sosa:Observation;
4343
tss:context """
44-
"@context":{
45-
"time": {
46-
"@id":"sosa:resultTime",
47-
"@type":"xsd:dateTime"
48-
},
49-
"value": {
50-
"@id":"sosa:resultTime",
51-
"@type":"xsd:integer"
52-
}
53-
}
44+
"@context":{
45+
"id": "@id",
46+
"time": {
47+
"@id":"http://www.w3.org/ns/sosa/resultTime",
48+
"@type":"http://www.w3.org/2001/XMLSchema#dateTime"
49+
},
50+
"value": {
51+
"@id": "http://www.w3.org/ns/sosa/resultTime",
52+
"@type":"http://www.w3.org/2001/XMLSchema#integer"
53+
}
54+
}
5455
"""^^rdf:JSON;
5556
tss:about [ a tss:PointTemplate;
5657
sosa:madeBySensor <temp_sensor_1>;
@@ -141,14 +142,14 @@ When the optional JSON-LD context is provided through `tss:context`, a [=Snippet
141142

142143
```json
143144
{
144-
"@context": {
145+
"@context": {
145146
"id": "@id",
146-
"time": {
147-
"@id": "https://w3id.org/tss#time",
148-
"@type":"http://www.w3.org/2001/XMLSchema#dateTime"
147+
"time": {
148+
"@id": "https://w3id.org/tss#time",
149+
"@type":"http://www.w3.org/2001/XMLSchema#dateTime"
149150
},
150151
"value": "https://w3id.org/tss#value"
151-
}
152+
}
152153
}
153154
```
154155

0 commit comments

Comments
 (0)