Skip to content

Commit 54422d0

Browse files
committed
Update example of smart data models to allow JSON-LD
1 parent 67c85e5 commit 54422d0

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

examples/smart-data-models.json

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
11
[
22
{
3-
"description": "JSON Schemas for NGSI v2 models in their LD representation from https://fiware.github.io/data-models/ (https://github.com/FIWARE/data-models) and https://smart-data-models.github.io/data-models/ (https://github.com/smart-data-models/data-models)",
4-
"query": "`@context` ? type : false",
5-
"cases": {
6-
"": ""
7-
}
8-
},
9-
{
10-
"description": "JSON Schemas for NGSI v2 models (not LD) in 'Normalized NGSI response' representation from https://fiware.github.io/data-models/ (https://github.com/FIWARE/data-models) and https://smart-data-models.github.io/data-models/ (https://github.com/smart-data-models/data-models)",
11-
"query": "$not(`@context`) and *.value ? type : false",
3+
"description": "JSON Schemas for NGSI v2 models in 'Normalized NGSI response representation' (JSON-LD or not) from https://smart-data-models.github.io/data-models/ (https://github.com/smart-data-models/data-models)",
4+
"query": "*.value ? type : false",
125
"cases": {
136
"Alert": "https://smart-data-models.github.io/data-models/specs/Alert/alert-schema.json",
147
"": ""
158
}
169
},
1710
{
18-
"description": "JSON Schemas for NGSI v2 models (not LD) in 'Simplified representation' from https://fiware.github.io/data-models/ (https://github.com/FIWARE/data-models) and https://smart-data-models.github.io/data-models/ (https://github.com/smart-data-models/data-models)",
19-
"query": "$not(`@context`) and $not(*.value) ? type : false",
11+
"description": "JSON Schemas for NGSI v2 models in 'Simplified representation' from https://fiware.github.io/data-models/ (https://github.com/FIWARE/data-models) and https://smart-data-models.github.io/data-models/ (https://github.com/smart-data-models/data-models)",
12+
"query": "$not(*.value) ? type : false",
2013
"cases": {
2114
"AeroAllergenObserved": "https://smart-data-models.github.io/data-models/specs/Environment/AeroAllergenObserved/schema.json",
2215
"AgriApp": "https://fiware.github.io/data-models/specs/AgriFood/AgriApp/schema.json",

0 commit comments

Comments
 (0)