Skip to content

Commit 1c76c60

Browse files
committed
Update smart-data-models.json
Add different cases for LD, Normalized, Simplified formats
1 parent db449ff commit 1c76c60

File tree

1 file changed

+59
-43
lines changed

1 file changed

+59
-43
lines changed

examples/smart-data-models.json

Lines changed: 59 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,84 @@
11
[
22
{
3-
"query": "type",
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",
12+
"cases": {
13+
"Alert", "https://smart-data-models.github.io/data-models/specs/Alert/alert-schema.json",
14+
"": ""
15+
}
16+
},
17+
{
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",
420
"cases": {
521
"AeroAllergenObserved": "https://smart-data-models.github.io/data-models/specs/Environment/AeroAllergenObserved/schema.json",
6-
"AgriApp": "https://smart-data-models.github.io/data-models/specs/AgriFood/AgriApp/schema.json",
7-
"AgriCrop": "https://smart-data-models.github.io/data-models/specs/AgriFood/AgriCrop/schema.json",
8-
"AgriFarm": "https://smart-data-models.github.io/data-models/specs/AgriFood/AgriFarm/schema.json",
9-
"AgriGreenhouse": "https://smart-data-models.github.io/data-models/specs/AgriFood/AgriGreenhouse/schema.json",
10-
"AgriParcel": "https://smart-data-models.github.io/data-models/specs/AgriFood/AgriParcel/schema.json",
11-
"AgriParcelOperation": "https://smart-data-models.github.io/data-models/specs/AgriFood/AgriParcelOperation/schema.json",
12-
"AgriParcelRecord": "https://smart-data-models.github.io/data-models/specs/AgriFood/AgriParcelRecord/schema.json",
13-
"AgriPest": "https://smart-data-models.github.io/data-models/specs/AgriFood/AgriPest/schema.json",
14-
"AgriProductType": "https://smart-data-models.github.io/data-models/specs/AgriFood/AgriProductType/schema.json",
22+
"AgriApp": "https://fiware.github.io/data-models/specs/AgriFood/AgriApp/schema.json",
23+
"AgriCrop": "https://fiware.github.io/data-models/specs/AgriFood/AgriCrop/schema.json",
24+
"AgriFarm": "https://fiware.github.io/data-models/specs/AgriFood/AgriFarm/schema.json",
25+
"AgriGreenhouse": "https://fiware.github.io/data-models/specs/AgriFood/AgriGreenhouse/schema.json",
26+
"AgriParcel": "https://fiware.github.io/data-models/specs/AgriFood/AgriParcel/schema.json",
27+
"AgriParcelOperation": "https://fiware.github.io/data-models/specs/AgriFood/AgriParcelOperation/schema.json",
28+
"AgriParcelRecord": "https://fiware.github.io/data-models/specs/AgriFood/AgriParcelRecord/schema.json",
29+
"AgriPest": "https://fiware.github.io/data-models/specs/AgriFood/AgriPest/schema.json",
30+
"AgriProductType": "https://fiware.github.io/data-models/specs/AgriFood/AgriProductType/schema.json",
1531
"AirQualityObserved": "https://smart-data-models.github.io/data-models/specs/Environment/AirQualityObserved/schema.json",
16-
"Alert": "https://smart-data-models.github.io/data-models/specs/Alert/alert-schema.json",
17-
"Animal": "https://smart-data-models.github.io/data-models/specs/AgriFood/Animal/schema.json",
18-
"ArrivalEstimation": "https://smart-data-models.github.io/data-models/specs/UrbanMobility/ArrivalEstimation/schema.json",
32+
"Alert": "https://smart-data-models.github.io/data-models/specs/Alert/schema.json",
33+
"Animal": "https://fiware.github.io/data-models/specs/AgriFood/Animal/schema.json",
34+
"ArrivalEstimation": "https://fiware.github.io/data-models/specs/UrbanMobility/ArrivalEstimation/schema.json",
1935
"Beach": "https://smart-data-models.github.io/data-models/specs/PointOfInterest/Beach/schema.json",
2036
"BikeHireDockingStation": "https://smart-data-models.github.io/data-models/specs/Transportation/Bike/BikeHireDockingStation/schema.json",
21-
"Building": "https://smart-data-models.github.io/data-models/specs/Building/Building/schema.json",
22-
"BuildingOperation": "https://smart-data-models.github.io/data-models/specs/Building/BuildingOperation/schema.json",
37+
"Building": "https://fiware.github.io/data-models/specs/Building/Building/schema.json",
38+
"BuildingOperation": "https://fiware.github.io/data-models/specs/Building/BuildingOperation/schema.json",
2339
"CrowdFlowObserved": "https://smart-data-models.github.io/data-models/specs/Transportation/CrowdFlowObserved/schema.json",
2440
"Device": "https://smart-data-models.github.io/data-models/specs/Device/Device/schema.json",
2541
"DeviceModel": "https://smart-data-models.github.io/data-models/specs/Device/DeviceModel/schema.json",
2642
"EVChargingStation": "https://smart-data-models.github.io/data-models/specs/Transportation/EVChargingStation/schema.json",
27-
"FlowerBed": "https://smart-data-models.github.io/data-models/specs/ParksAndGardens/FlowerBed/schema.json",
28-
"Garden": "https://smart-data-models.github.io/data-models/specs/ParksAndGardens/Garden/schema.json",
29-
"GreenspaceRecord": "https://smart-data-models.github.io/data-models/specs/ParksAndGardens/GreenspaceRecord/schema.json",
30-
"GtfsAccessPoint": "https://smart-data-models.github.io/data-models/specs/UrbanMobility/GtfsAccessPoint/schema.json",
31-
"GtfsAgency": "https://smart-data-models.github.io/data-models/specs/UrbanMobility/GtfsAgency/schema.json",
32-
"GtfsCalendarDateRule": "https://smart-data-models.github.io/data-models/specs/UrbanMobility/GtfsCalendarDateRule/schema.json",
33-
"GtfsCalendarRule": "https://smart-data-models.github.io/data-models/specs/UrbanMobility/GtfsCalendarRule/schema.json",
34-
"GtfsFrequency": "https://smart-data-models.github.io/data-models/specs/UrbanMobility/GtfsFrequency/schema.json",
35-
"GtfsRoute": "https://smart-data-models.github.io/data-models/specs/UrbanMobility/GtfsRoute/schema.json",
36-
"GtfsService": "https://smart-data-models.github.io/data-models/specs/UrbanMobility/GtfsService/schema.json",
37-
"GtfsShape": "https://smart-data-models.github.io/data-models/specs/UrbanMobility/GtfsShape/schema.json",
38-
"GtfsStation": "https://smart-data-models.github.io/data-models/specs/UrbanMobility/GtfsStation/schema.json",
39-
"GtfsStop": "https://smart-data-models.github.io/data-models/specs/UrbanMobility/GtfsStop/schema.json",
40-
"GtfsStopTime": "https://smart-data-models.github.io/data-models/specs/UrbanMobility/GtfsStopTime/schema.json",
41-
"GtfsTransferRule": "https://smart-data-models.github.io/data-models/specs/UrbanMobility/GtfsTransferRule/schema.json",
42-
"GtfsTrip": "https://smart-data-models.github.io/data-models/specs/UrbanMobility/GtfsTrip/schema.json",
43-
"KeyPerformanceIndicator": "https://smart-data-models.github.io/data-models/specs/KeyPerformanceIndicator/schema.json",
43+
"FlowerBed": "https://fiware.github.io/data-models/specs/ParksAndGardens/FlowerBed/schema.json",
44+
"Garden": "https://fiware.github.io/data-models/specs/ParksAndGardens/Garden/schema.json",
45+
"GreenspaceRecord": "https://fiware.github.io/data-models/specs/ParksAndGardens/GreenspaceRecord/schema.json",
46+
"GtfsAccessPoint": "https://fiware.github.io/data-models/specs/UrbanMobility/GtfsAccessPoint/schema.json",
47+
"GtfsAgency": "https://fiware.github.io/data-models/specs/UrbanMobility/GtfsAgency/schema.json",
48+
"GtfsCalendarDateRule": "https://fiware.github.io/data-models/specs/UrbanMobility/GtfsCalendarDateRule/schema.json",
49+
"GtfsCalendarRule": "https://fiware.github.io/data-models/specs/UrbanMobility/GtfsCalendarRule/schema.json",
50+
"GtfsFrequency": "https://fiware.github.io/data-models/specs/UrbanMobility/GtfsFrequency/schema.json",
51+
"GtfsRoute": "https://fiware.github.io/data-models/specs/UrbanMobility/GtfsRoute/schema.json",
52+
"GtfsService": "https://fiware.github.io/data-models/specs/UrbanMobility/GtfsService/schema.json",
53+
"GtfsShape": "https://fiware.github.io/data-models/specs/UrbanMobility/GtfsShape/schema.json",
54+
"GtfsStation": "https://fiware.github.io/data-models/specs/UrbanMobility/GtfsStation/schema.json",
55+
"GtfsStop": "https://fiware.github.io/data-models/specs/UrbanMobility/GtfsStop/schema.json",
56+
"GtfsStopTime": "https://fiware.github.io/data-models/specs/UrbanMobility/GtfsStopTime/schema.json",
57+
"GtfsTransferRule": "https://fiware.github.io/data-models/specs/UrbanMobility/GtfsTransferRule/schema.json",
58+
"GtfsTrip": "https://fiware.github.io/data-models/specs/UrbanMobility/GtfsTrip/schema.json",
59+
"KeyPerformanceIndicator": "https://fiware.github.io/data-models/specs/KeyPerformanceIndicator/schema.json",
4460
"Museum": "https://smart-data-models.github.io/data-models/specs/PointOfInterest/Museum/schema.json",
4561
"NoiseLevelObserved": "https://smart-data-models.github.io/data-models/specs/Environment/NoiseLevelObserved/schema.json",
4662
"OffStreetParking": "https://smart-data-models.github.io/data-models/specs/Parking/OffStreetParking/schema.json",
4763
"OnStreetParking": "https://smart-data-models.github.io/data-models/specs/Parking/OnStreetParking/schema.json",
48-
"Open311ServiceRequest": "https://smart-data-models.github.io/data-models/specs/IssueTracking/Open311_ServiceRequest/schema.json",
49-
"Open311ServiceType": "https://smart-data-models.github.io/data-models/specs/IssueTracking/Open311_ServiceType/schema.json",
64+
"Open311ServiceRequest": "https://fiware.github.io/data-models/specs/IssueTracking/Open311_ServiceRequest/schema.json",
65+
"Open311ServiceType": "https://fiware.github.io/data-models/specs/IssueTracking/Open311_ServiceType/schema.json",
5066
"ParkingAccess": "https://smart-data-models.github.io/data-models/specs/Parking/ParkingAccess/schema.json",
5167
"ParkingGroup": "https://smart-data-models.github.io/data-models/specs/Parking/ParkingGroup/schema.json",
5268
"ParkingSpot": "https://smart-data-models.github.io/data-models/specs/Parking/ParkingSpot/schema.json",
5369
"PointOfInterest": "https://smart-data-models.github.io/data-models/specs/PointOfInterest/PointOfInterest/schema.json",
5470
"Road": "https://smart-data-models.github.io/data-models/specs/Transportation/Road/schema.json",
5571
"RoadSegment": "https://smart-data-models.github.io/data-models/specs/Transportation/RoadSegment/schema.json",
56-
"SmartPointOfInteraction": "https://smart-data-models.github.io/data-models/specs/PointOfInteraction/SmartPointOfInteraction/schema.json",
57-
"SmartSpot": "https://smart-data-models.github.io/data-models/specs/PointOfInteraction/SmartSpot/schema.json",
58-
"Streetlight": "https://smart-data-models.github.io/data-models/specs/StreetLighting/Streetlight/schema.json",
59-
"StreetlightControlCabinet": "https://smart-data-models.github.io/data-models/specs/StreetLighting/StreetlightControlCabinet/schema.json",
60-
"StreetlightGroup": "https://smart-data-models.github.io/data-models/specs/StreetLighting/StreetlightGroup/schema.json",
61-
"StreetlightModel": "https://smart-data-models.github.io/data-models/specs/StreetLighting/StreetlightModel/schema.json",
62-
"ThreePhaseAcMeasurement": "https://smart-data-models.github.io/data-models/specs/Energy/ThreePhaseAcMeasurement/schema.json",
72+
"SmartPointOfInteraction": "https://fiware.github.io/data-models/specs/PointOfInteraction/SmartPointOfInteraction/schema.json",
73+
"SmartSpot": "https://fiware.github.io/data-models/specs/PointOfInteraction/SmartSpot/schema.json",
74+
"Streetlight": "https://fiware.github.io/data-models/specs/StreetLighting/Streetlight/schema.json",
75+
"StreetlightControlCabinet": "https://fiware.github.io/data-models/specs/StreetLighting/StreetlightControlCabinet/schema.json",
76+
"StreetlightGroup": "https://fiware.github.io/data-models/specs/StreetLighting/StreetlightGroup/schema.json",
77+
"StreetlightModel": "https://fiware.github.io/data-models/specs/StreetLighting/StreetlightModel/schema.json",
78+
"ThreePhaseAcMeasurement": "https://fiware.github.io/data-models/specs/Energy/ThreePhaseAcMeasurement/schema.json",
6379
"TrafficFlowObserved": "https://smart-data-models.github.io/data-models/specs/Transportation/TrafficFlowObserved/schema.json",
64-
"UserActivity": "https://smart-data-models.github.io/data-models/specs/User/Activity/schema.json",
65-
"UserContext": "https://smart-data-models.github.io/data-models/specs/User/UserContext/schema.json",
80+
"UserActivity": "https://fiware.github.io/data-models/specs/User/Activity/schema.json",
81+
"UserContext": "https://fiware.github.io/data-models/specs/User/UserContext/schema.json",
6682
"Vehicle": "https://smart-data-models.github.io/data-models/specs/Transportation/Vehicle/Vehicle/schema.json",
6783
"VehicleModel": "https://smart-data-models.github.io/data-models/specs/Transportation/Vehicle/VehicleModel/schema.json",
6884
"WasteContainer": "https://smart-data-models.github.io/data-models/specs/WasteManagement/WasteContainer/schema.json",

0 commit comments

Comments
 (0)