├── .gitignore
├── .readthedocs.yml
├── .remarkrc.js
├── Entity-ngsiv2-datamodels-schema.json
├── LICENSE
├── README.md
├── common-schema.json
├── context.jsonld
├── datamodel_template.md
├── full-context.jsonld
├── geometry-schema.json
├── mkdocs.yml
├── requirements.txt
├── specs
├── AgriFood
│ ├── AgriApp
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── AgriCrop
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── AgriFarm
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── AgriGreenhouse
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── AgriParcel
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── AgriParcelOperation
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── AgriParcelRecord
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── AgriPest
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── AgriProductType
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── AgriSoil
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── Animal
│ │ ├── doc
│ │ │ ├── data model_sharebeef_2.pdf
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ ├── resources
│ │ │ ├── diagram1.jpg
│ │ │ └── diagram2.jpg
│ │ └── schema.json
│ ├── README.md
│ └── agrifood-schema.json
├── Alert
│ ├── README.md
│ ├── alert-schema.json
│ ├── doc
│ │ └── spec.md
│ ├── example-1.json
│ ├── example-2.json
│ ├── example-agriAlert.json
│ ├── example-normalized-ld.jsonld
│ ├── example-normalized.json
│ └── schema.json
├── Aquaculture
│ └── README.md
├── Building
│ ├── Building
│ │ ├── README.md
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── BuildingOperation
│ │ ├── README.md
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── README.md
│ └── doc
│ │ └── introduction.md
├── Device
│ ├── Device
│ │ ├── README.md
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── DeviceModel
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── README.md
│ ├── device-schema.json
│ └── doc
│ │ └── introduction.md
├── Energy
│ ├── README.md
│ └── ThreePhaseAcMeasurement
│ │ ├── README.md
│ │ ├── doc
│ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
├── Environment
│ ├── AeroAllergenObserved
│ │ ├── README.md
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── AirQualityObserved
│ │ ├── README.md
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ ├── harvest
│ │ │ ├── barcelona_airquality_harvest.py
│ │ │ ├── madrid_air_quality.py
│ │ │ ├── madrid_air_quality_harvest.py
│ │ │ ├── madrid_airquality_stations.csv
│ │ │ ├── malaga_airqualityobserved_import.py
│ │ │ ├── ngsi_helper.py
│ │ │ └── santander_federation.py
│ │ └── schema.json
│ ├── NoiseLevelObserved
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── README.md
│ ├── WaterQualityObserved
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── doc
│ │ └── introduction.md
│ └── unsupported
│ │ ├── AirQualityThreshold
│ │ ├── README.md
│ │ ├── doc
│ │ │ └── spec.md
│ │ └── european_airquality_thresholds.json
│ │ └── README.md
├── IssueTracking
│ ├── Open311_ServiceRequest
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── Open311_ServiceType
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── README.md
│ └── doc
│ │ └── introduction.md
├── KeyPerformanceIndicator
│ ├── README.md
│ ├── doc
│ │ └── spec.md
│ ├── example-normalized-ld.jsonld
│ ├── example-normalized.json
│ ├── example.json
│ └── schema.json
├── Parking
│ ├── OffStreetParking
│ │ ├── README.md
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── OnStreetParking
│ │ ├── README.md
│ │ ├── auxiliary
│ │ │ ├── centroids_parking_polygons.cpg
│ │ │ ├── centroids_parking_polygons.dbf
│ │ │ ├── centroids_parking_polygons.prj
│ │ │ ├── centroids_parking_polygons.qpj
│ │ │ ├── centroids_parking_polygons.shp
│ │ │ ├── centroids_parking_polygons.shx
│ │ │ ├── intersect_layer1.cpg
│ │ │ ├── intersect_layer1.dbf
│ │ │ ├── intersect_layer1.prj
│ │ │ ├── intersect_layer1.qpj
│ │ │ ├── intersect_layer1.shp
│ │ │ ├── intersect_layer1.shx
│ │ │ ├── layer1.cpg
│ │ │ ├── layer1.dbf
│ │ │ ├── layer1.prj
│ │ │ ├── layer1.qpj
│ │ │ ├── layer1.shp
│ │ │ ├── layer1.shx
│ │ │ ├── parking.qgs
│ │ │ ├── parking_polygons_refined.dbf
│ │ │ ├── parking_polygons_refined.prj
│ │ │ ├── parking_polygons_refined.qpj
│ │ │ ├── parking_polygons_refined.shp
│ │ │ ├── parking_polygons_refined.shx
│ │ │ ├── santander.qgs
│ │ │ └── santander.qgs~
│ │ ├── data-parking.csv
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ ├── intersection_refined.dbf
│ │ ├── intersection_refined.prj
│ │ ├── intersection_refined.qpj
│ │ ├── intersection_refined.shp
│ │ ├── intersection_refined.shx
│ │ ├── package.json
│ │ ├── parking.js
│ │ ├── polygons_geojson.geojson
│ │ ├── polygons_geojson_refined.geojson
│ │ ├── santander.js
│ │ ├── schema.json
│ │ ├── sensors_polygons.csv
│ │ ├── sensors_polygons_refined.csv
│ │ └── setup-santander.js
│ ├── ParkingAccess
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── ParkingGroup
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── ParkingSpot
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── README.md
│ └── doc
│ │ └── introduction.md
├── ParksAndGardens
│ ├── FlowerBed
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── Garden
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── GreenspaceRecord
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── README.md
│ └── doc
│ │ └── introduction.md
├── PointOfInteraction
│ ├── README.md
│ ├── SmartPointOfInteraction
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ └── SmartSpot
│ │ ├── doc
│ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
├── PointOfInterest
│ ├── .gitignore
│ ├── AirQualityStation
│ │ ├── README.md
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── madrid-ngsi10.js
│ │ └── madrid_airquality_stations.csv
│ ├── Beach
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── Museum
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── PointOfInterest
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── README.md
│ ├── WeatherStation
│ │ ├── README.md
│ │ ├── doc
│ │ │ └── spec.md
│ │ └── harvesters
│ │ │ ├── portugal
│ │ │ ├── .dockerignore
│ │ │ ├── .gitignore
│ │ │ ├── Dockerfile
│ │ │ ├── README.md
│ │ │ ├── entrypoint.sh
│ │ │ ├── portugal_weather_stations.py
│ │ │ └── requirements.txt
│ │ │ └── spain
│ │ │ ├── .dockerignore
│ │ │ ├── .gitignore
│ │ │ ├── Dockerfile
│ │ │ ├── README.md
│ │ │ ├── entrypoint.sh
│ │ │ ├── requirements.txt
│ │ │ └── spain_weather_stations.py
│ ├── doc
│ │ └── introduction.md
│ ├── import_pois_tourspain.py
│ ├── oporto-ost-module.js
│ ├── package.json
│ └── poi-server.js
├── README.md
├── StreetLighting
│ ├── README.md
│ ├── Streetlight
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── StreetlightControlCabinet
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── StreetlightGroup
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── StreetlightModel
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ └── doc
│ │ └── introduction.md
├── Transportation
│ ├── Bike
│ │ └── BikeHireDockingStation
│ │ │ ├── doc
│ │ │ └── spec.md
│ │ │ ├── example-normalized-ld.jsonld
│ │ │ ├── example-normalized.json
│ │ │ ├── example.json
│ │ │ ├── harvest
│ │ │ └── bicycle_hire_station_barcelona_harvest.py
│ │ │ └── schema.json
│ ├── CrowdFlowObserved
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── EVChargingStation
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── README.md
│ ├── Road
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── RoadSegment
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── TrafficFlowObserved
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── Vehicle
│ │ ├── Vehicle
│ │ │ ├── doc
│ │ │ │ └── spec.md
│ │ │ ├── example-normalized-ld.jsonld
│ │ │ ├── example-normalized.json
│ │ │ ├── example.json
│ │ │ └── schema.json
│ │ └── VehicleModel
│ │ │ ├── doc
│ │ │ └── spec.md
│ │ │ ├── example-normalized-ld.jsonld
│ │ │ ├── example-normalized.json
│ │ │ ├── example.json
│ │ │ └── schema.json
│ └── doc
│ │ └── introduction.md
├── UrbanMobility
│ ├── ArrivalEstimation
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── GtfsAccessPoint
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── GtfsAgency
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── GtfsCalendarDateRule
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── GtfsCalendarRule
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── GtfsFrequency
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── GtfsRoute
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── GtfsService
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── GtfsShape
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── GtfsStation
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── GtfsStop
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── GtfsStopTime
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── GtfsTransferRule
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── GtfsTrip
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── README.md
│ ├── doc
│ │ └── introduction.md
│ ├── gtfs-schema.json
│ └── unsupported
│ │ └── ArrivalEstimation
│ │ ├── doc
│ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
├── User
│ ├── Activity
│ │ ├── README.md
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── README.md
│ └── UserContext
│ │ ├── README.md
│ │ ├── doc
│ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
├── WasteManagement
│ ├── README.md
│ ├── WasteContainer
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── WasteContainerIsle
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ ├── WasteContainerModel
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ └── schema.json
│ └── doc
│ │ └── introduction.md
├── Weather
│ ├── README.md
│ ├── WeatherAlert
│ │ ├── README.md
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-1.json
│ │ ├── harvest
│ │ │ └── meteoalarm_harvest.py
│ │ └── schema.json
│ ├── WeatherForecast
│ │ ├── README.md
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ ├── harvesters
│ │ │ ├── portugal
│ │ │ │ ├── .dockerignore
│ │ │ │ ├── Dockerfile
│ │ │ │ ├── README.md
│ │ │ │ ├── config.example.yml
│ │ │ │ ├── entrypoint.sh
│ │ │ │ ├── portugal_weather_forecast.py
│ │ │ │ └── requirements.txt
│ │ │ └── spain
│ │ │ │ ├── .dockerignore
│ │ │ │ ├── Dockerfile
│ │ │ │ ├── README.md
│ │ │ │ ├── config.example.yml
│ │ │ │ ├── entrypoint.sh
│ │ │ │ ├── requirements.txt
│ │ │ │ └── spain_weather_forecast.py
│ │ └── schema.json
│ ├── WeatherObserved
│ │ ├── README.md
│ │ ├── doc
│ │ │ └── spec.md
│ │ ├── example-normalized-ld.jsonld
│ │ ├── example-normalized.json
│ │ ├── example.json
│ │ ├── harvesters
│ │ │ ├── portugal
│ │ │ │ ├── .dockerignore
│ │ │ │ ├── Dockerfile
│ │ │ │ ├── README.md
│ │ │ │ ├── config.example.yml
│ │ │ │ ├── entrypoint.sh
│ │ │ │ ├── portugal_weather_observed.py
│ │ │ │ └── requirements.txt
│ │ │ └── spain
│ │ │ │ ├── .dockerignore
│ │ │ │ ├── Dockerfile
│ │ │ │ ├── README.md
│ │ │ │ ├── config.example.yml
│ │ │ │ ├── entrypoint.sh
│ │ │ │ ├── requirements.txt
│ │ │ │ └── spain_weather_observed.py
│ │ └── schema.json
│ ├── doc
│ │ └── introduction.md
│ └── weather-schema.json
├── gsma.md
├── guidelines.md
├── howto.md
├── img
│ ├── favicon.ico
│ └── favicon.png
├── index.md
├── ngsi-ld_faq.md
└── ngsi-ld_howto.md
├── tools
├── .gitignore
├── README.md
├── entity_print.py
├── keyValues2Normalized.json
├── keyValues2Normalized.py
├── ldcontext_generator.json
├── ldcontext_generator.py
├── ldcontext_mappings.json
├── ldcontext_terms_mappings.json
├── normalized2LD.json
└── normalized2LD.py
├── validate.sh
└── validator
├── .eslintignore
├── .eslintrc
├── .textlintrc
├── README.md
├── config.json.example
├── libs
├── checks.js
├── conf.js
├── message.js
└── schema.js
├── package-lock.json
├── package.json
└── validate.js
/.gitignore:
--------------------------------------------------------------------------------
1 | .idea/*
2 | .DS_Store
3 | .python_env
4 | **/*.pyc
5 | node_modules
6 | **/*.log*
7 | **bak
8 | **/bin/**
9 | **.Python
10 | **.env**
11 | .eslintcache
12 |
13 | *~
14 | .fuse_hidden*
15 | .directory
16 | .Trash-*
17 | .nfs*
18 | *.DS_Store
19 | .AppleDouble
20 | .LSOverride
21 | Icon
22 | ._*
23 | .DocumentRevisions-V100
24 | .fseventsd
25 | .Spotlight-V100
26 | .TemporaryItems
27 | .Trashes
28 | .VolumeIcon.icns
29 | .com.apple.timemachine.donotpresent
30 | .AppleDB
31 | .AppleDesktop
32 | Network Trash Folder
33 | Temporary Items
34 | .apdisk
35 | logs
36 | *.log
37 | npm-debug.log*
38 | yarn-debug.log*
39 | yarn-error.log*
40 | pids
41 | *.pid
42 | *.seed
43 | *.pid.lock
44 | jspm_packages/
45 | .npm
46 | *.tgz
47 | .env
48 | .next
49 |
--------------------------------------------------------------------------------
/.readthedocs.yml:
--------------------------------------------------------------------------------
1 | version: 2
2 |
3 | mkdocs:
4 | configuration: mkdocs.yml
5 |
6 | python:
7 | version: 3.8
8 | install:
9 | - requirements: requirements.txt
10 |
--------------------------------------------------------------------------------
/.remarkrc.js:
--------------------------------------------------------------------------------
1 | exports.settings = {bullet: '-', paddedTable: true}
2 |
3 | exports.plugins = [
4 | require('./validator/node_modules/remark-preset-lint-recommended')
5 | ]
6 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2016 Telefónica Investigación y Desarrollo (S.A.U.)
2 |
3 | The MIT License (MIT)
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/full-context.jsonld:
--------------------------------------------------------------------------------
1 | {
2 | "@context": [
3 | "https://fiware.github.io/data-models/context.jsonld",
4 | "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
5 | ]
6 | }
7 |
--------------------------------------------------------------------------------
/requirements.txt:
--------------------------------------------------------------------------------
1 | PyYAML==5.1.2
2 | rfc3987==1.3.8
3 | mkdocs==1.4.1
4 | Pygments==2.9.0
5 | Markdown==3.3.4
6 | jinja2==3.0.0
7 |
--------------------------------------------------------------------------------
/specs/AgriFood/AgriApp/example-normalized-ld.jsonld:
--------------------------------------------------------------------------------
1 | {
2 | "@context": [
3 | "https://schema.lab.fiware.org/ld/context",
4 | "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
5 | ],
6 | "id": "urn:ngsi-ld:AgriApp:72d9fb43-53f8-4ec8-a33c-fa931360259a",
7 | "type": "AgriApp",
8 | "createdAt": "2017-01-01T01:20:00Z",
9 | "modifiedAt": "2017-05-04T12:30:00Z",
10 | "name": {
11 | "type": "Property",
12 | "value": "Wine track"
13 | },
14 | "description": {
15 | "type": "Property",
16 | "value": "An app for wine tracking"
17 | },
18 | "version": {
19 | "type": "Property",
20 | "value": "1.0"
21 | },
22 | "hasProvider": {
23 | "type": "Relationship",
24 | "object": "urn:ngsi-ld:Organization:fce9dcbc-4479-11e8-9de1-cb228de7a15c"
25 | },
26 | "endpoint": {
27 | "type": "Property",
28 | "value": "https://app.endpoint/download"
29 | },
30 | "category": {
31 | "type": "Property",
32 | "value": [
33 | "TBD"
34 | ]
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/specs/AgriFood/AgriApp/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:AgriApp:72d9fb43-53f8-4ec8-a33c-fa931360259a",
3 | "type": "AgriApp",
4 | "dateCreated": {
5 | "type": "DateTime",
6 | "value": "2017-01-01T01:20:00Z"
7 | },
8 | "dateModified": {
9 | "type": "DateTime",
10 | "value": "2017-05-04T12:30:00Z"
11 | },
12 | "name": {
13 | "value": "Wine track"
14 | },
15 | "description": {
16 | "value": "An app for wine tracking"
17 | },
18 | "version": {
19 | "value": "1.0"
20 | },
21 | "hasProvider": {
22 | "type": "Relationship",
23 | "value": "urn:ngsi-ld:Organization:fce9dcbc-4479-11e8-9de1-cb228de7a15c"
24 | },
25 | "endpoint": {
26 | "type": "URL",
27 | "value": "https://app.endpoint/download"
28 | },
29 | "category": {
30 | "value": ["TBD"]
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/specs/AgriFood/AgriApp/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:AgriApp:72d9fb43-53f8-4ec8-a33c-fa931360259a",
3 | "type": "AgriApp",
4 | "dateCreated": "2017-01-01T01:20:00Z",
5 | "dateModified": "2017-05-04T12:30:00Z",
6 | "name": "Wine track",
7 | "description": "An app for wine tracking",
8 | "version": "1.0",
9 | "hasProvider": "urn:ngsi-ld:Organization:fce9dcbc-4479-11e8-9de1-cb228de7a15c",
10 | "endpoint": "https://app.endpoint/download",
11 | "category": ["TBD"]
12 | }
13 |
--------------------------------------------------------------------------------
/specs/AgriFood/AgriPest/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:AgriPest:fb3f1295-500c-4aa3-b995-c909097d5c01",
3 | "type": "AgriPest",
4 | "dateCreated": {
5 | "type": "DateTime",
6 | "value": "2017-01-01T01:20:00Z"
7 | },
8 | "dateModified": {
9 | "type": "DateTime",
10 | "value": "2017-05-04T12:30:00Z"
11 | },
12 | "name": {
13 | "value": "Grasshopper"
14 | },
15 | "alternateName": {
16 | "value": "Chorthippus parallelus"
17 | },
18 | "relatedSource": {
19 | "value": [
20 | {
21 | "application": "urn:ngsi-ld:AgriApp:72d9fb43-53f8-4ec8-a33c-fa931360259a",
22 | "applicationEntityId": "app:pest1"
23 | }
24 | ]
25 | },
26 | "seeAlso": {
27 | "value": [
28 | "https://example.org/concept/pest",
29 | "https://datamodel.org/example/pest"
30 | ]
31 | },
32 | "agroVocConcept": {
33 | "type": "URL",
34 | "value": "http://aims.fao.org/aos/agrovoc/c_31924"
35 | },
36 | "description": {
37 | "value": "Common European grasshopper"
38 | },
39 | "hasAgriProductType": {
40 | "type": "Relationship",
41 | "value": [
42 | "urn:ngsi-ld:AgriProductType:06afffde-4488-11e8-861a-cfcf50aaa9cc",
43 | "urn:ngsi-ld:AgriProductType:0c094486-4488-11e8-a15f-afa816790c64",
44 | "urn:ngsi-ld:AgriProductType:14bf9f26-4488-11e8-9e3d-bfb78de66dd3"
45 | ]
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/specs/AgriFood/AgriPest/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:AgriPest:fb3f1295-500c-4aa3-b995-c909097d5c01",
3 | "type": "AgriPest",
4 | "dateCreated": "2017-01-01T01:20:00Z",
5 | "dateModified": "2017-05-04T12:30:00Z",
6 | "name": "Grasshopper",
7 | "alternateName": "Chorthippus parallelus",
8 | "relatedSource": [
9 | {
10 | "application": "urn:ngsi-ld:AgriApp:72d9fb43-53f8-4ec8-a33c-fa931360259a",
11 | "applicationEntityId": "app:pest1"
12 | }
13 | ],
14 | "seeAlso": [
15 | "https://example.org/concept/pest",
16 | "https://datamodel.org/example/pest"
17 | ],
18 | "agroVocConcept": "http://aims.fao.org/aos/agrovoc/c_31924",
19 | "description": "Common European grasshopper",
20 | "hasAgriProductType": [
21 | "urn:ngsi-ld:AgriProductType:06afffde-4488-11e8-861a-cfcf50aaa9cc",
22 | "urn:ngsi-ld:AgriProductType:0c094486-4488-11e8-a15f-afa816790c64",
23 | "urn:ngsi-ld:AgriProductType:14bf9f26-4488-11e8-9e3d-bfb78de66dd3"
24 | ]
25 | }
26 |
--------------------------------------------------------------------------------
/specs/AgriFood/AgriPest/schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json-schema.org/schema#",
3 | "$id": "https://fiware.github.io/data-models/specs/AgriFood/AgriPest/schema.json",
4 | "title": "FIWARE - Agri Pest",
5 | "description": "This entity contains a harmonised description of an agricultural pest. This entity is primarily associated with the agricultural vertical and related IoT applications.",
6 | "type": "object",
7 | "allOf": [
8 | {
9 | "$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
10 | },
11 | {
12 | "$ref": "https://fiware.github.io/data-models/specs/AgriFood/agrifood-schema.json#/definitions/AgriFood-Commons"
13 | },
14 | {
15 | "properties": {
16 | "type": {
17 | "type": "string",
18 | "enum": ["AgriPest"],
19 | "description": "NGSI Entity Type"
20 | },
21 | "agroVocConcept": {
22 | "type": "string",
23 | "format": "uri"
24 | },
25 | "hasAgriProductType": {
26 | "type": "array",
27 | "items": [
28 | {
29 | "$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType"
30 | }
31 | ]
32 | }
33 | }
34 | }
35 | ],
36 | "required": ["id", "type", "name"]
37 | }
38 |
--------------------------------------------------------------------------------
/specs/AgriFood/AgriProductType/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:AgriProductType:398aa5f4-6a81-4dea-9f85-e9869441a257",
3 | "type": "AgriProductType",
4 | "dateCreated": "2017-01-01T01:20:00Z",
5 | "dateModified": "2017-05-04T12:30:00Z",
6 | "name": "Soft Fruits",
7 | "description": "Soft edible fruits",
8 | "relatedSource": [
9 | {
10 | "application": "urn:ngsi-ld:AgriApp:72d9fb43-53f8-4ec8-a33c-fa931360259a",
11 | "applicationEntityId": "app:product1"
12 | }
13 | ],
14 | "agroVocConcept": "http://aims.fao.org/aos/agrovoc/c_3128",
15 | "category": ["cropVariety"],
16 | "root": true,
17 | "hasAgriProductTypeParent": "urn:ngsi-ld:AgriProductType:b99c940d-7156-4280-9a2b-4a9e533cd20e",
18 | "hasAgriProductTypeChildren": [
19 | "urn:ngsi-ld:AgriProductType:836258d0-448b-11e8-84ec-ef61d9425fe8",
20 | "urn:ngsi-ld:AgriProductType:83d607f8-448b-11e8-9fe3-0fd5140ae8db",
21 | "urn:ngsi-ld:AgriProductType:90cbac88-448b-11e8-acb0-a78dab9d0555"
22 | ]
23 | }
24 |
--------------------------------------------------------------------------------
/specs/AgriFood/AgriSoil/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:AgriSoil:00411b56-bd1b-4551-96e0-a6e7fde9c840",
3 | "type": "AgriSoil",
4 | "dateCreated": {
5 | "type": "DateTime",
6 | "value": "2017-01-01T01:20:00Z"
7 | },
8 | "dateModified": {
9 | "type": "DateTime",
10 | "value": "2017-05-04T12:30:00Z"
11 | },
12 | "name": {
13 | "value": "Clay"
14 | },
15 | "alternateName": {
16 | "value": "Heavy soil"
17 | },
18 | "description": {
19 | "value": "Fine grained, poor draining soil. Particle size less than 0.002mm"
20 | },
21 | "agroVocConcept": {
22 | "type": "URL",
23 | "value": "http://aims.fao.org/aos/agrovoc/c_7951"
24 | },
25 | "seeAlso": {
26 | "value": [
27 | "https://example.org/concept/clay",
28 | "https://datamodel.org/example/clay"
29 | ]
30 | },
31 | "relatedSource": {
32 | "value": [
33 | {
34 | "application": "urn:ngsi-ld:AgriApp:72d9fb43-53f8-4ec8-a33c-fa931360259a",
35 | "applicationEntityId": "app:clay"
36 | }
37 | ]
38 | },
39 | "hasAgriProductType": {
40 | "type": "Relationship",
41 | "value": [
42 | "urn:ngsi-ld:AgriProductType:ea54eedf-d5a7-4e44-bddd-50e9935237c0",
43 | "urn:ngsi-ld:AgriProductType:275b4c08-5e52-4bb7-8523-74ce5d0007de"
44 | ]
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/specs/AgriFood/AgriSoil/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:AgriSoil:00411b56-bd1b-4551-96e0-a6e7fde9c840",
3 | "type": "AgriSoil",
4 | "dateCreated": "2017-01-01T01:20:00Z",
5 | "dateModified": "2017-05-04T12:30:00Z",
6 | "name": "Clay",
7 | "alternateName": "Heavy soil",
8 | "agroVocConcept": "http://aims.fao.org/aos/agrovoc/c_7951",
9 | "seeAlso": [
10 | "https://example.org/concept/clay",
11 | "https://datamodel.org/example/clay"
12 | ],
13 | "description": "Fine grained, poor draining soil. Particle size less than 0.002mm",
14 | "relatedSource": [
15 | {
16 | "application": "urn:ngsi-ld:AgriApp:72d9fb43-53f8-4ec8-a33c-fa931360259a",
17 | "applicationEntityId": "app:clay"
18 | }
19 | ],
20 | "hasAgriProductType": [
21 | "urn:ngsi-ld:AgriProductType:ea54eedf-d5a7-4e44-bddd-50e9935237c0",
22 | "urn:ngsi-ld:AgriProductType:275b4c08-5e52-4bb7-8523-74ce5d0007de"
23 | ]
24 | }
25 |
--------------------------------------------------------------------------------
/specs/AgriFood/Animal/doc/data model_sharebeef_2.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FIWARE/data-models/8d5604ed7a162416ee0b7c16eb6b9627961f5c3c/specs/AgriFood/Animal/doc/data model_sharebeef_2.pdf
--------------------------------------------------------------------------------
/specs/AgriFood/Animal/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:Animal:ca3f1295-500c-4aa3-b745-d143097d5c01",
3 | "type": "Animal",
4 | "species": "sheep",
5 | "relatedSource": [
6 | {
7 | "application": "urn:ngsi-ld:AgriApp:72d9fb43-53f8-4ec8-a33c-fa931360259a",
8 | "applicationEntityId": "app:sheep1"
9 | }
10 | ],
11 | "legalId": "ES142589652140",
12 | "birthdate": "2017-01-01T01:20:00Z",
13 | "dateModified": "2017-05-04T12:30:00Z",
14 | "sex": "female",
15 | "breed": "Merina",
16 | "calvedBy": "urn:ngsi-ld:Animal:aa9f1295-425c-8ba3-b745-b653097d5a87",
17 | "siredBy": "urn:ngsi-ld:Animal:aa9f1295-425c-8ba3-b745-b653097d5a87",
18 | "location": {
19 | "type": "Point",
20 | "coordinates": [-4.754444444, 41.640833333]
21 | },
22 | "weight": 65.3,
23 | "ownedBy": "http://person.org/leon",
24 | "locatedAt": "urn:ngsi-ld:AgriParcel:1ea0f120-4474-11e8-9919-672036642081",
25 | "phenologicalCondition": "maleAdult",
26 | "reproductiveCondition": "inCalf",
27 | "healthCondition": "healthy",
28 | "fedWith": "urn:ngsi-ld:FEED:1ea0f120-4474-11e8-9919-0000000081",
29 | "welfareCondition": "adequate"
30 | }
31 |
--------------------------------------------------------------------------------
/specs/AgriFood/Animal/resources/diagram1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FIWARE/data-models/8d5604ed7a162416ee0b7c16eb6b9627961f5c3c/specs/AgriFood/Animal/resources/diagram1.jpg
--------------------------------------------------------------------------------
/specs/AgriFood/Animal/resources/diagram2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FIWARE/data-models/8d5604ed7a162416ee0b7c16eb6b9627961f5c3c/specs/AgriFood/Animal/resources/diagram2.jpg
--------------------------------------------------------------------------------
/specs/AgriFood/agrifood-schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json-schema.org/schema#",
3 | "$id": "https://fiware.github.io/data-models/specs/AgriFood/agrifood-schema.json",
4 | "title": "AgriFood Commons schema",
5 | "description": "Common defintions to describe FIWARE agri food data models",
6 | "definitions": {
7 | "AgriFood-Commons": {
8 | "type": "object",
9 | "properties": {
10 | "relatedSource": {
11 | "type": "array",
12 | "description": "List of IDs the current entity may have in external applications",
13 | "items": [
14 | {
15 | "type": "object",
16 | "values": {
17 | "application": {
18 | "$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType"
19 | },
20 | "applicationEntityId": {
21 | "type": "string"
22 | }
23 | }
24 | }
25 | ]
26 | }
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/specs/Alert/example-1.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "Alert:1",
3 | "type": "Alert",
4 | "category": "traffic",
5 | "subCategory": "trafficJam",
6 | "severity": "high",
7 | "location": {
8 | "type": "Point",
9 | "coordinates": [-3.712247222222222, 40.423852777777775]
10 | },
11 | "dateIssued": "2017-01-02T09:25:55.00Z",
12 | "validFrom": "2017-01-02T09:25:55.00Z",
13 | "validTo": "2017-01-02T10:25:55.00Z",
14 | "description": "The road is completely blocked for 3kms",
15 | "alertSource": "https://account.lab.fiware.org/users/8"
16 | }
17 |
--------------------------------------------------------------------------------
/specs/Alert/example-2.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "VisualEvent123",
3 | "type": "Alert",
4 | "category": "security",
5 | "subCategory": "robbery",
6 | "location": {
7 | "type": "Point",
8 | "coordinates": [-3.712247222222222, 40.423852777777775]
9 | },
10 | "dateIssued": "2017-04-25T09:25:55.00Z",
11 | "description": "Potential robbery in main building",
12 | "alertSource": "Camera1234",
13 | "data": {
14 | "videoURL": "www.smartsecurity.com/video123.mp4",
15 | "initialFrame": "80",
16 | "finalFrame": "120"
17 | },
18 | "severity": "informational"
19 | }
20 |
--------------------------------------------------------------------------------
/specs/Alert/example-agriAlert.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:Alert:agriculture:fungus:f57f-4610-a589",
3 | "type": "Alert",
4 | "source": "gaiasense Agriculture Warnings System - NEUROPUBLIC S.A.",
5 | "dataProvider": "http://www.gaiasense.gr/en",
6 | "category": "agriculture",
7 | "subCategory": "fungus",
8 | "data": {
9 | "additionalType": "Altenaria",
10 | "identifier": "http://aims.fao.org/aos/agrovoc/c_f75f5af0.rdf",
11 | "potentialAction": "spray"
12 | },
13 | "severity": "high",
14 | "location": {
15 | "type": "Polygon",
16 | "coordinates": [
17 | [
18 | [22.501029968261715, 39.38499845743629],
19 | [22.543087005615234, 39.38499845743629],
20 | [22.543087005615234, 39.41179407178009],
21 | [22.501029968261715, 39.41179407178009],
22 | [22.501029968261715, 39.38499845743629]
23 | ]
24 | ]
25 | },
26 | "dateIssued": "2019-03-26T09:25:55.00Z",
27 | "validFrom": "2017-03-26T09:25:55.00Z",
28 | "validTo": "2017-03-28T10:25:55.00Z",
29 | "description": "There is a HIGH RISK for FUNGUS of type ALTENARIA infestations in the area due to weather conditions. It is suggested to spray with the recommended pesticides",
30 | "alertSource": "https://warnings-app.gaiasense.gr/"
31 | }
32 |
--------------------------------------------------------------------------------
/specs/Alert/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "Alert:1",
3 | "type": "Alert",
4 | "dateCreated": {
5 | "type": "DateTime",
6 | "value": "2019-06-06T12:06:06"
7 | },
8 | "dateModified": {
9 | "type": "DateTime",
10 | "value": "2019-06-07T12:07:06"
11 | },
12 | "category": {
13 | "value": "traffic"
14 | },
15 | "subCategory": {
16 | "value": "trafficJam"
17 | },
18 | "validTo": {
19 | "type": "DateTime",
20 | "value": "2017-01-02T10:25:55.00Z"
21 | },
22 | "description": {
23 | "value": "The road is completely blocked for 3kms"
24 | },
25 | "location": {
26 | "type": "geo:json",
27 | "value": {
28 | "type": "Point",
29 | "coordinates": [-3.712247222222222, 40.423852777777775]
30 | }
31 | },
32 | "dateIssued": {
33 | "type": "DateTime",
34 | "value": "2017-01-02T09:25:55.00Z"
35 | },
36 | "alertSource": {
37 | "value": "https://account.lab.fiware.org/users/8"
38 | },
39 | "validFrom": {
40 | "type": "DateTime",
41 | "value": "2017-01-02T09:25:55.00Z"
42 | },
43 | "severity": {
44 | "value": "high"
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/specs/Aquaculture/README.md:
--------------------------------------------------------------------------------
1 | # Aquaculture Data Models
2 |
3 | 
4 |
5 | > This repository is now archived and subsequent works will be carried out the
6 | > in [Smart data models](https://github.com/smart-data-models) repositories.
7 |
8 | MODEL UNDER SPECIFICATION. It means that it is possible that some of the
9 | contents does not exist or they were in a draft version. It will be warned
10 | within the documents
11 |
12 | This folder is intended to contain data models for Aquaculture:
13 |
14 | - [BreedingOperation]()
15 | - [FishCointaiment]()
16 | - [SingleSensor]()
17 |
--------------------------------------------------------------------------------
/specs/Building/Building/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "building-a85e3da145c1",
3 | "type": "Building",
4 | "dateCreated": "2016-08-08T10:18:16Z",
5 | "dateModified": "2016-08-08T10:18:16Z",
6 | "source": "http://www.example.com",
7 | "dataProvider": "OperatorA",
8 | "category": ["office"],
9 | "containedInPlace": {
10 | "type": "Polygon",
11 | "coordinates": [[[100, 0], [101, 0], [101, 1], [100, 1], [100, 0]]]
12 | },
13 | "location": {
14 | "type": "Polygon",
15 | "coordinates": [[[100, 0], [101, 0], [101, 1], [100, 1], [100, 0]]]
16 | },
17 | "address": {
18 | "addressLocality": "London",
19 | "postalCode": "EC4N 8AF",
20 | "streetAddress": "25 Walbrook"
21 | },
22 | "owner": [
23 | "cdfd9cb8-ae2b-47cb-a43a-b9767ffd5c84",
24 | "1be9cd61-ef59-421f-a326-4b6c84411ad4"
25 | ],
26 | "occupier": ["9830f692-7677-11e6-838b-4f9fb3dc5a4f"],
27 | "floorsAboveGround": 7,
28 | "floorsBelowGround": 0,
29 | "description": "Office block",
30 | "mapUrl": "http://www.example.com",
31 | "openingHours": ["Mo-Fr 10:00-19:00", "Sa 10:00-22:00", "Su 10:00-21:00"]
32 | }
33 |
--------------------------------------------------------------------------------
/specs/Building/BuildingOperation/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "57b912ab-eb47-4cd5-bc9d-73abece1f1b3",
3 | "type": "BuildingOperation",
4 | "dateCreated": "2016-08-08T10:18:16Z",
5 | "dateModified": "2016-08-08T10:18:16Z",
6 | "source": "http://www.example.com",
7 | "dataProvider": "OperatorA",
8 | "refBuilding": "building-a85e3da145c1",
9 | "operationType": "airConditioning",
10 | "description": "Air conditioning levels reduced due to out of hours",
11 | "result": "ok",
12 | "startDate": "2016-08-08T10:18:16Z",
13 | "endDate": "2016-08-20T10:18:16Z",
14 | "dateStarted": "2016-08-08T10:18:16Z",
15 | "dateFinished": "2016-08-20T10:18:16Z",
16 | "status": "finished",
17 | "operationSequence": ["fan_power%3D0", "set_temperature%3D24"],
18 | "refRelatedBuildingOperation": [
19 | "b4fb8bff-1a8f-455f-8cc0-ca43c069f865",
20 | "55c24793-3437-4157-9bda-667c9e1531fc"
21 | ],
22 | "refRelatedDeviceOperation": [
23 | "36744245-6716-4a28-84c7-0e3d7520f143",
24 | "33b2b713-9223-40a5-87a0-3f80a1264a6c"
25 | ]
26 | }
27 |
--------------------------------------------------------------------------------
/specs/Building/README.md:
--------------------------------------------------------------------------------
1 | # Building Data Models
2 |
3 | 
4 |
5 | > This repository is now archived and subsequent works will be carried out the
6 | > in [Smart data models](https://github.com/smart-data-models) repositories.
7 |
8 | This folders contains a number of data models related to the modelling of
9 | Building and its management based on
10 | [GSMA](https://www.gsma.com/iot/iot-big-data/) activities. Compared to GSMA
11 | models, we introduced some changes and removed the `BuildingType` model.
12 |
13 | The following entity types are supported:
14 |
15 | - `Building`: A Building is a human build structure where different activities
16 | occur related to living, working, healing and so on.
17 | - `BuildingOperation`: It captures automated operations that may be ongoing
18 | within a building.
19 |
--------------------------------------------------------------------------------
/specs/Building/doc/introduction.md:
--------------------------------------------------------------------------------
1 | # Building Data Models
2 |
3 | 
4 |
5 | > This repository is now archived and subsequent works will be carried out the
6 | > in [Smart data models](https://github.com/smart-data-models) repositories.
7 |
8 | These data models allow to represent smart management of buildings. The entities
9 | are associated with the vertical segments of smart homes, smart cities, industry
10 | and related IoT applications. It is composed by the following entity types:
11 |
12 | - [Building](../Building/doc/spec.md). A Building is a human build structure
13 | where different activities occur related to living, working, healing and so
14 | on.
15 |
16 | - [BuildingOperation](../BuildingOperation/doc/spec.md). It captures automated
17 | operations that may be ongoing within a building.
18 |
--------------------------------------------------------------------------------
/specs/Device/Device/README.md:
--------------------------------------------------------------------------------
1 | [](https://creativecommons.org/licenses/by/4.0/)
2 |
3 | # Device Data Model
4 |
5 | **Note: The latest version of these Data Model can be found at
6 | [https://github.com/smart-data-models/dataModel.Device](https://github.com/smart-data-models/dataModel.Device)**
7 |
--------------------------------------------------------------------------------
/specs/Device/Device/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "device-9845A",
3 | "type": "Device",
4 | "category": {
5 | "value": ["sensor"]
6 | },
7 | "batteryLevel": {
8 | "value": 0.75
9 | },
10 | "dateFirstUsed": {
11 | "type": "DateTime",
12 | "value": "2014-09-11T11:00:00Z"
13 | },
14 | "controlledAsset": {
15 | "type": "Relationship",
16 | "value": ["wastecontainer-Osuna-100"]
17 | },
18 | "serialNumber": {
19 | "value": "9845A"
20 | },
21 | "mcc": {
22 | "value": "214"
23 | },
24 | "value": {
25 | "value": "l%3D0.22%3Bt%3D21.2"
26 | },
27 | "refDeviceModel": {
28 | "type": "Relationship",
29 | "value": "myDevice-wastecontainer-sensor-345"
30 | },
31 | "rssi": {
32 | "value": 0.86
33 | },
34 | "controlledProperty": {
35 | "value": ["fillingLevel", "temperature"]
36 | },
37 | "owner": {
38 | "value": ["http://person.org/leon"]
39 | },
40 | "mnc": {
41 | "value": "07"
42 | },
43 | "ipAddress": {
44 | "value": ["192.14.56.78"]
45 | },
46 | "deviceState": {
47 | "value": "ok"
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/specs/Device/Device/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "device-9845A",
3 | "type": "Device",
4 | "category": ["sensor"],
5 | "controlledProperty": ["fillingLevel", "temperature"],
6 | "controlledAsset": ["wastecontainer-Osuna-100"],
7 | "ipAddress": ["192.14.56.78"],
8 | "mcc": "214",
9 | "mnc": "07",
10 | "batteryLevel": 0.75,
11 | "serialNumber": "9845A",
12 | "refDeviceModel": "myDevice-wastecontainer-sensor-345",
13 | "rssi": 0.86,
14 | "value": "l%3D0.22%3Bt%3D21.2",
15 | "deviceState": "ok",
16 | "dateFirstUsed": "2014-09-11T11:00:00Z",
17 | "owner": ["http://person.org/leon"]
18 | }
19 |
--------------------------------------------------------------------------------
/specs/Device/DeviceModel/example-normalized-ld.jsonld:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:DeviceModel:myDevice-wastecontainer-sensor-345",
3 | "type": "DeviceModel",
4 | "category": {
5 | "type": "Property",
6 | "value": [
7 | "sensor"
8 | ]
9 | },
10 | "function": {
11 | "type": "Property",
12 | "value": [
13 | "sensing"
14 | ]
15 | },
16 | "modelName": {
17 | "type": "Property",
18 | "value": "S4Container 345"
19 | },
20 | "name": {
21 | "type": "Property",
22 | "value": "myDevice Sensor for Containers 345"
23 | },
24 | "brandName": {
25 | "type": "Property",
26 | "value": "myDevice"
27 | },
28 | "manufacturerName": {
29 | "type": "Property",
30 | "value": "myDevice Inc."
31 | },
32 | "controlledProperty": {
33 | "type": "Property",
34 | "value": [
35 | "fillingLevel",
36 | "temperature"
37 | ]
38 | },
39 | "@context": [
40 | "https://schema.lab.fiware.org/ld/context",
41 | "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
42 | ]
43 | }
44 |
--------------------------------------------------------------------------------
/specs/Device/DeviceModel/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "myDevice-wastecontainer-sensor-345",
3 | "type": "DeviceModel",
4 | "category": {
5 | "value": ["sensor"]
6 | },
7 | "function": {
8 | "value": ["sensing"]
9 | },
10 | "modelName": {
11 | "value": "S4Container 345"
12 | },
13 | "name": {
14 | "value": "myDevice Sensor for Containers 345"
15 | },
16 | "brandName": {
17 | "value": "myDevice"
18 | },
19 | "manufacturerName": {
20 | "value": "myDevice Inc."
21 | },
22 | "controlledProperty": {
23 | "value": ["fillingLevel", "temperature"]
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/specs/Device/DeviceModel/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "myDevice-wastecontainer-sensor-345",
3 | "type": "DeviceModel",
4 | "name": "myDevice Sensor for Containers 345",
5 | "brandName": "myDevice",
6 | "modelName": "S4Container 345",
7 | "manufacturerName": "myDevice Inc.",
8 | "category": ["sensor"],
9 | "function": ["sensing"],
10 | "controlledProperty": ["fillingLevel", "temperature"]
11 | }
12 |
--------------------------------------------------------------------------------
/specs/Device/README.md:
--------------------------------------------------------------------------------
1 | 
2 |
3 | > This repository is now archived and subsequent works will be carried out the
4 | > in [Smart data models](https://github.com/smart-data-models) repositories. The
5 | > latest version of these Data Models can be found at
6 | > [https://github.com/smart-data-models/dataModel.Device](https://github.com/smart-data-models/dataModel.Device)\*\*
7 |
--------------------------------------------------------------------------------
/specs/Device/doc/introduction.md:
--------------------------------------------------------------------------------
1 | # Device Data Models
2 |
3 | 
4 |
5 | > This repository is now archived and subsequent works will be carried out the
6 | > in [Smart data models](https://github.com/smart-data-models) repositories.
7 |
8 | These data models allow to represent devices of different nature (IoT, mobile,
9 | wearable, etc.). It is composed by the following entity types:
10 |
11 | - [Device](../Device/doc/spec.md). A Device is an electronic apparatus
12 | designed to accomplish a particular task.
13 | - [DeviceModel](../DeviceModel/doc/spec.md). It captures the static properties
14 | common to multiple instances of a Device.
15 |
--------------------------------------------------------------------------------
/specs/Energy/README.md:
--------------------------------------------------------------------------------
1 | # Energy
2 |
3 | 
4 |
5 | > This repository is now archived and subsequent works will be carried out the
6 | > in [Smart data models](https://github.com/smart-data-models) repositories.
7 |
8 | This folder contains domain specific data models related to energy. Currently
9 | only one entity type has been defined:
10 |
11 | - `ThreePhaseAcMeasurement`: represents a measurement from an electrical
12 | system that uses three-phase alternating current
13 |
--------------------------------------------------------------------------------
/specs/Environment/AeroAllergenObserved/README.md:
--------------------------------------------------------------------------------
1 | # Aero Allergen Observed
2 |
3 | ## Description
4 |
5 | This entity models aero allergens observed at a given location and related
6 | overall allergen risk.
7 |
8 | **Note**: JSON Schemas only capture the NGSI simplified representation, this
9 | means that to test the JSON schema examples with a
10 | [FIWARE NGSI version 2](http://fiware.github.io/specifications/ngsiv2/stable)
11 | API implementation, you need to use the `keyValues` mode (`options=keyValues`).
12 |
13 | ## Examples of Use
14 |
15 | ```json
16 | {
17 | "id": "AeroAllergenObserved-CDMX-Pollen-Cuajimalpa",
18 | "type": "AeroAllergenObserved",
19 | "alnus_Level": "moderate",
20 | "alnus": 40,
21 | "alnus_Allergenicity": "3",
22 | "casuarina_Level": "low",
23 | "casuarina": 1,
24 | "casuarina_Allergenicity": "3",
25 | "allergenRisk": "moderate",
26 | "address": {
27 | "addressCountry": "MX",
28 | "addressLocality": "Ciudad de México",
29 | "streetAddress": "Colegio Franco-Inglés"
30 | },
31 | "dateModified": "2018-02-16T17:24:39.00Z",
32 | "dateObserved": "2018-02-11T00:00:00.00Z",
33 | "location": {
34 | "type": "Point",
35 | "coordinates": [-99.276977, 19.381877]
36 | },
37 | "source": "http://rema.atmosfera.unam.mx/rema/"
38 | }
39 | ```
40 |
--------------------------------------------------------------------------------
/specs/Environment/AeroAllergenObserved/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "AeroAllergenObserved-CDMX-Pollen-Cuajimalpa",
3 | "type": "AeroAllergenObserved",
4 | "dateObserved": {
5 | "type": "DateTime",
6 | "value": "2018-02-11T00:00:00.00Z"
7 | },
8 | "alnus": {
9 | "value": 40
10 | },
11 | "alnus_Allergenicity": {
12 | "value": "3"
13 | },
14 | "allergenRisk": {
15 | "value": "moderate"
16 | },
17 | "casuarina": {
18 | "value": 1
19 | },
20 | "casuarina_Level": {
21 | "value": "low"
22 | },
23 | "casuarina_Allergenicity": {
24 | "value": "3"
25 | },
26 | "source": {
27 | "value": "http://rema.atmosfera.unam.mx/rema/"
28 | },
29 | "location": {
30 | "type": "geo:json",
31 | "value": {
32 | "type": "Point",
33 | "coordinates": [-99.276977, 19.381877]
34 | }
35 | },
36 | "address": {
37 | "type": "PostalAddress",
38 | "value": {
39 | "addressCountry": "MX",
40 | "addressLocality": "Ciudad de M\u00e9xico",
41 | "streetAddress": "Colegio Franco-Ingl\u00e9s"
42 | }
43 | },
44 | "dateModified": {
45 | "type": "DateTime",
46 | "value": "2018-02-16T17:24:39.00Z"
47 | },
48 | "alnus_Level": {
49 | "value": "moderate"
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/specs/Environment/AeroAllergenObserved/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "AeroAllergenObserved-CDMX-Pollen-Cuajimalpa",
3 | "type": "AeroAllergenObserved",
4 | "alnus_Level": "moderate",
5 | "alnus": 40,
6 | "alnus_Allergenicity": "3",
7 | "casuarina_Level": "low",
8 | "casuarina": 1,
9 | "casuarina_Allergenicity": "3",
10 | "allergenRisk": "moderate",
11 | "address": {
12 | "addressCountry": "MX",
13 | "addressLocality": "Ciudad de México",
14 | "streetAddress": "Colegio Franco-Inglés"
15 | },
16 | "dateModified": "2018-02-16T17:24:39.00Z",
17 | "dateObserved": "2018-02-11T00:00:00.00Z",
18 | "location": {
19 | "type": "Point",
20 | "coordinates": [-99.276977, 19.381877]
21 | },
22 | "source": "http://rema.atmosfera.unam.mx/rema/"
23 | }
24 |
--------------------------------------------------------------------------------
/specs/Environment/AeroAllergenObserved/schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json-schema.org/schema#",
3 | "$id": "https://fiware.github.io/data-models/specs/Environment/AeroAllergenObserved/schema.json",
4 | "title": "GSMA / FIWARE - Pollen levels observed schema",
5 | "description": "An observation of pollen levels at a certain place and time.",
6 | "type": "object",
7 | "allOf": [
8 | {
9 | "$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
10 | },
11 | {
12 | "$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/Location-Commons"
13 | },
14 | {
15 | "properties": {
16 | "type": {
17 | "type": "string",
18 | "enum": ["AeroAllergenObserved"],
19 | "description": "NGSI Entity type"
20 | },
21 | "dateObserved": {
22 | "type": "string"
23 | },
24 | "allergenRisk": {
25 | "type": "string",
26 | "enum": ["none", "low", "moderate", "high", "veryHigh"]
27 | },
28 | "refDevice": {
29 | "$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType"
30 | }
31 | }
32 | }
33 | ],
34 | "required": ["id", "type", "dateObserved", "location"]
35 | }
36 |
--------------------------------------------------------------------------------
/specs/Environment/AirQualityObserved/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "Madrid-AmbientObserved-28079004-2016-03-15T11:00:00",
3 | "type": "AirQualityObserved",
4 | "address": {
5 | "addressCountry": "ES",
6 | "addressLocality": "Madrid",
7 | "streetAddress": "Plaza de España"
8 | },
9 | "dateObserved": "2016-03-15T11:00:00/2016-03-15T12:00:00",
10 | "areaServed": "Brooklands",
11 | "location": {
12 | "type": "Point",
13 | "coordinates": [-3.712247222222222, 40.423852777777775]
14 | },
15 | "source": "http://datos.madrid.es",
16 | "precipitation": 0,
17 | "relativeHumidity": 0.54,
18 | "temperature": 12.2,
19 | "windDirection": 186,
20 | "windSpeed": 0.64,
21 | "airQualityLevel": "moderate",
22 | "airQualityIndex": 65,
23 | "reliability": 0.7,
24 | "CO": 500,
25 | "NO": 45,
26 | "NO2": 69,
27 | "NOx": 139,
28 | "SO2": 11,
29 | "CO_Level": "moderate",
30 | "refPointOfInterest": "28079004-Pza.deEspanya"
31 | }
32 |
--------------------------------------------------------------------------------
/specs/Environment/AirQualityObserved/harvest/ngsi_helper.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 |
3 |
4 | def element_dict(response):
5 | element = response['contextElement']
6 | return {'id': element['id'],
7 | 'location': {
8 | 'type': 'geo:point',
9 | 'value': element['attributes'][0]['value']}}
10 |
11 |
12 | def parse(ngsi_obj):
13 | return [element_dict(response) for response
14 | in ngsi_obj.get('contextResponses', [])]
15 |
--------------------------------------------------------------------------------
/specs/Environment/NoiseLevelObserved/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "dateObservedFrom": {
3 | "type": "DateTime",
4 | "value": "2016-12-28T11:00:00.00Z"
5 | },
6 | "LAmax": {
7 | "value": 94.5
8 | },
9 | "LAeq": {
10 | "value": 67.8
11 | },
12 | "dateObservedTo": {
13 | "type": "DateTime",
14 | "value": "2016-12-28T12:00:00.00Z"
15 | },
16 | "LAeq_d": {
17 | "value": 65.4
18 | },
19 | "location": {
20 | "type": "geo:json",
21 | "value": {
22 | "type": "Point",
23 | "coordinates": [-2.698, 42.8491]
24 | }
25 | },
26 |
27 | "LAS": {
28 | "value": 91.6
29 | },
30 | "frequencies": {
31 | "value": {
32 | "100": 40,
33 | "125": 40,
34 | "160": 40,
35 | "200": 40,
36 | "250": 40,
37 | "315": 40,
38 | "400": 40,
39 | "500": 40,
40 | "630": 40,
41 | "800": 40,
42 | "1000": 40,
43 | "1250": 40,
44 | "1600": 40,
45 | "2000": 40,
46 | "2500": 40,
47 | "3150": 40,
48 | "4000": 40,
49 | "8000": 40,
50 | "10000": 40
51 | },
52 | "metadata": {
53 | "description": {
54 | "value": "A-weighted, frequency, sound level "
55 | }
56 | }
57 | },
58 | "type": "NoiseLevelObserved",
59 | "id": "Vitoria-NoiseLevelObserved",
60 | "LAS": {
61 | "value": 91.6
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/specs/Environment/NoiseLevelObserved/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "Vitoria-NoiseLevelObserved",
3 | "type": "NoiseLevelObserved",
4 | "LAS": 91.6,
5 | "LAeq": 67.8,
6 | "LAeq_d": 65.4,
7 | "LAmax": 94.5,
8 | "dateObservedFrom": "2016-12-28T11:00:00.00Z",
9 | "dateObservedTo": "2016-12-28T12:00:00.00Z",
10 | "location": {
11 | "type": "Point",
12 | "coordinates": [-2.698, 42.8491]
13 | },
14 | "frequencies": {
15 | "100": 40,
16 | "125": 40,
17 | "160": 40,
18 | "200": 40,
19 | "250": 40,
20 | "315": 40,
21 | "400": 40,
22 | "500": 40,
23 | "630": 40,
24 | "800": 40,
25 | "1000": 40,
26 | "1250": 40,
27 | "1600": 40,
28 | "2000": 40,
29 | "2500": 40,
30 | "3150": 40,
31 | "4000": 40,
32 | "8000": 40,
33 | "10000": 40
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/specs/Environment/README.md:
--------------------------------------------------------------------------------
1 | # Environment Data Models
2 |
3 | 
4 |
5 | > This repository is now archived and subsequent works will be carried out the
6 | > in [Smart data models](https://github.com/smart-data-models) repositories. The
7 | > latest version of these Data Models can be found at
8 | > [https://github.com/smart-data-models/dataModel.Environment](https://github.com/smart-data-models/dataModel.Environment)\*\*
9 |
--------------------------------------------------------------------------------
/specs/Environment/WaterQualityObserved/example-normalized-ld.jsonld:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:WaterQualityObserved:waterqualityobserved:Sevilla:D1",
3 | "type": "WaterQualityObserved",
4 | "dateObserved": {
5 | "type": "Property",
6 | "value": {
7 | "@type": "DateTime",
8 | "@value": "2017-01-31T06:45:00Z"
9 | }
10 | },
11 | "temperature": {
12 | "type": "Property",
13 | "value": 24.4
14 | },
15 | "NO3": {
16 | "type": "Property",
17 | "value": 0.01
18 | },
19 | "location": {
20 | "type": "GeoProperty",
21 | "value": {
22 | "type": "Point",
23 | "coordinates": [
24 | -5.993307,
25 | 37.362882
26 | ]
27 | }
28 | },
29 | "pH": {
30 | "type": "Property",
31 | "value": 7.4
32 | },
33 | "measurand": {
34 | "type": "Property",
35 | "value": [
36 | "NO3, 0.01, M1, Concentration of Nitrates"
37 | ]
38 | },
39 | "conductivity": {
40 | "type": "Property",
41 | "value": 0.005
42 | },
43 | "@context": [
44 | "https://schema.lab.fiware.org/ld/context",
45 | "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
46 | ]
47 | }
48 |
--------------------------------------------------------------------------------
/specs/Environment/WaterQualityObserved/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "waterqualityobserved:Sevilla:D1",
3 | "type": "WaterQualityObserved",
4 | "dateObserved": {
5 | "type": "DateTime",
6 | "value": "2017-01-31T06:45:00Z"
7 | },
8 | "temperature": {
9 | "value": 24.4
10 | },
11 | "NO3": {
12 | "value": 0.01
13 | },
14 | "location": {
15 | "type": "geo:json",
16 | "value": {
17 | "type": "Point",
18 | "coordinates": [-5.993307, 37.362882]
19 | }
20 | },
21 | "pH": {
22 | "value": 7.4
23 | },
24 | "measurand": {
25 | "value": ["NO3, 0.01, M1, Concentration of Nitrates"]
26 | },
27 | "conductivity": {
28 | "value": 0.005
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/specs/Environment/WaterQualityObserved/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "waterqualityobserved:Sevilla:D1",
3 | "type": "WaterQualityObserved",
4 | "dateObserved": "2017-01-31T06:45:00Z",
5 | "measurand": ["NO3, 0.01, M1, Concentration of Nitrates"],
6 | "location": {
7 | "type": "Point",
8 | "coordinates": [-5.993307, 37.362882]
9 | },
10 | "temperature": 24.4,
11 | "conductivity": 0.005,
12 | "pH": 7.4,
13 | "NO3": 0.01
14 | }
15 |
--------------------------------------------------------------------------------
/specs/Environment/doc/introduction.md:
--------------------------------------------------------------------------------
1 | # Environment Harmonized Data Models
2 |
3 | 
4 |
5 | > This repository is now archived and subsequent works will be carried out the
6 | > in [Smart data models](https://github.com/smart-data-models) repositories.
7 |
8 | These data models describe the main entities involved with smart applications
9 | that deal with environmental issues.
10 |
11 | The main entities identified are:
12 |
13 | - [AeroAllergenObserved](../AeroAllergenObserved/doc/spec.md). It describes
14 | aero allergens observed at a given location and related overall allergen
15 | risk.
16 | - [AirQualityObserved](../AirQualityObserved/doc/spec.md). It represents an
17 | observation of air quality conditions at a certain place and time.
18 | - [WaterQualityObserved](../WaterQualityObserved/doc/spec.md). Allows to
19 | capture all the parameters involved in Water Quality scenarios, allowing to
20 | deal with different scenarios: - Rivers and lakes. - Reservoirs like dams,
21 | cisterns, impoudments. - Sea locations. - Swimming pools or fountains.
22 | - [NoiseLevelObserved](../NoiseLevelObserved/doc/spec.md). It represents an
23 | observation of those parameters that estimate noise pressure levels at a
24 | certain place and time.
25 |
--------------------------------------------------------------------------------
/specs/Environment/unsupported/AirQualityThreshold/README.md:
--------------------------------------------------------------------------------
1 | # Air quality threshold
2 |
3 | This folder contains a NGSI v2 data set which provides the air quality
4 | thresholds in Europe.
5 |
6 | Air quality thresholds allow to calculate an air quality index (AQI).
7 |
8 | For more information, please check
9 | [Air Quality Now](http://www.airqualitynow.eu/about_indices_definition.php#parag1)
10 |
11 | **Note**: JSON Schemas only capture the NGSI simplified representation, this
12 | means that to test the JSON schema examples with a
13 | [FIWARE NGSI version 2](http://fiware.github.io/specifications/ngsiv2/stable)
14 | API implementation, you need to use the `keyValues` mode (`options=keyValues`).
15 |
16 | ## Examples of use
17 |
18 | `curl http://130.206.83.68:1026/v2/entities?type=AirQualityThreshold`
19 |
20 | ```json
21 | {
22 | "id": "EU-AirQualityThreshold-O3-Background-VeryLow",
23 | "type": "AirQualityThreshold",
24 | "category": ["Background"],
25 | "frequency": "Hourly",
26 | "indexClass": "VeryLow",
27 | "maxConcentration": 60,
28 | "minConcentration": "0",
29 | "pollutant": "O3",
30 | "source": "http://www.airqualitynow.eu/"
31 | }
32 | ```
33 |
--------------------------------------------------------------------------------
/specs/Environment/unsupported/AirQualityThreshold/doc/spec.md:
--------------------------------------------------------------------------------
1 | # Air quality threshold
2 |
3 | The formal documentation of this model is currently under development. In the
4 | meantime please check the examples of use
5 |
6 | **Note**: JSON Schemas are intended to capture the data type and associated
7 | constraints of the different Attributes, regardless their final representation
8 | format in NGSI(v2, LD).
9 |
10 | ## Examples
11 |
12 | ### key-value pairs Example
13 |
14 | ```json
15 | {
16 | "id": "EU-AirQualityThreshold-O3-Background-VeryLow",
17 | "type": "AirQualityThreshold",
18 | "category": ["Background"],
19 | "frequency": "Hourly",
20 | "indexClass": "VeryLow",
21 | "maxConcentration": 60,
22 | "minConcentration": "0",
23 | "pollutant": "O3",
24 | "source": "http://www.airqualitynow.eu/"
25 | }
26 | ```
27 |
28 | ### LD Example
29 |
30 | Sample uses the NGSI-LD representation
31 |
32 | ```json
33 |
34 | ```
35 |
--------------------------------------------------------------------------------
/specs/Environment/unsupported/README.md:
--------------------------------------------------------------------------------
1 | # Unsupported folder
2 |
3 | These data models are not currently supported by the Community.
4 |
--------------------------------------------------------------------------------
/specs/IssueTracking/Open311_ServiceRequest/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "service-request:638344",
3 | "type": "Open311ServiceRequest",
4 | "status": {
5 | "value": "closed"
6 | },
7 | "description": {
8 | "value": "Acera en mal estado con bordillo partido en dos"
9 | },
10 | "service_code": {
11 | "value": 234
12 | },
13 | "status_notes": {
14 | "value": "Duplicate request."
15 | },
16 | "service_name": {
17 | "value": "Aceras"
18 | },
19 | "service_request_id": {
20 | "value": 638344
21 | },
22 | "updated_datetime": {
23 | "type": "DateTime",
24 | "value": "2010-04-14T06:37:38-08:00"
25 | },
26 | "address_string": {
27 | "value": "Calle San Juan Bautista, 2"
28 | },
29 | "requested_datetime": {
30 | "type": "DateTime",
31 | "value": "2010-04-14T06:37:38-08:00"
32 | },
33 | "location": {
34 | "type": "geo:json",
35 | "value": {
36 | "type": "Point",
37 | "coordinates": [-3.164485591715449, 40.62785133667262]
38 | }
39 | },
40 | "attributes": {
41 | "value": {
42 | "ISSUE_TYPE": ["Bordillo"]
43 | }
44 | },
45 | "expected_datetime": {
46 | "type": "DateTime",
47 | "value": "2010-04-15T06:37:38-08:00"
48 | },
49 | "agency_responsible": {
50 | "value": "Ayuntamiento de Ciudad"
51 | },
52 | "media_url": {
53 | "value": "http://exaple.org/media/638344.jpg"
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/specs/IssueTracking/Open311_ServiceRequest/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "service-request:638344",
3 | "type": "Open311ServiceRequest",
4 | "service_request_id": 638344,
5 | "status": "closed",
6 | "status_notes": "Duplicate request.",
7 | "service_name": "Aceras",
8 | "service_code": 234,
9 | "description": "Acera en mal estado con bordillo partido en dos",
10 | "agency_responsible": "Ayuntamiento de Ciudad",
11 | "requested_datetime": "2010-04-14T06:37:38-08:00",
12 | "updated_datetime": "2010-04-14T06:37:38-08:00",
13 | "expected_datetime": "2010-04-15T06:37:38-08:00",
14 | "address_string": "Calle San Juan Bautista, 2",
15 | "attributes": {
16 | "ISSUE_TYPE": ["Bordillo"]
17 | },
18 | "location": {
19 | "type": "Point",
20 | "coordinates": [-3.164485591715449, 40.62785133667262]
21 | },
22 | "media_url": "http://exaple.org/media/638344.jpg"
23 | }
24 |
--------------------------------------------------------------------------------
/specs/IssueTracking/Open311_ServiceRequest/schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json-schema.org/schema#",
3 | "$id": "https://fiware.github.io/data-models/specs/IssueTracking/Open311_ServiceRequest/schema.json",
4 | "title": "FIWARE - Open311 Service Request",
5 | "description": "An entity of type ServiceRequest is an acceptable Open 311 service request. Such entity encompasses all the properties defined by Open 311 at POST Service Request and GET Service Request.",
6 | "type": "object",
7 | "allOf": [
8 | {
9 | "$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
10 | },
11 | {
12 | "$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/Location-Commons"
13 | },
14 | {
15 | "properties": {
16 | "type": {
17 | "type": "string",
18 | "enum": ["Open311ServiceRequest"],
19 | "description": "NGSI Entity type"
20 | }
21 | }
22 | }
23 | ],
24 | "required": ["id", "type"]
25 | }
26 |
--------------------------------------------------------------------------------
/specs/IssueTracking/Open311_ServiceType/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "o311:servicetype-guadalajara-sidewalks",
3 | "type": "Open311ServiceType",
4 | "group": {
5 | "value": "street"
6 | },
7 | "description": {
8 | "value": "When a sidewalk is broken or dirty allows citizens to request a fix"
9 | },
10 | "service_code": {
11 | "value": 234
12 | },
13 | "service_name": {
14 | "value": "Aceras"
15 | },
16 | "open311:type": {
17 | "value": "realtime"
18 | },
19 | "jurisdiction_id": {
20 | "value": "www.smartguadalajara.com"
21 | },
22 | "dateCreated": {
23 | "type": "DateTime",
24 | "value": "2007-01-01T12:00:00Z"
25 | },
26 | "keywords": {
27 | "value": "street,sidewalk, cleaning, repair"
28 | },
29 | "attributes": {
30 | "value": [
31 | {
32 | "code": "ISSUE_TYPE",
33 | "description": "What is the identified problem at the sidewalk?",
34 | "datatype": "singlevaluelist",
35 | "required": true,
36 | "values": [
37 | {
38 | "name": "Bump",
39 | "key": 123
40 | },
41 | {
42 | "name": "Dirty",
43 | "key": 124
44 | }
45 | ],
46 | "variable": true,
47 | "order": 1,
48 | "datatype_description": ""
49 | }
50 | ]
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/specs/IssueTracking/Open311_ServiceType/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "o311:servicetype-guadalajara-sidewalks",
3 | "type": "Open311ServiceType",
4 | "dateCreated": "2007-01-01T12:00:00Z",
5 | "jurisdiction_id": "www.smartguadalajara.com",
6 | "open311:type": "realtime",
7 | "service_code": 234,
8 | "service_name": "Aceras",
9 | "description": "When a sidewalk is broken or dirty allows citizens to request a fix",
10 | "keywords": "street,sidewalk, cleaning, repair",
11 | "group": "street",
12 | "attributes": [
13 | {
14 | "variable": true,
15 | "code": "ISSUE_TYPE",
16 | "datatype": "singlevaluelist",
17 | "required": true,
18 | "datatype_description": "",
19 | "order": 1,
20 | "description": "What is the identified problem at the sidewalk?",
21 | "values": [
22 | {
23 | "key": 123,
24 | "name": "Bump"
25 | },
26 | {
27 | "key": 124,
28 | "name": "Dirty"
29 | }
30 | ]
31 | }
32 | ]
33 | }
34 |
--------------------------------------------------------------------------------
/specs/IssueTracking/Open311_ServiceType/schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json-schema.org/schema#",
3 | "$id": "https://fiware.github.io/data-models/specs/IssueTracking/Open311_ServiceType/schema.json",
4 | "title": "FIWARE - Open311 Service Type",
5 | "description": "As per Open311 an entity of type ServiceType is an acceptable 311 service request type. A request type can be unique to the city/jurisdiction.",
6 | "type": "object",
7 | "allOf": [
8 | {
9 | "$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
10 | },
11 | {
12 | "$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/Location-Commons"
13 | },
14 | {
15 | "properties": {
16 | "type": {
17 | "type": "string",
18 | "enum": ["Open311ServiceType"],
19 | "description": "NGSI Entity type"
20 | }
21 | }
22 | }
23 | ],
24 | "required": ["id", "type"]
25 | }
26 |
--------------------------------------------------------------------------------
/specs/IssueTracking/README.md:
--------------------------------------------------------------------------------
1 | # IssueTracking
2 |
3 | 
4 |
5 | > This repository is now archived and subsequent works will be carried out the
6 | > in [Smart data models](https://github.com/smart-data-models) repositories.
7 |
--------------------------------------------------------------------------------
/specs/KeyPerformanceIndicator/README.md:
--------------------------------------------------------------------------------
1 | # `DEPRECATED` KeyPerformanceIndicator
2 |
3 | 
4 |
5 | > This repository is now archived and subsequent works will be carried out the
6 | > in [Smart data models](https://github.com/smart-data-models) repositories.
7 |
--------------------------------------------------------------------------------
/specs/KeyPerformanceIndicator/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "kpi-2016-Ciudad-containers-faults",
3 | "type": "KeyPerformanceIndicator",
4 | "name": "Incidencias-Contenedores-Mensual",
5 | "description": "Number of incidences raised on containers per month",
6 | "category": ["quantitative"],
7 | "organization": {
8 | "name": "Ayuntamiento de Ciudad"
9 | },
10 | "provider": {
11 | "name": "Cleaning Service Provider S.A."
12 | },
13 | "kpiValue": 20,
14 | "currentStanding": "good",
15 | "calculationPeriod": {
16 | "from": "2016-06-01",
17 | "to": "2016-06-30"
18 | },
19 | "calculationMethod": "automatic",
20 | "calculationFrequency": "monthly",
21 | "dateModified": "2016-06-29T15:59:09.224Z",
22 | "dateNextCalculation": "2016-07-31",
23 | "address": {
24 | "addressLocality": "Ciudad",
25 | "addressCountry": "ESP"
26 | },
27 | "process": "Garbage Collection"
28 | }
29 |
--------------------------------------------------------------------------------
/specs/Parking/OffStreetParking/README.md:
--------------------------------------------------------------------------------
1 | # Parking lot
2 |
3 | The entity type corresponding to parking lots is `ParkingLot`.
4 |
5 | **Note**: JSON Schemas only capture the NGSI simplified representation, this
6 | means that to test the JSON schema examples with a
7 | [FIWARE NGSI version 2](http://fiware.github.io/specifications/ngsiv2/stable)
8 | API implementation, you need to use the `keyValues` mode (`options=keyValues`).
9 |
10 | # Examples of use
11 |
12 | Below you can find an example of `ParkingLot`provided by the city of Santander.
13 |
14 | ```json
15 | {
16 | "totalSpotNumber": "475",
17 | "location": {
18 | "value": "43.4628890000,-3.7949180000",
19 | "type": "geo:point"
20 | },
21 | "id": "urn:x-iot:smartsantander:parking:indoor:APAR1",
22 | "type": "ParkingLot",
23 | "name": "Parking de Puertochico"
24 | }
25 | ```
26 |
--------------------------------------------------------------------------------
/specs/Parking/OffStreetParking/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "porto-ParkingLot-23889",
3 | "type": "OffStreetParking",
4 | "name": "Parque de estacionamento Trindade",
5 | "category": [
6 | "underground",
7 | "public",
8 | "feeCharged",
9 | "mediumTerm",
10 | "barrierAccess"
11 | ],
12 | "chargeType": ["temporaryPrice"],
13 | "requiredPermit": [],
14 | "layout": ["multiLevel"],
15 | "maximumParkingDuration": "PT8H",
16 | "location": {
17 | "coordinates": [-8.60961198807, 41.150691773],
18 | "type": "Point"
19 | },
20 | "allowedVehicleType": ["car"],
21 | "totalSpotNumber": 414,
22 | "availableSpotNumber": 132,
23 | "address": {
24 | "streetAddress": "Rua de Fernandes Tomás",
25 | "addressLocality": "Porto",
26 | "addressCountry": "Portugal"
27 | },
28 | "description": "Municipal car park located near the Trindade metro station and the Town Hall",
29 | "dateModified": "2016-06-02T09:25:55.00Z"
30 | }
31 |
--------------------------------------------------------------------------------
/specs/Parking/OnStreetParking/auxiliary/centroids_parking_polygons.cpg:
--------------------------------------------------------------------------------
1 | UTF-8
--------------------------------------------------------------------------------
/specs/Parking/OnStreetParking/auxiliary/centroids_parking_polygons.dbf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FIWARE/data-models/8d5604ed7a162416ee0b7c16eb6b9627961f5c3c/specs/Parking/OnStreetParking/auxiliary/centroids_parking_polygons.dbf
--------------------------------------------------------------------------------
/specs/Parking/OnStreetParking/auxiliary/centroids_parking_polygons.prj:
--------------------------------------------------------------------------------
1 | GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
--------------------------------------------------------------------------------
/specs/Parking/OnStreetParking/auxiliary/centroids_parking_polygons.qpj:
--------------------------------------------------------------------------------
1 | GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]
2 |
--------------------------------------------------------------------------------
/specs/Parking/OnStreetParking/auxiliary/centroids_parking_polygons.shp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FIWARE/data-models/8d5604ed7a162416ee0b7c16eb6b9627961f5c3c/specs/Parking/OnStreetParking/auxiliary/centroids_parking_polygons.shp
--------------------------------------------------------------------------------
/specs/Parking/OnStreetParking/auxiliary/centroids_parking_polygons.shx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FIWARE/data-models/8d5604ed7a162416ee0b7c16eb6b9627961f5c3c/specs/Parking/OnStreetParking/auxiliary/centroids_parking_polygons.shx
--------------------------------------------------------------------------------
/specs/Parking/OnStreetParking/auxiliary/intersect_layer1.cpg:
--------------------------------------------------------------------------------
1 | UTF-8
--------------------------------------------------------------------------------
/specs/Parking/OnStreetParking/auxiliary/intersect_layer1.dbf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FIWARE/data-models/8d5604ed7a162416ee0b7c16eb6b9627961f5c3c/specs/Parking/OnStreetParking/auxiliary/intersect_layer1.dbf
--------------------------------------------------------------------------------
/specs/Parking/OnStreetParking/auxiliary/intersect_layer1.prj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FIWARE/data-models/8d5604ed7a162416ee0b7c16eb6b9627961f5c3c/specs/Parking/OnStreetParking/auxiliary/intersect_layer1.prj
--------------------------------------------------------------------------------
/specs/Parking/OnStreetParking/auxiliary/intersect_layer1.qpj:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/specs/Parking/OnStreetParking/auxiliary/intersect_layer1.shp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FIWARE/data-models/8d5604ed7a162416ee0b7c16eb6b9627961f5c3c/specs/Parking/OnStreetParking/auxiliary/intersect_layer1.shp
--------------------------------------------------------------------------------
/specs/Parking/OnStreetParking/auxiliary/intersect_layer1.shx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FIWARE/data-models/8d5604ed7a162416ee0b7c16eb6b9627961f5c3c/specs/Parking/OnStreetParking/auxiliary/intersect_layer1.shx
--------------------------------------------------------------------------------
/specs/Parking/OnStreetParking/auxiliary/layer1.cpg:
--------------------------------------------------------------------------------
1 | UTF-8
--------------------------------------------------------------------------------
/specs/Parking/OnStreetParking/auxiliary/layer1.prj:
--------------------------------------------------------------------------------
1 | GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
--------------------------------------------------------------------------------
/specs/Parking/OnStreetParking/auxiliary/layer1.qpj:
--------------------------------------------------------------------------------
1 | GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]
2 |
--------------------------------------------------------------------------------
/specs/Parking/OnStreetParking/auxiliary/layer1.shp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FIWARE/data-models/8d5604ed7a162416ee0b7c16eb6b9627961f5c3c/specs/Parking/OnStreetParking/auxiliary/layer1.shp
--------------------------------------------------------------------------------
/specs/Parking/OnStreetParking/auxiliary/layer1.shx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FIWARE/data-models/8d5604ed7a162416ee0b7c16eb6b9627961f5c3c/specs/Parking/OnStreetParking/auxiliary/layer1.shx
--------------------------------------------------------------------------------
/specs/Parking/OnStreetParking/auxiliary/parking_polygons_refined.prj:
--------------------------------------------------------------------------------
1 | GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
--------------------------------------------------------------------------------
/specs/Parking/OnStreetParking/auxiliary/parking_polygons_refined.qpj:
--------------------------------------------------------------------------------
1 | GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]
2 |
--------------------------------------------------------------------------------
/specs/Parking/OnStreetParking/auxiliary/parking_polygons_refined.shp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FIWARE/data-models/8d5604ed7a162416ee0b7c16eb6b9627961f5c3c/specs/Parking/OnStreetParking/auxiliary/parking_polygons_refined.shp
--------------------------------------------------------------------------------
/specs/Parking/OnStreetParking/auxiliary/parking_polygons_refined.shx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FIWARE/data-models/8d5604ed7a162416ee0b7c16eb6b9627961f5c3c/specs/Parking/OnStreetParking/auxiliary/parking_polygons_refined.shx
--------------------------------------------------------------------------------
/specs/Parking/OnStreetParking/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "santander:daoiz_velarde_1_5",
3 | "type": "OnStreetParking",
4 | "category": ["blueZone", "shortTerm", "forDisabled"],
5 | "allowedVehicleType": "car",
6 | "chargeType": ["temporaryFee"],
7 | "requiredPermit": ["blueZonePermit", "disabledPermit"],
8 | "permitActiveHours": {
9 | "blueZonePermit": "Mo, Tu, We, Th, Fr, Sa 09:00-20:00"
10 | },
11 | "maximumAllowedStay": "PT2H",
12 | "availableSpotNumber": 3,
13 | "totalSpotNumber": 6,
14 | "extraSpotNumber": 2,
15 | "dateModified": "2016-06-02T09:25:55.00Z",
16 | "location": {
17 | "type": "Polygon",
18 | "coordinates": [
19 | [
20 | [-3.80356167695194, 43.46296641666926],
21 | [-3.803161973253841, 43.46301091092682],
22 | [-3.803147082548618, 43.462879859445884],
23 | [-3.803536474744068, 43.462838666196674],
24 | [-3.80356167695194, 43.46296641666926]
25 | ]
26 | ]
27 | },
28 | "areaServed": "Zona Centro",
29 | "refParkingGroup": ["daoiz-velarde-1-5-main", "daoiz-velarde-1-5-disabled"]
30 | }
31 |
--------------------------------------------------------------------------------
/specs/Parking/OnStreetParking/intersection_refined.dbf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FIWARE/data-models/8d5604ed7a162416ee0b7c16eb6b9627961f5c3c/specs/Parking/OnStreetParking/intersection_refined.dbf
--------------------------------------------------------------------------------
/specs/Parking/OnStreetParking/intersection_refined.prj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FIWARE/data-models/8d5604ed7a162416ee0b7c16eb6b9627961f5c3c/specs/Parking/OnStreetParking/intersection_refined.prj
--------------------------------------------------------------------------------
/specs/Parking/OnStreetParking/intersection_refined.qpj:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/specs/Parking/OnStreetParking/intersection_refined.shp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FIWARE/data-models/8d5604ed7a162416ee0b7c16eb6b9627961f5c3c/specs/Parking/OnStreetParking/intersection_refined.shp
--------------------------------------------------------------------------------
/specs/Parking/OnStreetParking/intersection_refined.shx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FIWARE/data-models/8d5604ed7a162416ee0b7c16eb6b9627961f5c3c/specs/Parking/OnStreetParking/intersection_refined.shx
--------------------------------------------------------------------------------
/specs/Parking/OnStreetParking/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "santander-setup",
3 | "version": "0.1.1",
4 | "description": "Set up onstreetparking Santander for demo purposes",
5 | "main": "setup-santander.js",
6 | "directories": {
7 | "doc": "doc"
8 | },
9 | "scripts": {
10 | "test": "echo \"Error: no test specified\" && exit 1"
11 | },
12 | "author": "Jose Manuel Cantera",
13 | "license": "MIT",
14 | "dependencies": {
15 | "ya-csv": "^0.10.1"
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/specs/Parking/OnStreetParking/schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json-schema.org/schema#",
3 | "$id": "https://fiware.github.io/data-models/specs/Parking/OnStreetParking/schema.json",
4 | "title": "FIWARE - Parking / On Street Parking - TODO: Provide a complete schema",
5 | "description": "On street parking",
6 | "type": "object",
7 | "allOf": [
8 | {
9 | "$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
10 | },
11 | {
12 | "$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/Location-Commons"
13 | },
14 | {
15 | "properties": {
16 | "type": {
17 | "type": "string",
18 | "enum": ["OnStreetParking"],
19 | "description": "NGSI Entity type"
20 | }
21 | }
22 | }
23 | ],
24 | "required": ["id", "type", "location"]
25 | }
26 |
--------------------------------------------------------------------------------
/specs/Parking/ParkingAccess/example-normalized-ld.jsonld:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:ParkingAccess:accesspoint-trinidade-1",
3 | "type": "ParkingAccess",
4 | "category": {
5 | "type": "Property",
6 | "value": [
7 | "vehicleEntrance"
8 | ]
9 | },
10 | "name": {
11 | "type": "Property",
12 | "value": "Trinidade main entrance"
13 | },
14 | "location": {
15 | "type": "GeoProperty",
16 | "value": {
17 | "type": "Point",
18 | "coordinates": [
19 | -8.60961198807,
20 | 41.150691773
21 | ]
22 | }
23 | },
24 | "refOffStreetParking": {
25 | "type": "Relationship",
26 | "object": "urn:ngsi-ld:OffStreetParking:porto-OffStreetParking-23889"
27 | },
28 | "features": {
29 | "type": "Property",
30 | "value": [
31 | "barrier"
32 | ]
33 | },
34 | "@context": [
35 | "https://schema.lab.fiware.org/ld/context",
36 | "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
37 | ]
38 | }
39 |
--------------------------------------------------------------------------------
/specs/Parking/ParkingAccess/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "accesspoint-trinidade-1",
3 | "type": "ParkingAccess",
4 | "category": {
5 | "value": ["vehicleEntrance"]
6 | },
7 | "name": {
8 | "value": "Trinidade main entrance"
9 | },
10 | "location": {
11 | "type": "geo:json",
12 | "value": {
13 | "type": "Point",
14 | "coordinates": [-8.60961198807, 41.150691773]
15 | }
16 | },
17 | "refOffStreetParking": {
18 | "type": "Relationship",
19 | "value": "porto-OffStreetParking-23889"
20 | },
21 | "features": {
22 | "value": ["barrier"]
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/specs/Parking/ParkingAccess/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "accesspoint-trinidade-1",
3 | "type": "ParkingAccess",
4 | "name": "Trinidade main entrance",
5 | "location": {
6 | "coordinates": [-8.60961198807, 41.150691773],
7 | "type": "Point"
8 | },
9 | "category": ["vehicleEntrance"],
10 | "refOffStreetParking": "porto-OffStreetParking-23889",
11 | "features": ["barrier"]
12 | }
13 |
--------------------------------------------------------------------------------
/specs/Parking/ParkingAccess/schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json-schema.org/schema#",
3 | "$id": "https://fiware.github.io/data-models/specs/Parking/ParkingAcccess/schema.json",
4 | "title": "FIWARE - Parking / Parking Access",
5 | "description": "Parking Access - TODO: Provide a complete Schema",
6 | "type": "object",
7 | "allOf": [
8 | {
9 | "$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
10 | },
11 | {
12 | "$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/Location-Commons"
13 | },
14 | {
15 | "properties": {
16 | "type": {
17 | "type": "string",
18 | "enum": ["ParkingAccess"],
19 | "description": "NGSI Entity type"
20 | }
21 | }
22 | }
23 | ],
24 | "required": ["id", "type", "location"]
25 | }
26 |
--------------------------------------------------------------------------------
/specs/Parking/ParkingGroup/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "daoiz-velarde-1-5-disabled",
3 | "type": "ParkingGroup",
4 | "category": {
5 | "value": ["onstreet", "adjacentSpaces", "onlyDisabled"]
6 | },
7 | "refParkingSite": {
8 | "type": "Relationship",
9 | "value": "daoiz-velarde-1-5"
10 | },
11 | "permitActiveHours": {
12 | "value": "null"
13 | },
14 | "requiredPermit": {
15 | "value": "disabledPermit"
16 | },
17 | "allowedVehicleType": {
18 | "value": "car"
19 | },
20 | "availableSpotNumber": {
21 | "value": 1,
22 | "metadata": {
23 | "timestamp": {
24 | "type": "DateTime",
25 | "value": "2018-09-12T12:00:00"
26 | }
27 | }
28 | },
29 | "totalSpotNumber": {
30 | "value": 2
31 | },
32 | "location": {
33 | "type": "geo:json",
34 | "value": {
35 | "type": "Polygon",
36 | "coordinates": [
37 | [
38 | [-3.80356167695194, 43.46296641666926],
39 | [-3.803161973253841, 43.46301091092682],
40 | [-3.803147082548618, 43.462879859445884],
41 | [-3.803536474744068, 43.462838666196674],
42 | [-3.80356167695194, 43.46296641666926]
43 | ]
44 | ]
45 | }
46 | },
47 | "chargeType": {
48 | "value": ["free"]
49 | },
50 | "description": {
51 | "value": "Two parking spots reserved for disabled people"
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/specs/Parking/ParkingGroup/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "daoiz-velarde-1-5-disabled",
3 | "type": "ParkingGroup",
4 | "category": ["onstreet", "adjacentSpaces", "onlyDisabled"],
5 | "allowedVehicleType": "car",
6 | "chargeType": ["free"],
7 | "refParkingSite": "daoiz-velarde-1-5",
8 | "description": "Two parking spots reserved for disabled people",
9 | "totalSpotNumber": 2,
10 | "availableSpotNumber": 1,
11 | "location": {
12 | "type": "Polygon",
13 | "coordinates": [
14 | [
15 | [-3.80356167695194, 43.46296641666926],
16 | [-3.803161973253841, 43.46301091092682],
17 | [-3.803147082548618, 43.462879859445884],
18 | [-3.803536474744068, 43.462838666196674],
19 | [-3.80356167695194, 43.46296641666926]
20 | ]
21 | ]
22 | },
23 | "requiredPermit": "disabledPermit",
24 | "permitActiveHours": "null"
25 | }
26 |
--------------------------------------------------------------------------------
/specs/Parking/ParkingGroup/schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json-schema.org/schema#",
3 | "$id": "https://fiware.github.io/data-models/specs/Parking/ParkingGroup/schema.json",
4 | "title": "FIWARE - Parking / Parking Group",
5 | "description": "Parking Group - TODO: Provide a complete Schema",
6 | "type": "object",
7 | "allOf": [
8 | {
9 | "$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
10 | },
11 | {
12 | "properties": {
13 | "type": {
14 | "type": "string",
15 | "enum": ["ParkingGroup"],
16 | "description": "NGSI Entity type"
17 | }
18 | }
19 | }
20 | ],
21 | "required": ["id", "type"]
22 | }
23 |
--------------------------------------------------------------------------------
/specs/Parking/ParkingSpot/example-normalized-ld.jsonld:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:ParkingSpot:santander:daoiz_velarde_1_5:3",
3 | "type": "ParkingSpot",
4 | "status": {
5 | "type": "Property",
6 | "value": "free",
7 | "observedAt": "2018-09-21T12:00:00Z"
8 | },
9 | "category": {
10 | "type": "Property",
11 | "value": [
12 | "onstreet"
13 | ]
14 | },
15 | "refParkingSite": {
16 | "type": "Relationship",
17 | "object": "urn:ngsi-ld:ParkingSite:santander:daoiz_velarde_1_5"
18 | },
19 | "name": {
20 | "type": "Property",
21 | "value": "A-13"
22 | },
23 | "location": {
24 | "type": "GeoProperty",
25 | "value": {
26 | "type": "Point",
27 | "coordinates": [
28 | -3.80356167695194,
29 | 43.46296641666926
30 | ]
31 | }
32 | },
33 | "@context": [
34 | "https://schema.lab.fiware.org/ld/context",
35 | "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
36 | ]
37 | }
38 |
--------------------------------------------------------------------------------
/specs/Parking/ParkingSpot/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "santander:daoiz_velarde_1_5:3",
3 | "type": "ParkingSpot",
4 | "status": {
5 | "value": "free",
6 | "metadata": {
7 | "timestamp": {
8 | "type": "DateTime",
9 | "value": "2018-09-21T12:00:00"
10 | }
11 | }
12 | },
13 | "category": {
14 | "value": ["onstreet"]
15 | },
16 | "refParkingSite": {
17 | "type": "Relationship",
18 | "value": "santander:daoiz_velarde_1_5"
19 | },
20 | "name": {
21 | "value": "A-13"
22 | },
23 | "location": {
24 | "type": "geo:json",
25 | "value": {
26 | "type": "Point",
27 | "coordinates": [-3.80356167695194, 43.46296641666926]
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/specs/Parking/ParkingSpot/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "santander:daoiz_velarde_1_5:3",
3 | "type": "ParkingSpot",
4 | "name": "A-13",
5 | "location": {
6 | "type": "Point",
7 | "coordinates": [-3.80356167695194, 43.46296641666926]
8 | },
9 | "status": "free",
10 | "category": ["onstreet"],
11 | "refParkingSite": "santander:daoiz_velarde_1_5"
12 | }
13 |
--------------------------------------------------------------------------------
/specs/Parking/README.md:
--------------------------------------------------------------------------------
1 | # Parking
2 |
3 | 
4 |
5 | > This repository is now archived and subsequent works will be carried out the
6 | > in [Smart data models](https://github.com/smart-data-models) repositories. The
7 | > latest version of these Data Models can be found at
8 | > [https://github.com/smart-data-models/dataModel.Parking](https://github.com/smart-data-models/dataModel.Parking)\*\*
9 |
10 | This folder contains all the code that allows to expose harmonized datasets for
11 | parking information. Those datasets follow the
12 | [proposed smart parking data models](https://docs.google.com/document/d/17leIlKCE5EdOtrAurbIsvbjRnE6UMEXQcNVswvS0J_A/edit?usp=sharing).
13 |
14 | Two different entity types are exposed:
15 |
16 | - `StreetParking`.- It represents an area, in a street, which can contain one
17 | or more parking spots.
18 | - `ParkingLot` .- It represents a public parking lot (underground or surface)
19 | with well defined entrance and exit points.
20 |
21 | Parking data offered come from two different sources:
22 |
23 | - The city of Porto and the [OST platform](http://ost.pt).
24 | - The city of Santander ([SmartSantander Project](http://smartsantander.eu/)).
25 |
26 | All the datasets exposed here are subject to the license claim made by the
27 | original data sources. Please check carefully before using them.
28 |
--------------------------------------------------------------------------------
/specs/ParksAndGardens/FlowerBed/example-normalized-ld.jsonld:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:FlowerBed:FlowerBed-345",
3 | "type": "FlowerBed",
4 | "category": {
5 | "type": "Property",
6 | "value": [
7 | "urbanTreeSpot"
8 | ]
9 | },
10 | "soilMoistureVwc": {
11 | "type": "Property",
12 | "value": 0.85
13 | },
14 | "dateLastWatering": {
15 | "type": "Property",
16 | "value": {
17 | "@type": "DateTime",
18 | "@value": "2017-03-31T08:00:00Z"
19 | }
20 | },
21 | "soilTemperature": {
22 | "type": "Property",
23 | "value": 17
24 | },
25 | "address": {
26 | "type": "Property",
27 | "value": {
28 | "addressCountry": "Spain",
29 | "streetAddress": "Paseo Zorrilla, 122",
30 | "adressLocality": "Valladolid",
31 | "type": "PostalAddress"
32 | }
33 | },
34 | "location": {
35 | "type": "GeoProperty",
36 | "value": {
37 | "type": "Point",
38 | "coordinates": [
39 | -4.743187,
40 | 41.627999
41 | ]
42 | }
43 | },
44 | "@context": [
45 | "https://schema.lab.fiware.org/ld/context",
46 | "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
47 | ]
48 | }
49 |
--------------------------------------------------------------------------------
/specs/ParksAndGardens/FlowerBed/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "FlowerBed-345",
3 | "type": "FlowerBed",
4 | "category": {
5 | "value": ["urbanTreeSpot"]
6 | },
7 | "soilMoistureVwc": {
8 | "value": 0.85
9 | },
10 | "dateLastWatering": {
11 | "type": "DateTime",
12 | "value": "2017-03-31T08:00:00Z"
13 | },
14 | "soilTemperature": {
15 | "value": 17
16 | },
17 | "address": {
18 | "type": "PostalAddress",
19 | "value": {
20 | "addressCountry": "Spain",
21 | "streetAddress": "Paseo Zorrilla, 122",
22 | "adressLocality": "Valladolid"
23 | }
24 | },
25 | "location": {
26 | "type": "geo:json",
27 | "value": {
28 | "type": "Point",
29 | "coordinates": [-4.743187, 41.627999]
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/specs/ParksAndGardens/FlowerBed/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "FlowerBed-345",
3 | "type": "FlowerBed",
4 | "category": ["urbanTreeSpot"],
5 | "dateLastWatering": "2017-03-31T08:00:00Z",
6 | "address": {
7 | "streetAddress": "Paseo Zorrilla, 122",
8 | "adressLocality": "Valladolid",
9 | "addressCountry": "Spain"
10 | },
11 | "location": {
12 | "type": "Point",
13 | "coordinates": [-4.743187, 41.627999]
14 | },
15 | "soilTemperature": 17,
16 | "soilMoistureVwc": 0.85
17 | }
18 |
--------------------------------------------------------------------------------
/specs/ParksAndGardens/Garden/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "Santander-Garden-Piquio",
3 | "type": "Garden",
4 | "category": {
5 | "value": ["public"]
6 | },
7 | "style": {
8 | "value": "french"
9 | },
10 | "description": {
11 | "value": "Jardines de Piquio. Zona El Sardinero"
12 | },
13 | "dateLastWatering": {
14 | "type": "DateTime",
15 | "value": "2017-03-31T08:00:00Z"
16 | },
17 | "location": {
18 | "type": "geo:json",
19 | "value": {
20 | "type": "Point",
21 | "coordinates": [-3.7836974, 43.4741091]
22 | }
23 | },
24 | "refRecord": {
25 | "type": "Relationship",
26 | "value": ["Santander-Garden-Piquio-Record-1"]
27 | },
28 | "areaServed": {
29 | "value": "El Sardinero"
30 | },
31 | "address": {
32 | "type": "PostalAddress",
33 | "value": {
34 | "addressLocality": "Santander",
35 | "postalCode": "39005",
36 | "streetAddress": "Avenida Casta\u00f1eda"
37 | }
38 | },
39 | "openingHours": {
40 | "value": "Mo-Su"
41 | },
42 | "name": {
43 | "value": "Jardines de Piquio"
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/specs/ParksAndGardens/Garden/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "Santander-Garden-Piquio",
3 | "type": "Garden",
4 | "name": "Jardines de Piquio",
5 | "description": "Jardines de Piquio. Zona El Sardinero",
6 | "location": {
7 | "type": "Point",
8 | "coordinates": [-3.7836974, 43.4741091]
9 | },
10 | "address": {
11 | "streetAddress": "Avenida Castañeda",
12 | "addressLocality": "Santander",
13 | "postalCode": "39005"
14 | },
15 | "openingHours": "Mo-Su",
16 | "style": "french",
17 | "category": ["public"],
18 | "areaServed": "El Sardinero",
19 | "dateLastWatering": "2017-03-31T08:00:00Z",
20 | "refRecord": ["Santander-Garden-Piquio-Record-1"]
21 | }
22 |
--------------------------------------------------------------------------------
/specs/ParksAndGardens/GreenspaceRecord/example-normalized-ld.jsonld:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:GreenspaceRecord:Santander-Garden-Piquio-Record-1",
3 | "type": "GreenspaceRecord",
4 | "refGreenspace": {
5 | "type": "Relationship",
6 | "object": "urn:ngsi-ld:Greenspace:Santander-Garden-Piquio"
7 | },
8 | "temperature": {
9 | "type": "Property",
10 | "value": 17
11 | },
12 | "soilTemperature": {
13 | "type": "Property",
14 | "value": 13
15 | },
16 | "location": {
17 | "type": "GeoProperty",
18 | "value": {
19 | "type": "Point",
20 | "coordinates": [
21 | -3.7836974,
22 | 43.4741091
23 | ]
24 | }
25 | },
26 | "relativeHumidity": {
27 | "type": "Property",
28 | "value": 0.87
29 | },
30 | "dateObserved": {
31 | "type": "Property",
32 | "value": {
33 | "@type": "DateTime",
34 | "@value": "2019-01-15T12:00:00Z"
35 | }
36 | },
37 | "@context": [
38 | "https://schema.lab.fiware.org/ld/context",
39 | "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
40 | ]
41 | }
42 |
--------------------------------------------------------------------------------
/specs/ParksAndGardens/GreenspaceRecord/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "Santander-Garden-Piquio-Record-1",
3 | "type": "GreenspaceRecord",
4 | "refGreenspace": {
5 | "type": "Relationship",
6 | "value": "Santander-Garden-Piquio"
7 | },
8 | "temperature": {
9 | "value": 17
10 | },
11 | "soilTemperature": {
12 | "value": 13
13 | },
14 | "location": {
15 | "type": "geo:json",
16 | "value": {
17 | "type": "Point",
18 | "coordinates": [-3.7836974, 43.4741091]
19 | }
20 | },
21 | "relativeHumidity": {
22 | "value": 0.87
23 | },
24 | "dateObserved": {
25 | "type": "DateTime",
26 | "value": "2019-01-15T12:00:00Z"
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/specs/ParksAndGardens/GreenspaceRecord/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "Santander-Garden-Piquio-Record-1",
3 | "type": "GreenspaceRecord",
4 | "location": {
5 | "type": "Point",
6 | "coordinates": [-3.7836974, 43.4741091]
7 | },
8 | "temperature": 17,
9 | "relativeHumidity": 0.87,
10 | "soilTemperature": 13,
11 | "refGreenspace": "Santander-Garden-Piquio",
12 | "dateObserved": "2019-01-15T12:00:00Z"
13 | }
14 |
--------------------------------------------------------------------------------
/specs/ParksAndGardens/README.md:
--------------------------------------------------------------------------------
1 | # Parks and Gardens
2 |
3 | 
4 |
5 | > This repository is now archived and subsequent works will be carried out the
6 | > in [Smart data models](https://github.com/smart-data-models) repositories.
7 |
--------------------------------------------------------------------------------
/specs/PointOfInteraction/README.md:
--------------------------------------------------------------------------------
1 | # Smart Point of Interaction data model
2 |
3 | 
4 |
5 | > This repository is now archived and subsequent works will be carried out the
6 | > in [Smart data models](https://github.com/smart-data-models) repositories.
7 |
8 | As an alternative or extension to traditional interactive points (shopping
9 | malls, museums, airports, etc.), a Smart Point of Interaction use technologies
10 | such as Bluetooth Low Energy or Wi-Fi to bring new interactions to user's
11 | devices (smartphones, wearables, etc.).
12 |
13 | A smart point of interaction is composed mainly by two entities:
14 |
15 | - "Smart Point of Interaction": defines an interactive point which provides
16 | information, entertainment or co-creation tools to citizens. Optionally it
17 | can reference a related smart city asset with enriched interaction provided
18 | by this technology.
19 | - "Smart Spot": a set of resources related to a physical device and the
20 | technology to provide a Smart Point of Interaction.
21 |
22 | Next illustration shows the data model architecture:
23 |
24 |

25 |
--------------------------------------------------------------------------------
/specs/PointOfInteraction/SmartPointOfInteraction/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "SPOI-ES-4326",
3 | "type": "SmartPointOfInteraction",
4 | "category": {
5 | "value": ["co-creation"]
6 | },
7 | "applicationUrl": {
8 | "type": "URL",
9 | "value": "http://www.example.org"
10 | },
11 | "areaCovered": {
12 | "value": {
13 | "type": "Polygon",
14 | "coordinates": [
15 | [
16 | [25.774, -80.19],
17 | [18.466, -66.118],
18 | [32.321, -64.757],
19 | [25.774, -80.19]
20 | ]
21 | ]
22 | }
23 | },
24 | "availability": {
25 | "value": "Tu,Th 16:00-20:00"
26 | },
27 | "refSmartSpot": {
28 | "type": "Relationship",
29 | "value": ["SSPOT-F94C58E29DD5", "SSPOT-F94C53E21DD2", "SSPOT-F94C51A295D9"]
30 | },
31 | "refRelatedEntity": {
32 | "type": "Relationship",
33 | "value": ["POI-PlazaCazorla-3123"]
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/specs/PointOfInteraction/SmartPointOfInteraction/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "SPOI-ES-4326",
3 | "type": "SmartPointOfInteraction",
4 | "category": ["co-creation"],
5 | "areaCovered": {
6 | "type": "Polygon",
7 | "coordinates": [
8 | [[25.774, -80.19], [18.466, -66.118], [32.321, -64.757], [25.774, -80.19]]
9 | ]
10 | },
11 | "applicationUrl": "http://www.example.org",
12 | "availability": "Tu,Th 16:00-20:00",
13 | "refRelatedEntity": ["POI-PlazaCazorla-3123"],
14 | "refSmartSpot": [
15 | "SSPOT-F94C58E29DD5",
16 | "SSPOT-F94C53E21DD2",
17 | "SSPOT-F94C51A295D9"
18 | ]
19 | }
20 |
--------------------------------------------------------------------------------
/specs/PointOfInteraction/SmartSpot/example-normalized-ld.jsonld:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:SmartSpot:SSPOT-F94C51A295D9",
3 | "type": "SmartSpot",
4 | "announcementPeriod": {
5 | "type": "Property",
6 | "value": 500
7 | },
8 | "signalStrength": {
9 | "type": "Property",
10 | "value": "highest"
11 | },
12 | "announcedUrl": {
13 | "type": "Property",
14 | "value": "http://goo.gl/EJ81JP"
15 | },
16 | "availability": {
17 | "type": "Property",
18 | "value": "Tu,Th 16:00-20:00"
19 | },
20 | "coverageRadius": {
21 | "type": "Property",
22 | "value": 30
23 | },
24 | "bluetoothChannel": {
25 | "type": "Property",
26 | "value": "37,38,39"
27 | },
28 | "refSmartPointOfInteraction": {
29 | "type": "Relationship",
30 | "object": "urn:ngsi-ld:SmartPointOfInteraction:SPOI-ES-4326"
31 | },
32 | "@context": [
33 | "https://schema.lab.fiware.org/ld/context",
34 | "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
35 | ]
36 | }
37 |
--------------------------------------------------------------------------------
/specs/PointOfInteraction/SmartSpot/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "SSPOT-F94C51A295D9",
3 | "type": "SmartSpot",
4 | "announcementPeriod": {
5 | "value": 500
6 | },
7 | "signalStrength": {
8 | "value": "highest"
9 | },
10 | "announcedUrl": {
11 | "value": "http://goo.gl/EJ81JP"
12 | },
13 | "availability": {
14 | "value": "Tu,Th 16:00-20:00"
15 | },
16 | "coverageRadius": {
17 | "value": 30
18 | },
19 | "bluetoothChannel": {
20 | "value": "37,38,39"
21 | },
22 | "refSmartPointOfInteraction": {
23 | "type": "Relationship",
24 | "value": "SPOI-ES-4326"
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/specs/PointOfInteraction/SmartSpot/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "SSPOT-F94C51A295D9",
3 | "type": "SmartSpot",
4 | "announcedUrl": "http://goo.gl/EJ81JP",
5 | "signalStrength": "highest",
6 | "bluetoothChannel": "37,38,39",
7 | "coverageRadius": 30,
8 | "announcementPeriod": 500,
9 | "availability": "Tu,Th 16:00-20:00",
10 | "refSmartPointOfInteraction": "SPOI-ES-4326"
11 | }
12 |
--------------------------------------------------------------------------------
/specs/PointOfInterest/.gitignore:
--------------------------------------------------------------------------------
1 | log.txt
2 | nohup.out
3 |
--------------------------------------------------------------------------------
/specs/PointOfInterest/AirQualityStation/doc/spec.md:
--------------------------------------------------------------------------------
1 | # Air quality station
2 |
3 | 
4 |
5 | > This repository is now archived and subsequent works will be carried out the
6 | > in [Smart data models](https://github.com/smart-data-models) repositories.
7 |
8 | The formal documentation is not available yet. In the meantime please check some
9 | of the examples of use.
10 |
11 | **Note**: JSON Schemas are intended to capture the data type and associated
12 | constraints of the different Attributes, regardless their final representation
13 | format in NGSI(v2, LD).
14 |
15 | ## Examples of use
16 |
17 | {
18 | "address": {
19 | "addressCountry": "ES",
20 | "addressLocality": "Madrid",
21 | "streetAddress": "Plaza de España"
22 | },
23 | "category": "AirQualityStation",
24 | "location": {
25 | "type": "Point",
26 | "coordinates": [
27 | -3.712247222222222,
28 | 40.423852777777775
29 | ]
30 | },
31 | "name": "Pza. de España",
32 | "source": "http://datos.madrid.es",
33 | "type": "PointOfInterest",
34 | "id": "AirQualityStation-ES-Madrid-004"
35 | }
36 |
--------------------------------------------------------------------------------
/specs/PointOfInterest/Beach/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "Beach-A-Concha-123456",
3 | "type": "Beach",
4 | "description": {
5 | "value": "La Playa de A Concha se presenta ....."
6 | },
7 | "width": {
8 | "value": 51
9 | },
10 | "accessType": {
11 | "value": ["privateVehicle", "onFoot", "publicTransport"]
12 | },
13 | "location": {
14 | "type": "geo:json",
15 | "value": {
16 | "type": "Point",
17 | "coordinates": [-8.768460000000001, 42.60214472222222]
18 | }
19 | },
20 | "facilities": {
21 | "value": ["promenade", "showers", "cleaningServices", "lifeGuard"]
22 | },
23 | "length": {
24 | "value": 450
25 | },
26 | "source": {
27 | "value": "http://www.tourspain.es"
28 | },
29 | "address": {
30 | "type": "PostalAddress",
31 | "value": {
32 | "addressCountry": "ES",
33 | "addressLocality": "Vilagarc\u00eda de Arousa"
34 | }
35 | },
36 | "beachType": {
37 | "value": ["whiteSand", "urban", "calmWaters"]
38 | },
39 | "occupationRate": {
40 | "value": "high"
41 | },
42 | "name": {
43 | "value": "Playa de a Concha"
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/specs/PointOfInterest/Beach/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "Beach-A-Concha-123456",
3 | "type": "Beach",
4 | "name": "Playa de a Concha",
5 | "description": "La Playa de A Concha se presenta .....",
6 | "address": {
7 | "addressCountry": "ES",
8 | "addressLocality": "Vilagarcía de Arousa"
9 | },
10 | "beachType": ["whiteSand", "urban", "calmWaters"],
11 | "occupationRate": "high",
12 | "facilities": ["promenade", "showers", "cleaningServices", "lifeGuard"],
13 | "accessType": ["privateVehicle", "onFoot", "publicTransport"],
14 | "location": {
15 | "type": "Point",
16 | "coordinates": [-8.768460000000001, 42.60214472222222]
17 | },
18 | "width": 51,
19 | "length": 450,
20 | "source": "http://www.tourspain.es"
21 | }
22 |
--------------------------------------------------------------------------------
/specs/PointOfInterest/Museum/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "Museum-Barcelona-MACBA-1234",
3 | "type": "Museum",
4 | "name": "Museo de Arte Contemporaneo de Barcelona",
5 | "alternateName": "MACBA",
6 | "description": "The MACBA was designed by the American architect Richard Meier and inaugurated in 1995.",
7 | "address": {
8 | "addressCountry": "ES",
9 | "addressLocality": "Barcelona",
10 | "streetAddress": "Plaza Dels Àngels, 1"
11 | },
12 | "museumType": ["fineArts"],
13 | "artPeriod": ["contemporary"],
14 | "facilities": ["shop", "cloakRoom", "guidedTour"],
15 | "location": {
16 | "type": "Point",
17 | "coordinates": [2.1668771521199393, 41.38302235796602]
18 | },
19 | "openingHoursSpecification": [
20 | {
21 | "opens": "11:00",
22 | "closes": "19:30",
23 | "dayOfWeek": "Mo, Wed, Thu, Fr"
24 | },
25 | {
26 | "opens": "10:00",
27 | "closes": "21:00",
28 | "dayOfWeek": "Sat"
29 | },
30 | {
31 | "opens": "10:00",
32 | "closes": "15:00",
33 | "dayOfWeek": "Sun"
34 | }
35 | ],
36 | "touristArea": "Barcelona-Capital",
37 | "source": "http://www.tourspain.es"
38 | }
39 |
--------------------------------------------------------------------------------
/specs/PointOfInterest/PointOfInterest/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "PointOfInterest-A-Concha-123456",
3 | "type": "PointOfInterest",
4 | "category": {
5 | "value": ["113"]
6 | },
7 | "description": {
8 | "value": "La Playa de A Concha se presenta como una continuaci\u00f3n de la Playa de Compostela, una de las m\u00e1s frecuentadas de Vilagarc\u00eda."
9 | },
10 | "refSeeAlso": {
11 | "type": "Relationship",
12 | "value": ["Beach-A-Concha-123456"]
13 | },
14 | "source": {
15 | "value": "http://www.tourspain.es"
16 | },
17 | "location": {
18 | "type": "geo:json",
19 | "value": {
20 | "type": "Point",
21 | "coordinates": [-8.768460000000001, 42.60214472222222]
22 | }
23 | },
24 | "address": {
25 | "type": "PostalAddress",
26 | "value": {
27 | "addressCountry": "ES",
28 | "addressLocality": "Vilagarc\u00eda de Arousa"
29 | }
30 | },
31 | "name": {
32 | "value": "Playa de a Concha"
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/specs/PointOfInterest/PointOfInterest/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "PointOfInterest-A-Concha-123456",
3 | "type": "PointOfInterest",
4 | "name": "Playa de a Concha",
5 | "description": "La Playa de A Concha se presenta como una continuación de la Playa de Compostela, una de las más frecuentadas de Vilagarcía.",
6 | "address": {
7 | "addressCountry": "ES",
8 | "addressLocality": "Vilagarcía de Arousa"
9 | },
10 | "category": ["113"],
11 | "location": {
12 | "type": "Point",
13 | "coordinates": [-8.768460000000001, 42.60214472222222]
14 | },
15 | "source": "http://www.tourspain.es",
16 | "refSeeAlso": ["Beach-A-Concha-123456"]
17 | }
18 |
--------------------------------------------------------------------------------
/specs/PointOfInterest/WeatherStation/doc/spec.md:
--------------------------------------------------------------------------------
1 | Weather station
2 |
3 | The formal documentation is not available yet. In the meantime please check some
4 | of the examples of use.
5 |
6 | ## Examples of use
7 |
8 | {
9 | "category": "WeatherStation",
10 | "location": {
11 | "type": "Point",
12 | "coordinates": [
13 | -7.684722222222222,
14 | 43.78611111111111
15 | ]
16 | },
17 | "name": "Estaca de Bares",
18 | "postalAddress": {
19 | "addressCountry": "ES",
20 | "addressLocality": "Mañón",
21 | "addressRegion": "A Coruña"
22 | },
23 | "source": "http://aemet.es",
24 | "type": "PointOfInterest",
25 | "id": "WeatherStation-ES-1351"
26 | }
27 |
--------------------------------------------------------------------------------
/specs/PointOfInterest/WeatherStation/harvesters/portugal/.dockerignore:
--------------------------------------------------------------------------------
1 | .*
2 | *.csv
3 | *.yml
4 | *.md
5 | Dockerfile
6 |
--------------------------------------------------------------------------------
/specs/PointOfInterest/WeatherStation/harvesters/portugal/.gitignore:
--------------------------------------------------------------------------------
1 | *.yml
2 | *.csv
3 |
--------------------------------------------------------------------------------
/specs/PointOfInterest/WeatherStation/harvesters/portugal/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM python:3.7.3-alpine3.10
2 |
3 | LABEL maintainer="Dmitrii Demin "
4 |
5 | WORKDIR /opt/
6 |
7 | COPY . /opt
8 |
9 | RUN apk update && \
10 | apk add --no-cache git build-base curl && \
11 | pip install -r requirements.txt && \
12 | apk del build-base git && \
13 | rm -f /var/cache/apk/*
14 |
15 | USER nobody
16 |
17 | ENTRYPOINT ["/opt/entrypoint.sh"]
18 |
--------------------------------------------------------------------------------
/specs/PointOfInterest/WeatherStation/harvesters/portugal/README.md:
--------------------------------------------------------------------------------
1 | 
2 |
3 | # FIWARE harvester - Portugal weather stations
4 |
5 | ## Overview
6 |
7 | It performs data harvesting using IPMA's data site as the origin and Orion
8 | Context Broker as the destination and prepares a config that can be used by
9 | other harvesters, see the list in the
10 | [harvester](./portugal_weather_stations.py). It also exports data to the CSV
11 | file (./stations.csv), that can be used to upload the list of weather stations
12 | to
13 | [Google Maps](https://www.google.com/maps/d/viewer?mid=1Sd5uNFd2um0GPog2EGkyrlzmBnEKzPQw).
14 |
15 | ## How to run
16 |
17 | ```console
18 | docker run -t --rm fiware/harvesters:weather-stations-portugal \
19 | --orion ${ORION_ENDPOINT} \
20 | --service ${FIWARE_SERVICE}
21 | ```
22 |
23 | ## Optional parameters
24 |
25 | It is possible to limit the amount of parallel requests to the sources and
26 | Orion. See parameters in the [harvester](./portugal_weather_stations.py).
27 |
--------------------------------------------------------------------------------
/specs/PointOfInterest/WeatherStation/harvesters/portugal/entrypoint.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | ORION_DEFAULT=http://orion:1026
4 | PARAMS=$@
5 | HARVESTER=portugal_weather_stations.py
6 |
7 | while [[ "$#" -gt 0 ]]; do
8 | case $1 in
9 | --orion)
10 | ORION="$2"
11 | shift
12 | ;;
13 | esac
14 | shift
15 | done
16 |
17 | if [[ -z ${ORION} ]]; then ORION=${ORION_DEFAULT}; fi
18 |
19 | echo "Trying ${ORION}/version .."
20 |
21 | while [[ ! "$(curl -s ${ORION}/version)" ]]; do
22 | echo "sleeping .."
23 | sleep 5
24 | done
25 |
26 | exec /usr/bin/env python3 -u /opt/${HARVESTER} ${PARAMS}
27 |
--------------------------------------------------------------------------------
/specs/PointOfInterest/WeatherStation/harvesters/portugal/requirements.txt:
--------------------------------------------------------------------------------
1 | # python3.7.3
2 | pyyaml>=5.1
3 | aiohttp>=3.5.4
4 | requests>=2.21.0
5 | xlrd>=1.2.0
6 | yajl>=0.3.5
7 | uvloop>=0.12.2
8 |
--------------------------------------------------------------------------------
/specs/PointOfInterest/WeatherStation/harvesters/spain/.dockerignore:
--------------------------------------------------------------------------------
1 | .*
2 | *.csv
3 | *.yml
4 | *.md
5 | Dockerfile
6 |
--------------------------------------------------------------------------------
/specs/PointOfInterest/WeatherStation/harvesters/spain/.gitignore:
--------------------------------------------------------------------------------
1 | *.yml
2 | *.csv
3 |
--------------------------------------------------------------------------------
/specs/PointOfInterest/WeatherStation/harvesters/spain/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM python:3.7.3-alpine3.10
2 |
3 | LABEL maintainer="Dmitrii Demin "
4 |
5 | WORKDIR /opt/
6 |
7 | COPY . /opt
8 |
9 | RUN apk update && \
10 | apk add --no-cache git build-base curl && \
11 | pip install -r requirements.txt && \
12 | apk del build-base git && \
13 | rm -f /var/cache/apk/*
14 |
15 | USER nobody
16 |
17 | ENTRYPOINT ["/opt/entrypoint.sh"]
18 |
--------------------------------------------------------------------------------
/specs/PointOfInterest/WeatherStation/harvesters/spain/README.md:
--------------------------------------------------------------------------------
1 | 
2 |
3 | # FIWARE harvester - Spain weather stations
4 |
5 | ## Overview
6 |
7 | It performs data harvesting using AEMET's data site as the origin and Orion
8 | Context Broker as the destination and prepares a config that can be used by
9 | other harvesters, see the list in the [harvester](./spain_weather_stations.py).
10 | It also exports data to the CSV file (./stations.csv), that can be used to
11 | upload the list of weather stations to
12 | [Google Maps](https://www.google.com/maps/d/viewer?mid=1Sd5uNFd2um0GPog2EGkyrlzmBnEKzPQw).
13 |
14 | ## How to run
15 |
16 | ```console
17 | docker run -t --rm fiware/harvesters:weather-stations-spain \
18 | --orion ${ORION_ENDPOINT} \
19 | --service ${FIWARE_SERVICE}
20 | ```
21 |
22 | ## Optional parameters
23 |
24 | It is possible to limit the amount of parallel requests to the sources and
25 | Orion. See parameters in the [harvester](./spain_weather_stations.py).
26 |
27 | ## API key
28 |
29 | If you do not import the predefined list of stations, please provide an API key
30 | from AEMET. See the help at the header of
31 | [harvester](./spain_weather_stations.py).
32 |
--------------------------------------------------------------------------------
/specs/PointOfInterest/WeatherStation/harvesters/spain/entrypoint.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | ORION_DEFAULT=http://orion:1026
4 | PARAMS=$@
5 | HARVESTER=spain_weather_stations.py
6 |
7 | while [[ "$#" -gt 0 ]]; do
8 | case $1 in
9 | --orion)
10 | ORION="$2"
11 | shift
12 | ;;
13 | esac
14 | shift
15 | done
16 |
17 | if [[ -z ${ORION} ]]; then ORION=${ORION_DEFAULT}; fi
18 |
19 | echo "Trying ${ORION}/version .."
20 |
21 | while [[ ! "$(curl -s ${ORION}/version)" ]]; do
22 | echo "sleeping .."
23 | sleep 5
24 | done
25 |
26 | exec /usr/bin/env python3 -u /opt/${HARVESTER} ${PARAMS}
27 |
--------------------------------------------------------------------------------
/specs/PointOfInterest/WeatherStation/harvesters/spain/requirements.txt:
--------------------------------------------------------------------------------
1 | # python3.7.3
2 | pyyaml>=5.1
3 | aiohttp>=3.5.4
4 | requests>=2.21.0
5 | xlrd>=1.2.0
6 | yajl>=0.3.5
7 | uvloop>=0.12.2
8 |
--------------------------------------------------------------------------------
/specs/PointOfInterest/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "pointofinterest-server",
3 | "version": "0.1.0",
4 | "description": "Simple server to provide harmonized points of interest",
5 | "main": "poi-server.js",
6 | "directories": {
7 | "doc": "doc"
8 | },
9 | "dependencies": {
10 | "body-parser": "^1.17.1",
11 | "express": "^4.15.2",
12 | "fiware-orion-client": "^0.5.9",
13 | "morgan": "^1.8.1"
14 | },
15 | "devDependencies": {},
16 | "scripts": {
17 | "test": "echo \"Error: no test specified\" && exit 1"
18 | },
19 | "author": "Jose M. Cantera",
20 | "license": "MIT"
21 | }
22 |
--------------------------------------------------------------------------------
/specs/README.md:
--------------------------------------------------------------------------------
1 | # FIWARE Data Models Specification
2 |
3 | 
4 |
5 | > This repository is now archived and subsequent works will be carried out the
6 | > in [Smart data models](https://github.com/smart-data-models) repositories.
7 |
8 | This folder contains the specification of FIWARE Data Models for the following
9 | themes:
10 |
11 | - [AgriFood](./AgriFood)
12 | - [Alert](./Alert)
13 | - [Aquaculture](./Aquaculture)
14 | - [Building](./Building)
15 | - [Device](./Device)
16 | - [Energy](./Energy)
17 | - [Environment](./Environment)
18 | - [IssueTracking](./IssueTracking)
19 | - [KeyPerformanceIndicator](./KeyPerformanceIndicator)
20 | - [Parking](./Parking)
21 | - [ParksAndGardens](./ParksAndGardens)
22 | - [PointOfInteraction](./PointOfInteraction)
23 | - [PointOfInterest](./PointOfInterest)
24 | - [StreetLighting](./StreetLighting)
25 | - [Transportation](./Transportation)
26 | - [UrbanMobility](./UrbanMobility)
27 | - [User](./User)
28 | - [WasteManagement](./WasteManagement)
29 | - [Weather](./Weather)
30 |
--------------------------------------------------------------------------------
/specs/StreetLighting/README.md:
--------------------------------------------------------------------------------
1 | # `DEPRECATED` StreetLighting data model
2 |
3 | 
4 |
5 | > This repository is now archived and subsequent works will be carried out the
6 | > in [Smart data models](https://github.com/smart-data-models) repositories. The
7 | > latest version of these Data Models can be found at
8 | > [https://github.com/smart-data-models/dataModel.StreetLighting](https://github.com/smart-data-models/dataModel.StreetLighting)\*\*
9 |
--------------------------------------------------------------------------------
/specs/StreetLighting/Streetlight/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "streetlight:guadalajara:4567",
3 | "type": "Streetlight",
4 | "location": {
5 | "value": {
6 | "type": "Point",
7 | "coordinates": [-3.164485591715449, 40.62785133667262]
8 | },
9 | "type": "geo:json"
10 | },
11 | "areaServed": {
12 | "value": "Roundabouts city entrance"
13 | },
14 | "status": {
15 | "value": "ok"
16 | },
17 | "refStreetlightGroup": {
18 | "value": "streetlightgroup:G345",
19 | "type": "Relationship"
20 | },
21 | "refStreetlightModel": {
22 | "value": "streetlightmodel:STEEL_Tubular_10m",
23 | "type": "Relationship"
24 | },
25 | "circuit": {
26 | "value": "C-456-A467"
27 | },
28 | "lanternHeight": {
29 | "value": 10
30 | },
31 | "locationCategory": {
32 | "value": "centralIsland"
33 | },
34 | "powerState": {
35 | "value": "off"
36 | },
37 | "controllingMethod": {
38 | "value": "individual"
39 | },
40 | "dateLastLampChange": {
41 | "value": "2016-07-08T08:02:21.753Z",
42 | "type": "DateTime"
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/specs/StreetLighting/Streetlight/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "streetlight:guadalajara:4567",
3 | "type": "Streetlight",
4 | "location": {
5 | "type": "Point",
6 | "coordinates": [-3.164485591715449, 40.62785133667262]
7 | },
8 | "areaServed": "Roundabouts city entrance",
9 | "status": "ok",
10 | "refStreetlightGroup": "streetlightgroup:G345",
11 | "refStreetlightModel": "streetlightmodel:STEEL_Tubular_10m",
12 | "circuit": "C-456-A467",
13 | "lanternHeight": 10,
14 | "locationCategory": "centralIsland",
15 | "powerState": "off",
16 | "controllingMethod": "individual",
17 | "dateLastLampChange": "2016-07-08T08:02:21.753Z"
18 | }
19 |
--------------------------------------------------------------------------------
/specs/StreetLighting/StreetlightControlCabinet/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "streetlightcontrolcabinet:A45HGJK",
3 | "type": "StreetlightControlCabinet",
4 | "location": {
5 | "type": "Point",
6 | "coordinates": [-3.164485591715449, 40.62785133667262]
7 | },
8 | "cupboardMadeOf": "plastic",
9 | "brandName": "Siemens",
10 | "modelName": "Simatic S7 1200",
11 | "refStreetlightGroup": ["streetlightgroup:BG678", "streetlightgroup:789"],
12 | "compliantWith": ["IP54"],
13 | "dateLastProgramming": "2016-07-08T16:04:30.201Z",
14 | "maximumPowerAvailable": 10,
15 | "energyConsumed": 162456,
16 | "dateMeteringStarted": "2013-07-07T15:05:59.408Z",
17 | "lastMeterReading": 161237,
18 | "meterReadingPeriod": 60,
19 | "intensity": {
20 | "R": 20.1,
21 | "S": 14.4,
22 | "T": 22
23 | },
24 | "reactivePower": {
25 | "R": 45,
26 | "S": 43.5,
27 | "T": 42
28 | },
29 | "workingMode": "automatic"
30 | }
31 |
--------------------------------------------------------------------------------
/specs/StreetLighting/StreetlightGroup/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "streetlightgroup:mycity:A12",
3 | "type": "StreetlightGroup",
4 | "circuitId": {
5 | "value": "C-456-A467"
6 | },
7 | "powerState": {
8 | "value": "on"
9 | },
10 | "dateLastSwitchingOn": {
11 | "type": "DateTime",
12 | "value": "2016-07-07T19:59:06.618Z"
13 | },
14 | "refStreetlightCabinetController": {
15 | "type": "Relationship",
16 | "value": "cabinetcontroller:CC45A34"
17 | },
18 | "dateLastSwitchingOff": {
19 | "type": "DateTime",
20 | "value": "2016-07-07T07:59:06.618Z"
21 | },
22 | "switchingOnHours": {
23 | "value": [
24 | {
25 | "hours": "Mo,Su 16:00-02:00",
26 | "to": "--01-07",
27 | "from": "--11-30",
28 | "description": "Christmas"
29 | }
30 | ]
31 | },
32 | "location": {
33 | "type": "geo:json",
34 | "value": {
35 | "type": "MultiLineString",
36 | "coordinates": [
37 | [[100.0, 0.0], [101.0, 1.0]],
38 | [[102.0, 2.0], [103.0, 3.0]]
39 | ]
40 | }
41 | },
42 | "areaServed": {
43 | "value": "Calle Comercial Centro"
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/specs/StreetLighting/StreetlightGroup/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "streetlightgroup:mycity:A12",
3 | "type": "StreetlightGroup",
4 | "location": {
5 | "type": "MultiLineString",
6 | "coordinates": [[[100.0, 0.0], [101.0, 1.0]], [[102.0, 2.0], [103.0, 3.0]]]
7 | },
8 | "powerState": "on",
9 | "areaServed": "Calle Comercial Centro",
10 | "circuitId": "C-456-A467",
11 | "dateLastSwitchingOn": "2016-07-07T19:59:06.618Z",
12 | "dateLastSwitchingOff": "2016-07-07T07:59:06.618Z",
13 | "refStreetlightCabinetController": "cabinetcontroller:CC45A34",
14 | "switchingOnHours": [
15 | {
16 | "from": "--11-30",
17 | "to": "--01-07",
18 | "hours": "Mo,Su 16:00-02:00",
19 | "description": "Christmas"
20 | }
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/specs/StreetLighting/StreetlightModel/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "streetlightmodel:TubularNumana:ASR42CG:HPS:100",
3 | "type": "StreetlightModel",
4 | "category": {
5 | "value": ["postTop"]
6 | },
7 | "colorRenderingIndex": {
8 | "value": 25
9 | },
10 | "columnColor": {
11 | "value": "green"
12 | },
13 | "name": {
14 | "value": "Tubular Numana 6M - ASR42CG - Son-T 100"
15 | },
16 | "powerConsumption": {
17 | "value": 100
18 | },
19 | "lanternManufacturerName": {
20 | "value": "Indal WRTL"
21 | },
22 | "luminousFlux": {
23 | "value": 2300
24 | },
25 | "lampTechnology": {
26 | "value": "HPS"
27 | },
28 | "colorTemperature": {
29 | "value": 3000
30 | },
31 | "lanternModelName": {
32 | "value": "ASR42CG"
33 | },
34 | "columnModelName": {
35 | "value": "01 TUBULAR P/T 6M NUMANA"
36 | },
37 | "lampModelName": {
38 | "value": "SON-T"
39 | },
40 | "lampBrandName": {
41 | "value": "Philips"
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/specs/StreetLighting/StreetlightModel/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "streetlightmodel:TubularNumana:ASR42CG:HPS:100",
3 | "type": "StreetlightModel",
4 | "name": "Tubular Numana 6M - ASR42CG - Son-T 100",
5 | "columnModelName": "01 TUBULAR P/T 6M NUMANA",
6 | "columnColor": "green",
7 | "lanternModelName": "ASR42CG",
8 | "lanternManufacturerName": "Indal WRTL",
9 | "lampModelName": "SON-T",
10 | "lampBrandName": "Philips",
11 | "lampTechnology": "HPS",
12 | "powerConsumption": 100,
13 | "colorTemperature": 3000,
14 | "colorRenderingIndex": 25,
15 | "luminousFlux": 2300,
16 | "category": ["postTop"]
17 | }
18 |
--------------------------------------------------------------------------------
/specs/Transportation/Bike/BikeHireDockingStation/example-normalized-ld.jsonld:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:BikeHireDockingStation:Bcn-BikeHireDockingStation-1",
3 | "type": "BikeHireDockingStation",
4 | "status": {
5 | "type": "Property",
6 | "value": "working"
7 | },
8 | "availableBikeNumber": {
9 | "type": "Property",
10 | "value": 20,
11 | "observedAt": "2018-09-25T12:00:00Z"
12 | },
13 | "freeSlotNumber": {
14 | "type": "Property",
15 | "value": 10
16 | },
17 | "location": {
18 | "type": "GeoProperty",
19 | "value": {
20 | "type": "Point",
21 | "coordinates": [
22 | 2.180042,
23 | 41.397952
24 | ]
25 | }
26 | },
27 | "address": {
28 | "type": "Property",
29 | "value": {
30 | "addressCountry": "ES",
31 | "addressLocality": "Barcelona",
32 | "streetAddress": "Gran Via Corts Catalanes,760",
33 | "type": "PostalAddress"
34 | }
35 | },
36 | "@context": [
37 | "https://schema.lab.fiware.org/ld/context",
38 | "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
39 | ]
40 | }
41 |
--------------------------------------------------------------------------------
/specs/Transportation/Bike/BikeHireDockingStation/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "Bcn-BikeHireDockingStation-1",
3 | "type": "BikeHireDockingStation",
4 | "status": {
5 | "value": "working"
6 | },
7 | "availableBikeNumber": {
8 | "value": 20,
9 | "metadata": {
10 | "timestamp": {
11 | "type": "DateTime",
12 | "value": "2018-09-25T12:00:00"
13 | }
14 | }
15 | },
16 | "freeSlotNumber": {
17 | "value": 10
18 | },
19 | "location": {
20 | "type": "geo:json",
21 | "value": {
22 | "type": "Point",
23 | "coordinates": [
24 | 2.180042,
25 | 41.397952
26 | ]
27 | }
28 | },
29 | "address": {
30 | "type": "PostalAddress",
31 | "value": {
32 | "addressCountry": "ES",
33 | "addressLocality": "Barcelona",
34 | "streetAddress": "Gran Via Corts Catalanes,760"
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/specs/Transportation/Bike/BikeHireDockingStation/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "Bcn-BikeHireDockingStation-1",
3 | "type": "BikeHireDockingStation",
4 | "address": {
5 | "addressCountry": "ES",
6 | "addressLocality": "Barcelona",
7 | "streetAddress": "Gran Via Corts Catalanes,760"
8 | },
9 | "availableBikeNumber": 20,
10 | "freeSlotNumber": 10,
11 | "location": {
12 | "type": "Point",
13 | "coordinates": [
14 | 2.180042,
15 | 41.397952
16 | ]
17 | },
18 | "status": "working"
19 | }
20 |
--------------------------------------------------------------------------------
/specs/Transportation/CrowdFlowObserved/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:CrowdFlowObserved:Valladolid_1",
3 | "type": "CrowdFlowObserved",
4 | "dateObserved": {
5 | "value": "2018-08-07T11:10:00/2018-08-07T11:15:00"
6 | },
7 | "direction": {
8 | "value": "inbound"
9 | },
10 | "dateObservedFrom": {
11 | "type": "DateTime",
12 | "value": "2018-08-07T11:10:00Z"
13 | },
14 | "peopleCount": {
15 | "value": 100
16 | },
17 | "averageHeadwayTime": {
18 | "value": 5
19 | },
20 | "dateObservedTo": {
21 | "type": "DateTime",
22 | "value": "2018-08-07T11:15:00Z"
23 | },
24 | "location": {
25 | "type": "geo:json",
26 | "value": {
27 | "type": "LineString",
28 | "coordinates": [
29 | [-4.73735395519672, 41.6538181849672],
30 | [-4.73414858659993, 41.6600594193478],
31 | [-4.73447575302641, 41.659585195093]
32 | ]
33 | }
34 | },
35 | "congested": {
36 | "value": false
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/specs/Transportation/CrowdFlowObserved/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:CrowdFlowObserved:Valladolid_1",
3 | "type": "CrowdFlowObserved",
4 | "dateObserved": "2018-08-07T11:10:00/2018-08-07T11:15:00",
5 | "dateObservedFrom": "2018-08-07T11:10:00Z",
6 | "dateObservedTo": "2018-08-07T11:15:00Z",
7 | "peopleCount": 100,
8 | "averageHeadwayTime": 5,
9 | "congested": false,
10 | "direction": "inbound",
11 | "location": {
12 | "type": "LineString",
13 | "coordinates": [
14 | [-4.73735395519672, 41.6538181849672],
15 | [-4.73414858659993, 41.6600594193478],
16 | [-4.73447575302641, 41.659585195093]
17 | ]
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/specs/Transportation/EVChargingStation/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:EVChargingStation:ValladolI+D_Covaresa",
3 | "type": "EVChargingStation",
4 | "socketType": {
5 | "value": ["Wall_Euro"]
6 | },
7 | "capacity": {
8 | "value": 2
9 | },
10 | "name": {
11 | "value": "Agencia de Innovaci\u00f3n"
12 | },
13 | "allowedVehicleType": {
14 | "value": ["car"]
15 | },
16 | "source": {
17 | "value": "https://openchargemap.org/"
18 | },
19 | "location": {
20 | "type": "geo:json",
21 | "value": {
22 | "type": "Point",
23 | "coordinates": [-4.747901, 41.618265]
24 | }
25 | },
26 | "chargeType": {
27 | "value": ["free"]
28 | },
29 | "address": {
30 | "type": "PostalAddress",
31 | "value": {
32 | "addressLocality": "Valladolid",
33 | "addressCountry": "Espa\u00f1a",
34 | "streetAddress": "Paseo de Zorrilla, 191"
35 | }
36 | },
37 | "operator": {
38 | "value": "Iberdrola"
39 | },
40 | "contactPoint": {
41 | "value": {
42 | "email": "vehiculoelectrico@ava.es"
43 | }
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/specs/Transportation/EVChargingStation/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:EVChargingStation:ValladolI+D_Covaresa",
3 | "type": "EVChargingStation",
4 | "name": "Agencia de Innovación",
5 | "location": {
6 | "coordinates": [-4.747901, 41.618265],
7 | "type": "Point"
8 | },
9 | "capacity": 2,
10 | "socketType": ["Wall_Euro"],
11 | "address": {
12 | "streetAddress": "Paseo de Zorrilla, 191",
13 | "addressLocality": "Valladolid",
14 | "addressCountry": "España"
15 | },
16 | "contactPoint": {
17 | "email": "vehiculoelectrico@ava.es"
18 | },
19 | "operator": "Iberdrola",
20 | "allowedVehicleType": ["car"],
21 | "chargeType": ["free"],
22 | "source": "https://openchargemap.org/"
23 | }
24 |
--------------------------------------------------------------------------------
/specs/Transportation/README.md:
--------------------------------------------------------------------------------
1 | # Transportation data model
2 |
3 | 
4 |
5 | > This repository is now archived and subsequent works will be carried out the
6 | > in [Smart data models](https://github.com/smart-data-models) repositories. The
7 | > latest version of these Data Models can be found at
8 | > [https://github.com/smart-data-models/dataModel.Transportation](https://github.com/smart-data-models/dataModel.Transportation)\*\*
9 |
--------------------------------------------------------------------------------
/specs/Transportation/Road/example-normalized-ld.jsonld:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:Road:Spain-Road-A62",
3 | "type": "Road",
4 | "refRoadSegment": {
5 | "type": "Relationship",
6 | "object": [
7 | "urn:ngsi-ld:RoadSegment:Spain-RoadSegment-A62-0-355-forwards",
8 | "urn:ngsi-ld:RoadSegment:Spain-RoadSegment-A62-0-355-backwards"
9 | ]
10 | },
11 | "roadClass": {
12 | "type": "Property",
13 | "value": "motorway"
14 | },
15 | "description": {
16 | "type": "Property",
17 | "value": "Autovía de Castilla"
18 | },
19 | "responsible": {
20 | "type": "Property",
21 | "value": "Ministerio de Fomento - Gobierno de España"
22 | },
23 | "length": {
24 | "type": "Property",
25 | "value": 355
26 | },
27 | "alternateName": {
28 | "type": "Property",
29 | "value": "E-80"
30 | },
31 | "name": {
32 | "type": "Property",
33 | "value": "A-62"
34 | },
35 | "@context": [
36 | "https://schema.lab.fiware.org/ld/context",
37 | "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
38 | ]
39 | }
40 |
--------------------------------------------------------------------------------
/specs/Transportation/Road/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "Spain-Road-A62",
3 | "type": "Road",
4 | "refRoadSegment": {
5 | "type": "Relationship",
6 | "value": [
7 | "Spain-RoadSegment-A62-0-355-forwards",
8 | "Spain-RoadSegment-A62-0-355-backwards"
9 | ]
10 | },
11 | "roadClass": {
12 | "value": "motorway"
13 | },
14 | "description": {
15 | "value": "Autov\u00eda de Castilla"
16 | },
17 | "responsible": {
18 | "value": "Ministerio de Fomento - Gobierno de Espa\u00f1a"
19 | },
20 | "length": {
21 | "value": 355
22 | },
23 | "alternateName": {
24 | "value": "E-80"
25 | },
26 | "name": {
27 | "value": "A-62"
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/specs/Transportation/Road/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "Spain-Road-A62",
3 | "type": "Road",
4 | "name": "A-62",
5 | "alternateName": "E-80",
6 | "description": "Autovía de Castilla",
7 | "roadClass": "motorway",
8 | "length": 355,
9 | "refRoadSegment": [
10 | "Spain-RoadSegment-A62-0-355-forwards",
11 | "Spain-RoadSegment-A62-0-355-backwards"
12 | ],
13 | "responsible": "Ministerio de Fomento - Gobierno de España"
14 | }
15 |
--------------------------------------------------------------------------------
/specs/Transportation/RoadSegment/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "Spain-RoadSegment-A62-osm-24702186",
3 | "type": "RoadSegment",
4 | "name": "Valladolid-Dueñas",
5 | "category": "oneway",
6 | "refRoad": "Spain-Road-A62",
7 | "totalLaneNumber": 2,
8 | "maximumAllowedSpeed": 120,
9 | "minimumAllowedSpeed": 60,
10 | "startPoint": {
11 | "type": "Point",
12 | "coordinates": [-4.7299180606009, 41.6844918725019]
13 | },
14 | "endPoint": {
15 | "type": "Point",
16 | "coordinates": [-4.55167335377909, 41.8570461783071]
17 | },
18 | "allowedVehicleType": [
19 | "car",
20 | "bus",
21 | "lorry",
22 | "trailer",
23 | "tanker",
24 | "van",
25 | "caravan"
26 | ],
27 | "location": {
28 | "type": "LineString",
29 | "coordinates": [
30 | [-4.7299180606009, 41.6844918725019],
31 | [-4.72855890957602, 41.6860596957855],
32 | [-4.5520357341647, 41.8569278186523],
33 | [-4.55167335377909, 41.8570461783071]
34 | ]
35 | },
36 | "laneUsage": ["forward", "forward"],
37 | "source": "http://wwww.openstreetmap.org"
38 | }
39 |
--------------------------------------------------------------------------------
/specs/Transportation/TrafficFlowObserved/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "TrafficFlowObserved-Valladolid-osm-60821110",
3 | "type": "TrafficFlowObserved",
4 | "laneId": 1,
5 | "address": {
6 | "streetAddress": "Avenida de Salamanca",
7 | "addressLocality": "Valladolid",
8 | "addressCountry": "ES"
9 | },
10 | "location": {
11 | "type": "LineString",
12 | "coordinates": [
13 | [-4.73735395519672, 41.6538181849672],
14 | [-4.73414858659993, 41.6600594193478],
15 | [-4.73447575302641, 41.659585195093]
16 | ]
17 | },
18 | "dateObserved": "2016-12-07T11:10:00/2016-12-07T11:15:00",
19 | "dateObservedFrom": "2016-12-07T11:10:00Z",
20 | "dateObservedTo": "2016-12-07T11:15:00Z",
21 | "averageHeadwayTime": 0.5,
22 | "intensity": 197,
23 | "occupancy": 0.76,
24 | "averageVehicleSpeed": 52.6,
25 | "averageVehicleLength": 9.87,
26 | "reversedLane": false,
27 | "laneDirection": "forward"
28 | }
29 |
--------------------------------------------------------------------------------
/specs/Transportation/Vehicle/Vehicle/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "vehicle:WasteManagement:1",
3 | "type": "Vehicle",
4 | "vehicleType": "lorry",
5 | "category": ["municipalServices"],
6 | "location": {
7 | "type": "Point",
8 | "coordinates": [ -3.164485591715449, 40.62785133667262 ]
9 | },
10 | "name": "C Recogida 1",
11 | "speed": 50,
12 | "cargoWeight": 314,
13 | "serviceStatus": "onRoute",
14 | "serviceProvided": ["garbageCollection", "wasteContainerCleaning"],
15 | "areaServed": "Centro",
16 | "refVehicleModel": "vehiclemodel:econic",
17 | "vehiclePlateIdentifier": "3456ABC"
18 | }
19 |
--------------------------------------------------------------------------------
/specs/Transportation/Vehicle/VehicleModel/example-normalized-ld.jsonld:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:VehicleModel:vehiclemodel:econic",
3 | "type": "VehicleModel",
4 | "name": {
5 | "type": "Property",
6 | "value": "MBenz-Econic2014"
7 | },
8 | "cargoVolume": {
9 | "type": "Property",
10 | "value": 1000
11 | },
12 | "modelName": {
13 | "type": "Property",
14 | "value": "Econic"
15 | },
16 | "brandName": {
17 | "type": "Property",
18 | "value": "Mercedes Benz"
19 | },
20 | "manufacturerName": {
21 | "type": "Property",
22 | "value": "Daimler"
23 | },
24 | "fuelType": {
25 | "type": "Property",
26 | "value": "diesel"
27 | },
28 | "vehicleType": {
29 | "type": "Property",
30 | "value": "lorry"
31 | },
32 | "@context": [
33 | "https://schema.lab.fiware.org/ld/context",
34 | "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
35 | ]
36 | }
37 |
--------------------------------------------------------------------------------
/specs/Transportation/Vehicle/VehicleModel/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "vehiclemodel:econic",
3 | "type": "VehicleModel",
4 | "name": {
5 | "value": "MBenz-Econic2014"
6 | },
7 | "cargoVolume": {
8 | "value": 1000
9 | },
10 | "modelName": {
11 | "value": "Econic"
12 | },
13 | "brandName": {
14 | "value": "Mercedes Benz"
15 | },
16 | "manufacturerName": {
17 | "value": "Daimler"
18 | },
19 | "fuelType": {
20 | "value": "diesel"
21 | },
22 | "vehicleType": {
23 | "value": "lorry"
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/specs/Transportation/Vehicle/VehicleModel/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "vehiclemodel:econic",
3 | "type": "VehicleModel",
4 | "name": "MBenz-Econic2014",
5 | "brandName": "Mercedes Benz",
6 | "modelName": "Econic",
7 | "manufacturerName": "Daimler",
8 | "vehicleType": "lorry",
9 | "cargoVolume": 1000,
10 | "fuelType": "diesel"
11 | }
12 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/ArrivalEstimation/example-normalized-ld.jsonld:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:ArrivalEstimation:L5C1_Stop74_1",
3 | "type": "ArrivalEstimation",
4 | "hasTrip": {
5 | "type": "Relationship",
6 | "object": "urn:ngsi-ld:GtfsTrip:tus:5C1"
7 | },
8 | "headSign": {
9 | "type": "Property",
10 | "value": "Plaza Italia"
11 | },
12 | "remainingTime": {
13 | "type": "Property",
14 | "value": "PT8M5S"
15 | },
16 | "hasStop": {
17 | "type": "Relationship",
18 | "object": "urn:ngsi-ld:GtfsStop:tus:74"
19 | },
20 | "remainingDistance": {
21 | "type": "Property",
22 | "value": 1200
23 | },
24 | "@context": [
25 | "https://schema.lab.fiware.org/ld/context",
26 | "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
27 | ]
28 | }
29 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/ArrivalEstimation/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:ArrivalEstimation:L5C1_Stop74_1",
3 | "type": "ArrivalEstimation",
4 | "hasTrip": {
5 | "type": "Relationship",
6 | "value": "urn:ngsi-ld:GtfsTrip:tus:5C1"
7 | },
8 | "headSign": {
9 | "value": "Plaza Italia"
10 | },
11 | "remainingTime": {
12 | "value": "PT8M5S"
13 | },
14 | "hasStop": {
15 | "type": "Relationship",
16 | "value": "urn:ngsi-ld:GtfsStop:tus:74"
17 | },
18 | "remainingDistance": {
19 | "value": 1200
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/ArrivalEstimation/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:ArrivalEstimation:L5C1_Stop74_1",
3 | "type": "ArrivalEstimation",
4 | "hasStop": "urn:ngsi-ld:GtfsStop:tus:74",
5 | "hasTrip": "urn:ngsi-ld:GtfsTrip:tus:5C1",
6 | "remainingTime": "PT8M5S",
7 | "remainingDistance": 1200,
8 | "headSign": "Plaza Italia"
9 | }
10 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/ArrivalEstimation/schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json-schema.org/schema#",
3 | "$id": "https://fiware.github.io/data-models/UrbanMobility/ArrivalEstimation/schema.json",
4 | "title": "NGSI GTFS Schema",
5 | "description": "Arrival Estimation",
6 | "type": "object",
7 | "allOf": [
8 | {
9 | "$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
10 | },
11 | {
12 | "properties": {
13 | "type": {
14 | "type": "string",
15 | "enum": ["ArrivalEstimation"],
16 | "description": "NGSI Entity type"
17 | },
18 | "hasStop": {
19 | "type": "string",
20 | "format": "uri"
21 | },
22 | "hasTrip": {
23 | "type": "string",
24 | "format": "uri"
25 | },
26 | "remainingTime": {
27 | "type": "string",
28 | "pattern": "^P(?=\\w*\\d)(?:\\d+Y|Y)?(?:\\d+M|M)?(?:\\d+W|W)?(?:\\d+D|D)?(?:T(?:\\d+H|H)?(?:\\d+M|M)?(?:\\d+(?:\\?.\\d{1,2})?S|S)?)?$"
29 | },
30 | "remainingDistance": {
31 | "type": "number",
32 | "minValue": 0
33 | },
34 | "headsign": {
35 | "type": "string"
36 | }
37 | }
38 | }
39 | ],
40 | "required": ["id", "type", "hasStop", "hasTrip", "remainingTime", "headSign"]
41 | }
42 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsAccessPoint/example-normalized-ld.jsonld:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:AccessPoint:Madrid:acc_4_1_3",
3 | "type": "GtfsAccessPoint",
4 | "name": {
5 | "type": "Property",
6 | "value": "Bravo Murillo"
7 | },
8 | "hasParentStation": {
9 | "type": "Relationship",
10 | "object": "urn:ngsi-ld:GtfsStation:Madrid:est_90_21"
11 | },
12 | "location": {
13 | "type": "GeoProperty",
14 | "value": {
15 | "type": "Point",
16 | "coordinates": [
17 | -3.69036,
18 | 40.46629
19 | ]
20 | }
21 | },
22 | "address": {
23 | "type": "Property",
24 | "value": {
25 | "addressLocality": "Madrid",
26 | "addressCountry": "ES",
27 | "streetAddress": "Calle de Bravo Murillo 377",
28 | "type": "PostalAddress"
29 | }
30 | },
31 | "@context": [
32 | "https://schema.lab.fiware.org/ld/context",
33 | "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
34 | ]
35 | }
36 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsAccessPoint/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:AccessPoint:Madrid:acc_4_1_3",
3 | "type": "GtfsAccessPoint",
4 | "name": {
5 | "value": "Bravo Murillo"
6 | },
7 | "hasParentStation": {
8 | "type": "Relationship",
9 | "value": "urn:ngsi-ld:GtfsStation:Madrid:est_90_21"
10 | },
11 | "location": {
12 | "type": "geo:json",
13 | "value": {
14 | "type": "Point",
15 | "coordinates": [-3.69036, 40.46629]
16 | }
17 | },
18 | "address": {
19 | "type": "PostalAddress",
20 | "value": {
21 | "addressLocality": "Madrid",
22 | "addressCountry": "ES",
23 | "streetAddress": "Calle de Bravo Murillo 377",
24 | "type": "PostalAddress"
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsAccessPoint/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:AccessPoint:Madrid:acc_4_1_3",
3 | "type": "GtfsAccessPoint",
4 | "name": "Bravo Murillo",
5 | "location": {
6 | "type": "Point",
7 | "coordinates": [-3.69036, 40.46629]
8 | },
9 | "address": {
10 | "type": "PostalAddress",
11 | "streetAddress": "Calle de Bravo Murillo 377",
12 | "addressLocality": "Madrid",
13 | "addressCountry": "ES"
14 | },
15 | "hasParentStation": "urn:ngsi-ld:Gtfstation:Madrid:est_90_21"
16 | }
17 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsAccessPoint/schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json-schema.org/schema#",
3 | "$id": "https://fiware.github.io/data-models/specs/UrbanMobility/GtfsAccessPoint/schema.json",
4 | "title": "NGSI GTFS Schema",
5 | "description": "GTFS Access Point",
6 | "type": "object",
7 | "allOf": [
8 | {
9 | "$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
10 | },
11 | {
12 | "$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/Location-Commons"
13 | },
14 | {
15 | "$ref": "https://fiware.github.io/data-models/specs/UrbanMobility/gtfs-schema.json#/definitions/GTFS-Stop-Commons"
16 | },
17 | {
18 | "properties": {
19 | "type": {
20 | "type": "string",
21 | "enum": ["GtfsAccessPoint"],
22 | "description": "NGSI Entity type"
23 | }
24 | }
25 | }
26 | ],
27 | "required": ["id", "type", "name", "location"]
28 | }
29 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsAgency/example-normalized-ld.jsonld:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:GtfsAgency:Malaga_EMT",
3 | "type": "GtfsAgency",
4 | "name": {
5 | "type": "Property",
6 | "value": "Empresa Malagueña de Transportes"
7 | },
8 | "language": {
9 | "type": "Property",
10 | "value": "ES"
11 | },
12 | "page": {
13 | "type": "Property",
14 | "value": "http://www.emtmalaga.es/"
15 | },
16 | "source": {
17 | "type": "Property",
18 | "value": "http://datosabiertos.malaga.eu/dataset/lineas-y-horarios-bus-google-transit/resource/24e86888-b91e-45bf-a48c-09855832fd52"
19 | },
20 | "timezone": {
21 | "type": "Property",
22 | "value": "Europe/Madrid"
23 | },
24 | "@context": [
25 | "https://schema.lab.fiware.org/ld/context",
26 | "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
27 | ]
28 | }
29 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsAgency/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:GtfsAgency:Malaga_EMT",
3 | "type": "GtfsAgency",
4 | "name": {
5 | "value": "Empresa Malague\u00f1a de Transportes"
6 | },
7 | "language": {
8 | "value": "ES"
9 | },
10 | "page": {
11 | "value": "http://www.emtmalaga.es/"
12 | },
13 | "source": {
14 | "value": "http://datosabiertos.malaga.eu/dataset/lineas-y-horarios-bus-google-transit/resource/24e86888-b91e-45bf-a48c-09855832fd52"
15 | },
16 | "timezone": {
17 | "value": "Europe/Madrid"
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsAgency/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:GtfsAgency:Malaga_EMT",
3 | "type": "GtfsAgency",
4 | "name": "Empresa Malagueña de Transportes",
5 | "page": "http://www.emtmalaga.es/",
6 | "timezone": "Europe/Madrid",
7 | "language": "ES",
8 | "source": "http://datosabiertos.malaga.eu/dataset/lineas-y-horarios-bus-google-transit/resource/24e86888-b91e-45bf-a48c-09855832fd52"
9 | }
10 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsAgency/schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json-schema.org/schema#",
3 | "$id": "https://fiware.github.io/data-models/specs/UrbanMobility/GtfsAgency/schema.json",
4 | "title": "NGSI GTFS Schema - Agency",
5 | "description": "GTFS Agency",
6 | "type": "object",
7 | "allOf": [
8 | {
9 | "$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
10 | },
11 | {
12 | "properties": {
13 | "type": {
14 | "type": "string",
15 | "enum": ["GtfsAgency"],
16 | "description": "NGSI Entity type"
17 | },
18 | "source": {
19 | "type": "string",
20 | "format": "uri"
21 | },
22 | "name": {
23 | "type": "string"
24 | },
25 | "page": {
26 | "type": "string"
27 | },
28 | "phone": {
29 | "type": "string"
30 | },
31 | "timezone": {
32 | "type": "string"
33 | },
34 | "language": {
35 | "type": "string"
36 | },
37 | "address": {
38 | "type": "object"
39 | }
40 | }
41 | }
42 | ],
43 | "required": ["id", "type", "name", "source"]
44 | }
45 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsCalendarDateRule/example-normalized-ld.jsonld:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:CalendarDateRule:Malaga:Rule67",
3 | "type": "GtfsCalendarDateRule",
4 | "name": {
5 | "type": "Property",
6 | "value": "Rule Fair Area"
7 | },
8 | "exceptionType": {
9 | "type": "Property",
10 | "value": "1"
11 | },
12 | "hasService": {
13 | "type": "Relationship",
14 | "object": "urn:ngsi-ld:GtfsService:Malaga:FairArea_1"
15 | },
16 | "appliesOn": {
17 | "type": "Property",
18 | "value": "2018-03-19"
19 | },
20 | "@context": [
21 | "https://schema.lab.fiware.org/ld/context",
22 | "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
23 | ]
24 | }
25 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsCalendarDateRule/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:CalendarDateRule:Malaga:Rule67",
3 | "type": "GtfsCalendarDateRule",
4 | "name": {
5 | "value": "Rule Fair Area"
6 | },
7 | "exceptionType": {
8 | "value": "1"
9 | },
10 | "hasService": {
11 | "type": "Relationship",
12 | "value": "urn:ngsi-ld:GtfsService:Malaga:FairArea_1"
13 | },
14 | "appliesOn": {
15 | "value": "2018-03-19"
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsCalendarDateRule/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:CalendarDateRule:Malaga:Rule67",
3 | "type": "GtfsCalendarDateRule",
4 | "name": "Rule Fair Area",
5 | "hasService": "urn:ngsi-ld:Gtfservice:Malaga:FairArea_1",
6 | "appliesOn": "2018-03-19",
7 | "exceptionType": "1"
8 | }
9 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsCalendarDateRule/schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json-schema.org/schema#",
3 | "$id": "https://fiware.github.io/data-models/specs/UrbanMobility/GtfsCalendarDateRule/schema.json",
4 | "title": "NGSI GTFS Schema",
5 | "description": "GTFS Calendar Date Rule",
6 | "type": "object",
7 | "allOf": [
8 | {
9 | "$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
10 | },
11 | {
12 | "properties": {
13 | "type": {
14 | "type": "string",
15 | "enum": ["GtfsCalendarDateRule"],
16 | "description": "NGSI Entity type"
17 | },
18 | "appliesOn": {
19 | "type": "string",
20 | "format": "date"
21 | },
22 | "exceptionType": {
23 | "type": "string",
24 | "enum": ["1", "2"]
25 | },
26 | "hasService": {
27 | "type": "string",
28 | "format": "uri"
29 | }
30 | }
31 | }
32 | ],
33 | "required": ["id", "type", "hasService", "appliesOn", "exceptionType"]
34 | }
35 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsCalendarRule/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:CalendarRule:Madrid:Rule1267",
3 | "type": "GtfsCalendarRule",
4 | "startDate": {
5 | "type": "Date",
6 | "value": "2018-01-01"
7 | },
8 | "endDate": {
9 | "type": "Date",
10 | "value": "2019-01-01"
11 | },
12 | "name": {
13 | "value": "Rule Hospital Service 1"
14 | },
15 | "monday": {
16 | "value": true
17 | },
18 | "tuesday": {
19 | "value": true
20 | },
21 | "friday": {
22 | "value": true
23 | },
24 | "wednesday": {
25 | "value": true
26 | },
27 | "thursday": {
28 | "value": true
29 | },
30 | "sunday": {
31 | "value": false
32 | },
33 | "hasService": {
34 | "type": "Relationship",
35 | "value": "urn:ngsi-ld:GtfsService:Madrid:Hospital_1"
36 | },
37 | "saturday": {
38 | "value": false
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsCalendarRule/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:CalendarRule:Madrid:Rule1267",
3 | "type": "GtfsCalendarRule",
4 | "name": "Rule Hospital Service 1",
5 | "hasService": "urn:ngsi-ld:GtfsService:Madrid:Hospital_1",
6 | "monday": true,
7 | "tuesday": true,
8 | "wednesday": true,
9 | "thursday": true,
10 | "friday": true,
11 | "saturday": false,
12 | "sunday": false,
13 | "startDate": "2018-01-01",
14 | "endDate": "2019-01-01"
15 | }
16 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsFrequency/example-normalized-ld.jsonld:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:GtfsFrequency:Malaga:Linea1",
3 | "type": "GtfsFrequency",
4 | "description": {
5 | "type": "Property",
6 | "value": "Cada 10 minutos"
7 | },
8 | "hasTrip": {
9 | "type": "Relationship",
10 | "object": "urn:ngsi-ld:GtfsTrip:Spain:Malaga:1"
11 | },
12 | "headwaySeconds": {
13 | "type": "Property",
14 | "value": 600
15 | },
16 | "startTime": {
17 | "type": "Property",
18 | "value": "07:00:00"
19 | },
20 | "endTime": {
21 | "type": "Property",
22 | "value": "10:25:00"
23 | },
24 | "name": {
25 | "type": "Property",
26 | "value": "Laborables"
27 | },
28 | "@context": [
29 | "https://schema.lab.fiware.org/ld/context",
30 | "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
31 | ]
32 | }
33 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsFrequency/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:GtfsFrequency:Malaga:Linea1",
3 | "type": "GtfsFrequency",
4 | "description": {
5 | "value": "Cada 10 minutos"
6 | },
7 | "hasTrip": {
8 | "type": "Relationship",
9 | "value": "urn:ngsi-ld:GtfsTrip:Spain:Malaga:1"
10 | },
11 | "headwaySeconds": {
12 | "value": 600
13 | },
14 | "startTime": {
15 | "value": "07:00:00"
16 | },
17 | "endTime": {
18 | "value": "10:25:00"
19 | },
20 | "name": {
21 | "value": "Laborables"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsFrequency/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:GtfsFrequency:Malaga:Linea1",
3 | "type": "GtfsFrequency",
4 | "name": "Laborables",
5 | "description": "Cada 10 minutos",
6 | "hasTrip": "urn:ngsi-ld:GtfsTrip:Spain:Malaga:1",
7 | "startTime": "07:00:00",
8 | "endTime": "10:25:00",
9 | "headwaySeconds": 600
10 | }
11 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsRoute/example-normalized-ld.jsonld:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:GtfsRoute:Spain:Malaga:1",
3 | "type": "GtfsRoute",
4 | "name": {
5 | "type": "Property",
6 | "value": "Parque del Sur _ Alameda Principal _ San Andrés"
7 | },
8 | "shortName": {
9 | "type": "Property",
10 | "value": "1"
11 | },
12 | "page": {
13 | "type": "Property",
14 | "value": "http://www.emtmalaga.es/emt-mobile/informacionLinea.html"
15 | },
16 | "routeType": {
17 | "type": "Property",
18 | "value": "3"
19 | },
20 | "operatedBy": {
21 | "type": "Relationship",
22 | "object": "urn:ngsi-ld:GtfsAgency:Malaga_EMT"
23 | },
24 | "@context": [
25 | "https://schema.lab.fiware.org/ld/context",
26 | "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
27 | ]
28 | }
29 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsRoute/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:GtfsRoute:Spain:Malaga:1",
3 | "type": "GtfsRoute",
4 | "name": {
5 | "value": "Parque del Sur _ Alameda Principal _ San Andr\u00e9s"
6 | },
7 | "shortName": {
8 | "value": "1"
9 | },
10 | "page": {
11 | "value": "http://www.emtmalaga.es/emt-mobile/informacionLinea.html"
12 | },
13 | "routeType": {
14 | "value": "3"
15 | },
16 | "operatedBy": {
17 | "type": "Relationship",
18 | "value": "urn:ngsi-ld:GtfsAgency:Malaga_EMT"
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsRoute/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:GtfsRoute:Spain:Malaga:1",
3 | "type": "GtfsRoute",
4 | "shortName": "1",
5 | "name": "Parque del Sur _ Alameda Principal _ San Andrés",
6 | "page": "http://www.emtmalaga.es/emt-mobile/informacionLinea.html",
7 | "routeType": "3",
8 | "operatedBy": "urn:ngsi-ld:GtfsAgency:Malaga_EMT"
9 | }
10 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsService/example-normalized-ld.jsonld:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:Service:Malaga:LAB",
3 | "type": "GtfsService",
4 | "operatedBy": {
5 | "type": "Relationship",
6 | "object": "urn:ngsi-ld:GtfsAgency:Malaga_EMT"
7 | },
8 | "name": {
9 | "type": "Property",
10 | "value": "LAB"
11 | },
12 | "description": {
13 | "type": "Property",
14 | "value": "Laborables"
15 | },
16 | "@context": [
17 | "https://schema.lab.fiware.org/ld/context",
18 | "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsService/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:Service:Malaga:LAB",
3 | "type": "GtfsService",
4 | "operatedBy": {
5 | "type": "Relationship",
6 | "value": "urn:ngsi-ld:GtfsAgency:Malaga_EMT"
7 | },
8 | "name": {
9 | "value": "LAB"
10 | },
11 | "description": {
12 | "value": "Laborables"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsService/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:Service:Malaga:LAB",
3 | "type": "GtfsService",
4 | "name": "LAB",
5 | "description": "Laborables",
6 | "operatedBy": "urn:ngsi-ld:GtfsAgency:Malaga_EMT"
7 | }
8 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsService/schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json-schema.org/schema#",
3 | "$id": "https://fiware.github.io/data-models/specs/UrbanMobility/GtfsService/schema.json",
4 | "title": "NGSI GTFS Schema",
5 | "description": "GTFS Service",
6 | "type": "object",
7 | "allOf": [
8 | {
9 | "$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
10 | },
11 | {
12 | "properties": {
13 | "type": {
14 | "type": "string",
15 | "enum": ["GtfsService"],
16 | "description": "NGSI Entity type"
17 | },
18 | "operatedBy": {
19 | "type": "string",
20 | "format": "uri"
21 | }
22 | }
23 | }
24 | ],
25 | "required": ["id", "type", "name", "operatedBy"]
26 | }
27 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsShape/example-normalized-ld.jsonld:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:GtfsShape:101",
3 | "type": "GtfsShape",
4 | "location": {
5 | "type": "GeoProperty",
6 | "value": {
7 | "type": "LineString",
8 | "coordinates": [
9 | [
10 | -4.421394,
11 | 36.73826
12 | ],
13 | [
14 | -4.421428,
15 | 36.73825
16 | ],
17 | [
18 | -4.421505,
19 | 36.738186
20 | ],
21 | [
22 | -4.421525,
23 | 36.738033
24 | ]
25 | ]
26 | }
27 | },
28 | "@context": [
29 | "https://schema.lab.fiware.org/ld/context",
30 | "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
31 | ]
32 | }
33 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsShape/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:GtfsShape:101",
3 | "type": "GtfsShape",
4 | "location": {
5 | "type": "geo:json",
6 | "value": {
7 | "type": "LineString",
8 | "coordinates": [
9 | [-4.421394, 36.73826],
10 | [-4.421428, 36.73825],
11 | [-4.421505, 36.738186],
12 | [-4.421525, 36.738033]
13 | ]
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsShape/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:GtfsShape:101",
3 | "type": "GtfsShape",
4 | "location": {
5 | "type": "LineString",
6 | "coordinates": [
7 | [-4.421394, 36.73826],
8 | [-4.421428, 36.73825],
9 | [-4.421505, 36.738186],
10 | [-4.421525, 36.738033]
11 | ]
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsShape/schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json-schema.org/schema#",
3 | "$id": "https://fiware.github.io/data-models/specs/UrbanMobility/GtfsShape/schema.json",
4 | "title": "NGSI GTFS Schema",
5 | "description": "GTFS Shape",
6 | "type": "object",
7 | "allOf": [
8 | {
9 | "$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
10 | },
11 | {
12 | "properties": {
13 | "type": {
14 | "type": "string",
15 | "enum": ["GtfsShape"],
16 | "description": "NGSI Entity type"
17 | },
18 | "distanceTravelled": {
19 | "type": "array",
20 | "items": {
21 | "type": "number",
22 | "minimum": 0
23 | },
24 | "minItems": 1
25 | },
26 | "location": {
27 | "oneOf": [
28 | {
29 | "$ref": "http://geojson.org/schema/Geometry.json#LineString"
30 | },
31 | {
32 | "$ref": "http://geojson.org/schema/Geometry.json#MultiLineString"
33 | }
34 | ]
35 | }
36 | }
37 | }
38 | ],
39 | "required": ["id", "type", "location"]
40 | }
41 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsStation/example-normalized-ld.jsonld:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:GtfsStation:Madrid:est_90_21",
3 | "type": "GtfsStation",
4 | "code": {
5 | "type": "Property",
6 | "value": "21"
7 | },
8 | "name": {
9 | "type": "Property",
10 | "value": "Intercambiador de Plaza de Castilla"
11 | },
12 | "hasStop": {
13 | "type": "Relationship",
14 | "object": [
15 | "urn:ngsi-ld:GtfsStop:Madrid_par_4_1"
16 | ]
17 | },
18 | "location": {
19 | "type": "GeoProperty",
20 | "value": {
21 | "type": "Point",
22 | "coordinates": [
23 | -3.6892,
24 | 40.4669
25 | ]
26 | }
27 | },
28 | "address": {
29 | "type": "Property",
30 | "value": {
31 | "addressLocality": "Madrid",
32 | "addressCountry": "ES",
33 | "streetAddress": "Paseo de la Castellana 189",
34 | "type": "PostalAddress"
35 | }
36 | },
37 | "@context": [
38 | "https://schema.lab.fiware.org/ld/context",
39 | "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
40 | ]
41 | }
42 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsStation/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:GtfsStation:Madrid:est_90_21",
3 | "type": "GtfsStation",
4 | "code": {
5 | "value": "21"
6 | },
7 | "name": {
8 | "value": "Intercambiador de Plaza de Castilla"
9 | },
10 | "hasStop": {
11 | "type": "Relationship",
12 | "value": ["urn:ngsi-ld:GtfsStop:Madrid_par_4_1"]
13 | },
14 | "location": {
15 | "type": "geo:json",
16 | "value": {
17 | "type": "Point",
18 | "coordinates": [-3.6892, 40.4669]
19 | }
20 | },
21 | "address": {
22 | "type": "PostalAddress",
23 | "value": {
24 | "addressLocality": "Madrid",
25 | "addressCountry": "ES",
26 | "streetAddress": "Paseo de la Castellana 189"
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsStation/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:GtfsStation:Madrid:est_90_21",
3 | "type": "GtfsStation",
4 | "code": "21",
5 | "name": "Intercambiador de Plaza de Castilla",
6 | "location": {
7 | "type": "Point",
8 | "coordinates": [-3.6892, 40.4669]
9 | },
10 | "address": {
11 | "streetAddress": "Paseo de la Castellana 189",
12 | "addressLocality": "Madrid",
13 | "addressCountry": "ES"
14 | },
15 | "hasStop": ["urn:ngsi-ld:GtfsStop:Madrid_par_4_1"]
16 | }
17 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsStation/schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json-schema.org/schema#",
3 | "$id": "https://fiware.github.io/data-models/specs/UrbanMobility/GtfsStation/schema.json",
4 | "title": "NGSI GTFS Schema - Station",
5 | "description": "GTFS Station",
6 | "type": "object",
7 | "allOf": [
8 | {
9 | "$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
10 | },
11 | {
12 | "$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/Location-Commons"
13 | },
14 | {
15 | "$ref": "https://fiware.github.io/data-models/specs/UrbanMobility/gtfs-schema.json#/definitions/GTFS-Stop-Commons"
16 | },
17 | {
18 | "properties": {
19 | "type": {
20 | "type": "string",
21 | "enum": ["GtfsStation"],
22 | "description": "NGSI Entity type"
23 | },
24 | "hasStop": {
25 | "type": "array",
26 | "items": {
27 | "type": "string",
28 | "format": "uri"
29 | }
30 | },
31 | "hasAccessPoint": {
32 | "type": "array",
33 | "items": {
34 | "type": "string",
35 | "format": "uri"
36 | }
37 | }
38 | }
39 | }
40 | ],
41 | "required": ["id", "type", "name", "location", "hasStop"]
42 | }
43 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsStop/example-normalized-ld.jsonld:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:GtfsStop:Malaga_101",
3 | "type": "GtfsStop",
4 | "code": {
5 | "type": "Property",
6 | "value": "101"
7 | },
8 | "operatedBy": {
9 | "type": "Relationship",
10 | "object": "urn:ngsi-ld:GtfsAgency:Malaga_EMT"
11 | },
12 | "location": {
13 | "type": "GeoProperty",
14 | "value": {
15 | "type": "Point",
16 | "coordinates": [
17 | -4.424393,
18 | 36.716872
19 | ]
20 | }
21 | },
22 | "name": {
23 | "type": "Property",
24 | "value": "Alameda Principal Sur"
25 | },
26 | "@context": [
27 | "https://schema.lab.fiware.org/ld/context",
28 | "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
29 | ]
30 | }
31 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsStop/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:GtfsStop:Malaga_101",
3 | "type": "GtfsStop",
4 | "code": {
5 | "value": "101"
6 | },
7 | "operatedBy": {
8 | "type": "Relationship",
9 | "value": "urn:ngsi-ld:GtfsAgency:Malaga_EMT"
10 | },
11 | "location": {
12 | "type": "geo:json",
13 | "value": {
14 | "type": "Point",
15 | "coordinates": [-4.424393, 36.716872]
16 | }
17 | },
18 | "name": {
19 | "value": "Alameda Principal Sur"
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsStop/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:GtfsStop:Malaga_101",
3 | "type": "GtfsStop",
4 | "code": "101",
5 | "name": "Alameda Principal Sur",
6 | "location": {
7 | "type": "Point",
8 | "coordinates": [-4.424393, 36.716872]
9 | },
10 | "operatedBy": ["urn:ngsi-ld:GtfsAgency:Malaga_EMT"]
11 | }
12 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsStop/schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json-schema.org/schema#",
3 | "$id": "https://fiware.github.io/data-models/specs/UrbanMobility/GtfsStop/schema.json",
4 | "title": "NGSI GTFS Schema",
5 | "description": "GTFS Stop",
6 | "type": "object",
7 | "allOf": [
8 | {
9 | "$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
10 | },
11 | {
12 | "$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/Location-Commons"
13 | },
14 | {
15 | "$ref": "https://fiware.github.io/data-models/specs/UrbanMobility/gtfs-schema.json#/definitions/GTFS-Stop-Commons"
16 | },
17 | {
18 | "properties": {
19 | "type": {
20 | "type": "string",
21 | "enum": ["GtfsStop"],
22 | "description": "NGSI Entity type"
23 | },
24 | "operatedBy": {
25 | "type": "array",
26 | "items": {
27 | "$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType"
28 | },
29 | "minItems": 0,
30 | "uniqueItems": true
31 | }
32 | }
33 | }
34 | ],
35 | "required": ["id", "type", "name", "location"]
36 | }
37 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsStopTime/example-normalized-ld.jsonld:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:GtfsStopTime:Spain:Madrid:EMT:FE0010011_737",
3 | "type": "GtfsStopTime",
4 | "departureTime": {
5 | "type": "Property",
6 | "value": "07:04:24"
7 | },
8 | "hasTrip": {
9 | "type": "Relationship",
10 | "object": "urn:ngsi-ld:GtfsTrip:Madrid:EMT:FE0010011"
11 | },
12 | "stopSequence": {
13 | "type": "Property",
14 | "value": 4
15 | },
16 | "distanceTravelled": {
17 | "type": "Property",
18 | "value": 759
19 | },
20 | "arrivalTime": {
21 | "type": "Property",
22 | "value": "07:04:24"
23 | },
24 | "hasStop": {
25 | "type": "Relationship",
26 | "object": "urn:ngsi-ld:GtfsStop:Madrid:EMT:737"
27 | },
28 | "@context": [
29 | "https://schema.lab.fiware.org/ld/context",
30 | "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
31 | ]
32 | }
33 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsStopTime/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:GtfsStopTime:Spain:Madrid:EMT:FE0010011_737",
3 | "type": "GtfsStopTime",
4 | "departureTime": {
5 | "value": "07:04:24"
6 | },
7 | "hasTrip": {
8 | "type": "Relationship",
9 | "value": "urn:ngsi-ld:GtfsTrip:Madrid:EMT:FE0010011"
10 | },
11 | "stopSequence": {
12 | "value": 4
13 | },
14 | "distanceTravelled": {
15 | "value": 759
16 | },
17 | "arrivalTime": {
18 | "value": "07:04:24"
19 | },
20 | "hasStop": {
21 | "type": "Relationship",
22 | "value": "urn:ngsi-ld:GtfsStop:Madrid:EMT:737"
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsStopTime/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:GtfsStopTime:Spain:Madrid:EMT:FE0010011_737",
3 | "type": "GtfsStopTime",
4 | "hasStop": "urn:ngsi-ld:GtfsStop:Madrid:EMT:737",
5 | "hasTrip": "urn:ngsi-ld:GtfsTrip:Madrid:EMT:FE0010011",
6 | "distanceTravelled": 759,
7 | "stopSequence": 4,
8 | "arrivalTime": "07:04:24",
9 | "departureTime": "07:04:24"
10 | }
11 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsTransferRule/example-normalized-ld.jsonld:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:GtfsTransferRule:Malaga:Linea1_Linea5",
3 | "type": "GtfsTransferRule",
4 | "transferType": {
5 | "type": "Property",
6 | "value": "0"
7 | },
8 | "minimumTransferTime": {
9 | "type": "Property",
10 | "value": 10
11 | },
12 | "hasDestination": {
13 | "type": "Relationship",
14 | "object": "urn:ngsi-ld:GtfsStop:Malaga_508"
15 | },
16 | "hasOrigin": {
17 | "type": "Relationship",
18 | "object": "urn:ngsi-ld:GtfsStop:Malaga_101"
19 | },
20 | "name": {
21 | "type": "Property",
22 | "value": "L1_L5"
23 | },
24 | "@context": [
25 | "https://schema.lab.fiware.org/ld/context",
26 | "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
27 | ]
28 | }
29 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsTransferRule/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:GtfsTransferRule:Malaga:Linea1_Linea5",
3 | "type": "GtfsTransferRule",
4 | "transferType": {
5 | "value": "0"
6 | },
7 | "minimumTransferTime": {
8 | "value": 10
9 | },
10 | "hasDestination": {
11 | "type": "Relationship",
12 | "value": "urn:ngsi-ld:GtfsStop:Malaga_508"
13 | },
14 | "hasOrigin": {
15 | "type": "Relationship",
16 | "value": "urn:ngsi-ld:GtfsStop:Malaga_101"
17 | },
18 | "name": {
19 | "value": "L1_L5"
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsTransferRule/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:GtfsTransferRule:Malaga:Linea1_Linea5",
3 | "type": "GtfsTransferRule",
4 | "name": "L1_L5",
5 | "hasOrigin": "urn:ngsi-ld:GtfsStop:Malaga_101",
6 | "hasDestination": "urn:ngsi-ld:GtfsStop:Malaga_508",
7 | "transferType": "0",
8 | "minimumTransferTime": 10
9 | }
10 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsTransferRule/schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json-schema.org/schema#",
3 | "$id": "https://fiware.github.io/data-models/specs/UrbanMobility/GtfsTransferRule/schema.json",
4 | "title": "NGSI GTFS Schema - TransferRule",
5 | "description": "GTFS Transfer Rule",
6 | "type": "object",
7 | "allOf": [
8 | {
9 | "$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
10 | },
11 | {
12 | "properties": {
13 | "type": {
14 | "type": "string",
15 | "enum": ["GtfsTransferRule"],
16 | "description": "NGSI Entity type"
17 | },
18 | "name": {
19 | "type": "string"
20 | },
21 | "description": {
22 | "type": "string"
23 | },
24 | "hasOrigin": {
25 | "type": "string",
26 | "format": "uri"
27 | },
28 | "hasDestination": {
29 | "type": "string",
30 | "format": "uri"
31 | },
32 | "transferType": {
33 | "type": "string",
34 | "enum": ["0", "1", "2", "3"]
35 | },
36 | "minimumTransferTime": {
37 | "type": "integer",
38 | "minValue": 1
39 | }
40 | }
41 | }
42 | ],
43 | "required": ["id", "type", "hasOrigin", "hasDestination", "transferType"]
44 | }
45 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsTrip/example-normalized-ld.jsonld:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:GtfsTrip:Spain:Malaga:1",
3 | "type": "GtfsTrip",
4 | "direction": {
5 | "type": "Property",
6 | "value": 0
7 | },
8 | "headSign": {
9 | "type": "Property",
10 | "value": "San Andrés"
11 | },
12 | "hasRoute": {
13 | "type": "Relationship",
14 | "object": "urn:ngsi-ld:GtfsRoute:Spain:Malaga:1"
15 | },
16 | "hasService": {
17 | "type": "Relationship",
18 | "object": "urn:ngsi-ld:GtfsService:Malaga_LAB"
19 | },
20 | "hasShape": {
21 | "type": "Relationship",
22 | "object": "urn:ngsi-ld:GtfsShape:Shape01"
23 | },
24 | "@context": [
25 | "https://schema.lab.fiware.org/ld/context",
26 | "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
27 | ]
28 | }
29 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsTrip/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:GtfsTrip:Spain:Malaga:1",
3 | "type": "GtfsTrip",
4 | "direction": {
5 | "value": 0
6 | },
7 | "headSign": {
8 | "value": "San Andr\u00e9s"
9 | },
10 | "hasRoute": {
11 | "type": "Relationship",
12 | "value": "urn:ngsi-ld:GtfsRoute:Spain:Malaga:1"
13 | },
14 | "hasService": {
15 | "type": "Relationship",
16 | "value": "urn:ngsi-ld:GtfsService:Malaga_LAB"
17 | },
18 | "hasShape": {
19 | "type": "Relationship",
20 | "value": "urn:ngsi-ld:GtfsShape:Shape01"
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsTrip/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:GtfsTrip:Spain:Malaga:1",
3 | "type": "GtfsTrip",
4 | "hasService": "urn:ngsi-ld:GtfsService:Malaga_LAB",
5 | "headSign": "San Andrés",
6 | "direction": 0,
7 | "hasRoute": "urn:ngsi-ld:GtfsRoute:Spain:Malaga:1",
8 | "hasShape": "urn:ngsi-ld:GtfsShape:Shape01"
9 | }
10 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/GtfsTrip/schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json-schema.org/schema#",
3 | "$id": "https://fiware.github.io/data-models/specs/UrbanMobility/GtfsTrip/schema.json",
4 | "title": "NGSI GTFS Schema - Trip",
5 | "description": "GTFS Trip",
6 | "type": "object",
7 | "allOf": [
8 | {
9 | "$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
10 | },
11 | {
12 | "properties": {
13 | "type": {
14 | "type": "string",
15 | "enum": ["GtfsTrip"],
16 | "description": "NGSI Entity type"
17 | },
18 | "shortName": {
19 | "type": "string"
20 | },
21 | "headSign": {
22 | "type": "string"
23 | },
24 | "hasRoute": {
25 | "type": "string",
26 | "format": "uri"
27 | },
28 | "hasShape": {
29 | "type": "string",
30 | "format": "uri"
31 | },
32 | "block": {
33 | "type": "string"
34 | },
35 | "hasService": {
36 | "type": "string",
37 | "format": "uri"
38 | },
39 | "direction": {
40 | "type": "number",
41 | "enum": [0, 1]
42 | }
43 | }
44 | }
45 | ],
46 | "required": ["id", "type", "hasRoute", "hasService"]
47 | }
48 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/README.md:
--------------------------------------------------------------------------------
1 | # Urban Mobility Data Models
2 |
3 | 
4 |
5 | > This repository is now archived and subsequent works will be carried out the
6 | > in [Smart data models](https://github.com/smart-data-models) repositories.
7 |
8 | ## Introduction
9 |
10 | The General Transit Feed Specification (GTFS), also known as GTFS static or
11 | static transit, defines a common format for public transportation schedules and
12 | associated geographic information. GTFS "feeds" let public transit agencies
13 | publish their transit data and developers write applications that consume that
14 | data in an interoperable way.
15 |
16 | These data models are intended to map GTFS feeds into FIWARE NGSI content. Main
17 | entities are:
18 |
19 | - [GtfsAgency](./GtfsAgency/doc/spec.md)
20 | - [GtfsStop](./GtfsStop/doc/spec.md)
21 | - [GtfsStation](./GtfsStation/doc/spec.md)
22 | - [GtfsAccessPoint](./GtfsAccessPoint/doc/spec.md)
23 | - [GtfsRoute](./GtfsRoute/doc/spec.md)
24 | - [GtfsTrip](./GtfsTrip/doc/spec.md)
25 | - [GtfsStopTime](./GtfsStopTime/doc/spec.md)
26 | - [GtfsService](./GtfsService/doc/spec.md)
27 | - [GtfsCalendarRule](./GtfsCalendarRule/doc/spec.md)
28 | - [GtfsCalendarDateRule](./GtfsCalendarDateRule/doc/spec.md)
29 | - [GtfsFrequency](./GtfsFrequency/doc/spec.md)
30 | - [GtfsTransferRule](./GtfsTransferRule/doc/spec.md)
31 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/gtfs-schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json-schema.org/schema#",
3 | "$id": "https://fiware.github.io/data-models/specs/UrbanMobility/gtfs-schema.json",
4 | "title": "NGSI - GTFS Schema",
5 | "description": "Common definitions of GTFS data models",
6 | "definitions": {
7 | "GTFS-Stop-Commons": {
8 | "type": "object",
9 | "properties": {
10 | "name": {
11 | "type": "string"
12 | },
13 | "code": {
14 | "type": "string"
15 | },
16 | "page": {
17 | "type": "string",
18 | "format": "uri"
19 | },
20 | "description": {
21 | "type": "string"
22 | },
23 | "zoneCode": {
24 | "type": "string"
25 | },
26 | "wheelChairAccessible": {
27 | "type": "string",
28 | "enum": ["0", "1", "2"]
29 | },
30 | "hasParentStation": {
31 | "type": "string",
32 | "format": "uri"
33 | }
34 | }
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/unsupported/ArrivalEstimation/example-normalized-ld.jsonld:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:ArrivalEstimation:Santander:1",
3 | "type": "ArrivalEstimation",
4 | "refGtfsTransitFeedFile": {
5 | "type": "Property",
6 | "value": "urn:ngsi-ld:GtfsTransitFeedFile:Santander:bus"
7 | },
8 | "routeId": {
9 | "type": "Property",
10 | "value": "route1"
11 | },
12 | "stopId": {
13 | "type": "Property",
14 | "value": "stop1"
15 | },
16 | "lastUpdatedAt": {
17 | "type": "Property",
18 | "value": {
19 | "@type": "DateTime",
20 | "@value": "2018-12-19T10:14:00.238Z"
21 | }
22 | },
23 | "arrivalEstimationUpdate": {
24 | "type": "Property",
25 | "value": [
26 | {
27 | "tripId": "1",
28 | "arrivalDelay": -2
29 | },
30 | {
31 | "tripId": "2",
32 | "arrivalDelay": -2
33 | },
34 | {
35 | "tripId": "3",
36 | "arrivalDelay": -2
37 | }
38 | ]
39 | },
40 | "@context": [
41 | "https://schema.lab.fiware.org/ld/context",
42 | "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
43 | ]
44 | }
45 |
--------------------------------------------------------------------------------
/specs/UrbanMobility/unsupported/ArrivalEstimation/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:ArrivalEstimation:Santander:1",
3 | "type": "ArrivalEstimation",
4 | "refGtfsTransitFeedFile": {
5 | "value": "urn:ngsi-ld:GtfsTransitFeedFile:Santander:bus"
6 | },
7 | "routeId": {
8 | "value": "route1"
9 | },
10 | "stopId": {
11 | "value": "stop1"
12 | },
13 | "lastUpdatedAt": {
14 | "value": "2018-12-19T10:14:00.238Z",
15 | "type": "DateTime"
16 | },
17 | "arrivalEstimationUpdate": {
18 | "value": [
19 | {
20 | "tripId": "1",
21 | "arrivalDelay": -2
22 | }, {
23 | "tripId": "2",
24 | "arrivalDelay": -2
25 | }, {
26 | "tripId": "3",
27 | "arrivalDelay": -2
28 | }
29 | ]
30 | }
31 | }
--------------------------------------------------------------------------------
/specs/UrbanMobility/unsupported/ArrivalEstimation/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:ArrivalEstimation:Santander:1",
3 | "type": "ArrivalEstimation",
4 | "refGtfsTransitFeedFile": "urn:ngsi-ld:GtfsTransitFeedFile:Santander:bus",
5 | "routeId": "route1",
6 | "stopId": "stop1",
7 | "lastUpdatedAt": "2018-12-19T10:14:00.238Z",
8 | "arrivalEstimationUpdate": [
9 | {
10 | "tripId": "1",
11 | "arrivalDelay": -2
12 | }, {
13 | "tripId": "2",
14 | "arrivalDelay": -2
15 | }, {
16 | "tripId": "3",
17 | "arrivalDelay": -2
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/specs/User/Activity/example-normalized-ld.jsonld:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:UserActivity:UserActivity1",
3 | "type": "UserActivity",
4 | "description": {
5 | "type": "Property",
6 | "value": "User1 drive Car1 to Office1"
7 | },
8 | "refTarget": {
9 | "type": "Relationship",
10 | "object": "urn:ngsi-ld:Target:Office1"
11 | },
12 | "activityType": {
13 | "type": "Property",
14 | "value": "Drive"
15 | },
16 | "dateActivityStarted": {
17 | "type": "Property",
18 | "value": {
19 | "@type": "DateTime",
20 | "@value": "2016-11-30T07:00:00.00Z"
21 | }
22 | },
23 | "refAgent": {
24 | "type": "Relationship",
25 | "object": "urn:ngsi-ld:Agent:User1"
26 | },
27 | "refObject": {
28 | "type": "Relationship",
29 | "object": "urn:ngsi-ld:Object:Car1"
30 | },
31 | "@context": [
32 | "https://schema.lab.fiware.org/ld/context",
33 | "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
34 | ]
35 | }
36 |
--------------------------------------------------------------------------------
/specs/User/Activity/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "UserActivity1",
3 | "type": "UserActivity",
4 | "description": {
5 | "value": "User1 drive Car1 to Office1"
6 | },
7 | "refTarget": {
8 | "type": "Relationship",
9 | "value": "Office1"
10 | },
11 | "activityType": {
12 | "value": "Drive"
13 | },
14 | "dateActivityStarted": {
15 | "type": "DateTime",
16 | "value": "2016-11-30T07:00:00.00Z"
17 | },
18 | "refAgent": {
19 | "type": "Relationship",
20 | "value": "User1"
21 | },
22 | "refObject": {
23 | "type": "Relationship",
24 | "value": "Car1"
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/specs/User/Activity/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "UserActivity1",
3 | "type": "UserActivity",
4 | "activityType": "Drive",
5 | "description": "User1 drive Car1 to Office1",
6 | "dateActivityStarted": "2016-11-30T07:00:00.00Z",
7 | "refObject": "Car1",
8 | "refTarget": "Office1",
9 | "refAgent": "User1"
10 | }
11 |
--------------------------------------------------------------------------------
/specs/User/README.md:
--------------------------------------------------------------------------------
1 | # User Data Models
2 |
3 | 
4 |
5 | > This repository is now archived and subsequent works will be carried out the
6 | > in [Smart data models](https://github.com/smart-data-models) repositories.
7 |
8 | This folders contains a number of data models related to the modelling of User
9 | Context.
10 |
11 | The following entity types are supported:
12 |
13 | - `UserContext` - An Entity that represents the context of a given user.
14 | - `Activity` - An Entity that represents an activity performed by a given
15 | user.
16 |
--------------------------------------------------------------------------------
/specs/User/UserContext/README.md:
--------------------------------------------------------------------------------
1 | # UserContext
2 |
3 | 
4 |
5 | > This repository is now archived and subsequent works will be carried out the
6 | > in [Smart data models](https://github.com/smart-data-models) repositories.
7 |
8 | This data model describe the Context of a User. No personal data is encoded in
9 | the model. The actual User data are stored in a different end point, as
10 | identified by the `refUser` property.
11 |
12 | **Note**: JSON Schemas only capture the NGSI simplified representation, this
13 | means that to test the JSON schema examples with a
14 | [FIWARE NGSI version 2](http://fiware.github.io/specifications/ngsiv2/stable)
15 | API implementation, you need to use the `keyValues` mode (`options=keyValues`).
16 |
17 | ## Examples of use
18 |
19 | ```json
20 | {
21 | "id": "UserContext1",
22 | "type": "UserContext",
23 | "location": {
24 | "type": "Point",
25 | "coordinates": [-4.754444444, 41.640833333]
26 | },
27 | "refActivity": "UserActivity1",
28 | "refUserDevice": "Device1",
29 | "refUser": "User1"
30 | }
31 | ```
32 |
--------------------------------------------------------------------------------
/specs/User/UserContext/example-normalized-ld.jsonld:
--------------------------------------------------------------------------------
1 | {
2 | "id": "urn:ngsi-ld:UserContext:UserContext1",
3 | "type": "UserContext",
4 | "refActivity": {
5 | "type": "Relationship",
6 | "object": "urn:ngsi-ld:Activity:UserActivity1"
7 | },
8 | "location": {
9 | "type": "GeoProperty",
10 | "value": {
11 | "type": "Point",
12 | "coordinates": [
13 | -4.754444444,
14 | 41.640833333
15 | ]
16 | }
17 | },
18 | "refUser": {
19 | "type": "Relationship",
20 | "object": "urn:ngsi-ld:User:User1"
21 | },
22 | "refUserDevice": {
23 | "type": "Relationship",
24 | "object": "urn:ngsi-ld:UserDevice:Device1"
25 | },
26 | "@context": [
27 | "https://schema.lab.fiware.org/ld/context",
28 | "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
29 | ]
30 | }
31 |
--------------------------------------------------------------------------------
/specs/User/UserContext/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "UserContext1",
3 | "type": "UserContext",
4 | "refActivity": {
5 | "type": "Relationship",
6 | "value": "UserActivity1"
7 | },
8 | "location": {
9 | "type": "geo:json",
10 | "value": {
11 | "type": "Point",
12 | "coordinates": [-4.754444444, 41.640833333]
13 | }
14 | },
15 | "refUser": {
16 | "type": "Relationship",
17 | "value": "User1"
18 | },
19 | "refUserDevice": {
20 | "type": "Relationship",
21 | "value": "Device1"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/specs/User/UserContext/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "UserContext1",
3 | "type": "UserContext",
4 | "location": {
5 | "type": "Point",
6 | "coordinates": [-4.754444444, 41.640833333]
7 | },
8 | "refActivity": "UserActivity1",
9 | "refUserDevice": "Device1",
10 | "refUser": "User1"
11 | }
12 |
--------------------------------------------------------------------------------
/specs/WasteManagement/README.md:
--------------------------------------------------------------------------------
1 | # # `DEPRECATED` Waste Management data models
2 |
3 | 
4 |
5 | > This repository is now archived and subsequent works will be carried out the
6 | > in [Smart data models](https://github.com/smart-data-models) repositories. The
7 | > latest version of these Data Models can be found at
8 | > [https://github.com/smart-data-models/dataModel.WasteManagement](https://github.com/smart-data-models/dataModel.WasteManagement)
9 |
--------------------------------------------------------------------------------
/specs/WasteManagement/WasteContainer/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "wastecontainer:Fleming:12a",
3 | "type": "WasteContainer",
4 | "status": {
5 | "value": "ok"
6 | },
7 | "category": {
8 | "value": ["underground"]
9 | },
10 | "dateLastEmptying": {
11 | "type": "DateTime",
12 | "value": "2016-06-21T15:05:59.408Z"
13 | },
14 | "serialNumber": {
15 | "value": "ab56kjl"
16 | },
17 | "nextActuationDeadline": {
18 | "value": "2016-06-28T15:05:59.408Z"
19 | },
20 | "refWasteContainerIsle": {
21 | "type": "Relationship",
22 | "value": "wastecontainerisle:Fleming:12"
23 | },
24 | "refDevice": {
25 | "type": "Relationship",
26 | "value": ["device-Fleming:12a:1"]
27 | },
28 | "location": {
29 | "type": "geo:json",
30 | "value": {
31 | "type": "Point",
32 | "coordinates": [-3.164485591715449, 40.62785133667262]
33 | }
34 | },
35 | "fillingLevel": {
36 | "value": 0.4
37 | },
38 | "refWasteContainerModel": {
39 | "type": "Relationship",
40 | "value": "wastecontainermodel:c1"
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/specs/WasteManagement/WasteContainer/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "wastecontainer:Fleming:12a",
3 | "type": "WasteContainer",
4 | "refWasteContainerModel": "wastecontainermodel:c1",
5 | "refWasteContainerIsle": "wastecontainerisle:Fleming:12",
6 | "serialNumber": "ab56kjl",
7 | "location": {
8 | "type": "Point",
9 | "coordinates": [-3.164485591715449, 40.62785133667262]
10 | },
11 | "fillingLevel": 0.4,
12 | "dateLastEmptying": "2016-06-21T15:05:59.408Z",
13 | "nextActuationDeadline": "2016-06-28T15:05:59.408Z",
14 | "status": "ok",
15 | "category": ["underground"],
16 | "refDevice": ["device-Fleming:12a:1"]
17 | }
18 |
--------------------------------------------------------------------------------
/specs/WasteManagement/WasteContainerIsle/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "wastecontainerisle:Fleming:12",
3 | "type": "WasteContainerIsle",
4 | "refWasteContainer": {
5 | "type": "Relationship",
6 | "value": ["wastecontainer:Fleming:12a", "wastecontainer:Fleming:12b"]
7 | },
8 | "features": {
9 | "value": ["underground"]
10 | },
11 | "description": {
12 | "value": "Container isle located downtown"
13 | },
14 | "location": {
15 | "type": "geo:json",
16 | "value": {
17 | "type": "Polygon",
18 | "coordinates": [
19 | [
20 | [-3.164485591715449, 40.62785133667262],
21 | [-3.164445130316209, 40.62787156737224],
22 | [-3.164394553567159, 40.62777209976578],
23 | [-3.164424899616589, 40.62775018317452],
24 | [-3.164485591715449, 40.62785133667262]
25 | ]
26 | ]
27 | }
28 | },
29 | "address": {
30 | "type": "PostalAddress",
31 | "value": {
32 | "addressLocality": "Guadalajara",
33 | "addressCountry": "ES",
34 | "streetAddress": "Calle Dr. Fleming, 12"
35 | }
36 | },
37 | "name": {
38 | "value": "Dr. Fleming 12, Esquina Manuel Paez Xaramillo"
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/specs/WasteManagement/WasteContainerIsle/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "wastecontainerisle:Fleming:12",
3 | "type": "WasteContainerIsle",
4 | "location": {
5 | "type": "Polygon",
6 | "coordinates": [
7 | [
8 | [-3.164485591715449, 40.62785133667262],
9 | [-3.164445130316209, 40.627871567372239],
10 | [-3.164394553567159, 40.627772099765778],
11 | [-3.164424899616589, 40.62775018317452],
12 | [-3.164485591715449, 40.62785133667262]
13 | ]
14 | ]
15 | },
16 | "address": {
17 | "streetAddress": "Calle Dr. Fleming, 12",
18 | "addressLocality": "Guadalajara",
19 | "addressCountry": "ES"
20 | },
21 | "features": ["underground"],
22 | "name": "Dr. Fleming 12, Esquina Manuel Paez Xaramillo",
23 | "description": "Container isle located downtown",
24 | "refWasteContainer": [
25 | "wastecontainer:Fleming:12a",
26 | "wastecontainer:Fleming:12b"
27 | ]
28 | }
29 |
--------------------------------------------------------------------------------
/specs/WasteManagement/WasteContainerModel/example-normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "wastecontainermodel:c1",
3 | "type": "WasteContainerModel",
4 | "category": {
5 | "value": ["dumpster"]
6 | },
7 | "cargoVolume": {
8 | "value": 150
9 | },
10 | "modelName": {
11 | "value": "C1"
12 | },
13 | "name": {
14 | "value": "Dumpster_Brute_2009_Plastic_Green"
15 | },
16 | "compliantWith": {
17 | "value": ["UNE-EN 840-2:2013"]
18 | },
19 | "madeOf": {
20 | "value": "plastic"
21 | },
22 | "height": {
23 | "value": 0.8
24 | },
25 | "width": {
26 | "value": 0.5
27 | },
28 | "depth": {
29 | "value": 0.4
30 | },
31 | "brandName": {
32 | "value": "Brute"
33 | },
34 | "features": {
35 | "value": ["wheels", "lid"]
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/specs/WasteManagement/WasteContainerModel/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "wastecontainermodel:c1",
3 | "type": "WasteContainerModel",
4 | "width": 0.5,
5 | "height": 0.8,
6 | "depth": 0.4,
7 | "cargoVolume": 150,
8 | "brandName": "Brute",
9 | "name": "Dumpster_Brute_2009_Plastic_Green",
10 | "modelName": "C1",
11 | "compliantWith": ["UNE-EN 840-2:2013"],
12 | "madeOf": "plastic",
13 | "features": ["wheels", "lid"],
14 | "category": ["dumpster"]
15 | }
16 |
--------------------------------------------------------------------------------
/specs/Weather/README.md:
--------------------------------------------------------------------------------
1 | # # `DEPRECATED` Weather data models
2 |
3 | 
4 |
5 | > This repository is now archived and subsequent works will be carried out the
6 | > in [Smart data models](https://github.com/smart-data-models) repositories. The
7 | > latest version of these Data Models can be found at
8 | > [https://github.com/smart-data-models/dataModel.Weather](https://github.com/smart-data-models/dataModel.Weather)
9 |
10 | This folder contains all the code that defines domain-specific datamodels for
11 | providing weather information. The following entity types are supported:
12 |
13 | - `WeatherObserved` .- Weather observations provided by
14 | [AEMET Weather Stations](../PointOfInterest/WeatherStation/README.md)
15 | - `WeatherForecast` .- Weather forecasts provided by [AEMET](http://aemet.es)
16 | and [IPMA](http://ipma.pt)
17 | - `Alert` .- Alerts with `weather` `category` provided by
18 | [MeteoAlarm](http://meteoalarm.eu) and [IPMA](http://ipma.pt)
19 |
--------------------------------------------------------------------------------
/specs/Weather/WeatherAlert/doc/spec.md:
--------------------------------------------------------------------------------
1 | # Weather alarm / alert
2 |
3 | 
4 |
5 | > This repository is now archived and subsequent works will be carried out the
6 | > in [Smart data models](https://github.com/smart-data-models) repositories.
7 |
8 | Use [Alert](../../../Alert/doc/spec.md) with `weather` as `category`.
9 |
--------------------------------------------------------------------------------
/specs/Weather/WeatherAlert/example-1.json:
--------------------------------------------------------------------------------
1 | {
2 | "severity": "medium",
3 | "category": "weather",
4 | "subCategory": "snow/ice",
5 | "alertSource": "http://www.meteoalarm.eu",
6 | "address": {
7 | "addressCountry": "ES",
8 | "addressRegion": "Huesca"
9 | },
10 | "dateIssued": "2016-03-14T13:54:01.00Z",
11 | "type": "Alert",
12 | "id": "WeatherAlert-83b872975414bfca10832e564a1bb416-7",
13 | "validTo": "2016-03-14T23:59:00.00Z",
14 | "validFrom": "2016-03-14T13:00:00.00Z"
15 | }
16 |
--------------------------------------------------------------------------------
/specs/Weather/WeatherAlert/schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json-schema.org/schema#",
3 | "$id": "https://fiware.github.io/data-models/specs/WeatherAlarm/schema.json",
4 | "title": "Weather Alarm data model JSON Schema",
5 | "description": "A weather alert generated by a user or device in a given location",
6 | "allOf": [
7 | {
8 | "$ref": "https://fiware.github.io/data-models/specs/Alert/alert-schema.json#/definitions/Common-Alert"
9 | },
10 | {
11 | "type": "object",
12 | "properties": {
13 | "category": {
14 | "type": "string",
15 | "enum": ["weather"]
16 | },
17 | "subCategory": {
18 | "$ref": "https://fiware.github.io/data-models/specs/Weather/weather-schema.json#/definitions/WeatherAlertCategories"
19 | }
20 | }
21 | }
22 | ],
23 | "oneOf": [
24 | {
25 | "required": [
26 | "id",
27 | "type",
28 | "location",
29 | "alertSource",
30 | "category",
31 | "subCategory",
32 | "dateIssued"
33 | ]
34 | },
35 | {
36 | "required": [
37 | "id",
38 | "type",
39 | "address",
40 | "alertSource",
41 | "category",
42 | "subCategory",
43 | "dateIssued"
44 | ]
45 | }
46 | ]
47 | }
48 |
--------------------------------------------------------------------------------
/specs/Weather/WeatherForecast/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "Spain-WeatherForecast-46005_2016-12-01T18:00:00_2016-12-02T00:00:00",
3 | "type": "WeatherForecast",
4 | "address": {
5 | "addressCountry": "Spain",
6 | "postalCode": "46005",
7 | "addressLocality": "Valencia"
8 | },
9 | "dataProvider": "TEF",
10 | "dateIssued": "2016-12-01T10:40:01.00Z",
11 | "dateRetrieved": "2016-12-01T12:57:24.00Z",
12 | "dayMaximum": {
13 | "feelsLikeTemperature": 15,
14 | "temperature": 15,
15 | "relativeHumidity": 0.9
16 | },
17 | "dayMinimum": {
18 | "feelsLikeTemperature": 11,
19 | "temperature": 11,
20 | "relativeHumidity": 0.7
21 | },
22 | "feelsLikeTemperature": 12,
23 | "precipitationProbability": 0.15,
24 | "relativeHumidity": 0.85,
25 | "source": "http://www.aemet.es/xml/municipios/localidad_46250.xml",
26 | "temperature": 12,
27 | "validFrom": "2016-12-01T17:00:00.00Z",
28 | "validTo": "2016-12-01T23:00:00.00Z",
29 | "validity": "2016-12-01T18:00:00+01:00/2016-12-02T00:00:00+01:00",
30 | "weatherType": "overcast",
31 | "windSpeed": 0
32 | }
33 |
--------------------------------------------------------------------------------
/specs/Weather/WeatherForecast/harvesters/portugal/.dockerignore:
--------------------------------------------------------------------------------
1 | .*
2 | *.md
3 | Dockerfile
4 |
--------------------------------------------------------------------------------
/specs/Weather/WeatherForecast/harvesters/portugal/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM python:3.7.3-alpine3.10
2 |
3 | LABEL maintainer="Dmitrii Demin "
4 |
5 | WORKDIR /opt/
6 |
7 | COPY . /opt
8 |
9 | RUN apk update && \
10 | apk add --no-cache git build-base curl && \
11 | pip install -r requirements.txt && \
12 | apk del build-base git && \
13 | rm -f /var/cache/apk/*
14 |
15 | USER nobody
16 |
17 | ENTRYPOINT ["/opt/entrypoint.sh"]
18 |
--------------------------------------------------------------------------------
/specs/Weather/WeatherForecast/harvesters/portugal/README.md:
--------------------------------------------------------------------------------
1 | 
2 |
3 | # FIWARE harvester - Portugal weather forecasts
4 |
5 | ## Overview
6 |
7 | It performs data harvesting using IPMA's data site as the origin and Orion
8 | Context Broker as the destination.
9 |
10 | ## How to run
11 |
12 | ```console
13 | docker run -d fiware/harvesters:weather-forecast-portugal \
14 | --timeout ${TIMEOUT} \
15 | --latest \
16 | --orion ${ORION_ENDPOINT} \
17 | --service ${FIWARE_SERVICE} \
18 | --config ${PATH_TO_CONFIG}
19 | ```
20 |
21 | ## Optional parameters
22 |
23 | It is possible to limit the amount of parallel requests to the sources and
24 | Orion. See parameters in the [harvester](./portugal_weather_forecast.py).
25 |
--------------------------------------------------------------------------------
/specs/Weather/WeatherForecast/harvesters/portugal/config.example.yml:
--------------------------------------------------------------------------------
1 | include:
2 | - 1110600
3 | - 1131200
4 |
--------------------------------------------------------------------------------
/specs/Weather/WeatherForecast/harvesters/portugal/entrypoint.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | ORION_DEFAULT=http://orion:1026
4 | PARAMS=$@
5 | HARVESTER=portugal_weather_forecast.py
6 |
7 | while [[ "$#" -gt 0 ]]; do
8 | case $1 in
9 | --orion)
10 | ORION="$2"
11 | shift
12 | ;;
13 | esac
14 | shift
15 | done
16 |
17 | if [[ -z ${ORION} ]]; then ORION=${ORION_DEFAULT}; fi
18 |
19 | echo "Trying ${ORION}/version .."
20 |
21 | while [[ ! "$(curl -s ${ORION}/version)" ]]; do
22 | echo "sleeping .."
23 | sleep 5
24 | done
25 |
26 | exec /usr/bin/env python3 -u /opt/${HARVESTER} ${PARAMS}
27 |
--------------------------------------------------------------------------------
/specs/Weather/WeatherForecast/harvesters/portugal/requirements.txt:
--------------------------------------------------------------------------------
1 | # python3.7.3
2 | pyyaml>=5.1
3 | aiohttp>=3.5.4
4 | requests>=2.21.0
5 | yajl>=0.3.5
6 | pytz>=2019.1
7 | uvloop>=0.12.2
8 |
--------------------------------------------------------------------------------
/specs/Weather/WeatherForecast/harvesters/spain/.dockerignore:
--------------------------------------------------------------------------------
1 | .*
2 | *.md
3 | Dockerfile
4 |
--------------------------------------------------------------------------------
/specs/Weather/WeatherForecast/harvesters/spain/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM python:3.7.3-alpine3.10
2 |
3 | LABEL maintainer="Dmitrii Demin "
4 |
5 | WORKDIR /opt/
6 |
7 | COPY . /opt
8 |
9 | RUN apk update && \
10 | apk add --no-cache git build-base curl && \
11 | pip install -r requirements.txt && \
12 | apk del build-base git && \
13 | rm -f /var/cache/apk/*
14 |
15 | USER nobody
16 |
17 | ENTRYPOINT ["/opt/entrypoint.sh"]
18 |
--------------------------------------------------------------------------------
/specs/Weather/WeatherForecast/harvesters/spain/README.md:
--------------------------------------------------------------------------------
1 | 
2 |
3 | # FIWARE harvester - Spain weather forecasts
4 |
5 | ## Overview
6 |
7 | It performs data harvesting using AEMET's data site as the origin and Orion
8 | Context Broker as the destination. It uses predefined list of stations
9 | (./stations.yml), that can be obtained by other
10 | [harvester](https://github.com/FIWARE/data-models/tree/master/specs/PointOfInterest/WeatherStation/harvesters/spain).
11 |
12 | ## How to run
13 |
14 | ```console
15 | docker run -d -v ${PATH_TO_STATION_FILE}:/opt/stations.yml \
16 | fiware/harvesters:weather-forecast-spain \
17 | --timeout ${TIMEOUT} \
18 | --latest \
19 | --orion ${ORION_ENDPOINT} \
20 | --service ${FIWARE_SERVICE} \
21 | --config ${PATH_TO_CONFIG} \
22 | --key ${AEMET_API_KEY}
23 | ```
24 |
25 | ## Optional parameters
26 |
27 | It is possible to limit the amount of parallel requests to the sources and
28 | Orion. See parameters in the [harvester](./spain_weather_forecast.py).
29 |
30 | ## API key
31 |
32 | API key from AEMET should be provided. See the help at the header of the
33 | [harvester](./spain_weather_forecast.py).
34 |
--------------------------------------------------------------------------------
/specs/Weather/WeatherForecast/harvesters/spain/config.example.yml:
--------------------------------------------------------------------------------
1 | include:
2 | - 08019
3 | - 28079
4 |
--------------------------------------------------------------------------------
/specs/Weather/WeatherForecast/harvesters/spain/entrypoint.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | ORION_DEFAULT=http://orion:1026
4 | PARAMS=$@
5 | HARVESTER=spain_weather_forecast.py
6 |
7 | while [[ "$#" -gt 0 ]]; do
8 | case $1 in
9 | --orion)
10 | ORION="$2"
11 | shift
12 | ;;
13 | esac
14 | shift
15 | done
16 |
17 | if [[ -z ${ORION} ]]; then ORION=${ORION_DEFAULT}; fi
18 |
19 | echo "Trying ${ORION}/version .."
20 |
21 | while [[ ! "$(curl -s ${ORION}/version)" ]]; do
22 | echo "sleeping .."
23 | sleep 5
24 | done
25 |
26 | exec /usr/bin/env python3 -u /opt/${HARVESTER} ${PARAMS}
27 |
--------------------------------------------------------------------------------
/specs/Weather/WeatherForecast/harvesters/spain/requirements.txt:
--------------------------------------------------------------------------------
1 | # python3.7.3
2 | pyyaml>=5.1
3 | aiohttp>=3.5.4
4 | requests>=2.21.0
5 | yajl>=0.3.5
6 | pytz>=2019.1
7 | uvloop>=0.12.2
8 |
--------------------------------------------------------------------------------
/specs/Weather/WeatherObserved/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "Spain-WeatherObserved-Valladolid-2016-11-30T07:00:00.00Z",
3 | "type": "WeatherObserved",
4 | "address": {
5 | "addressLocality": "Valladolid",
6 | "addressCountry": "ES"
7 | },
8 | "atmosphericPressure": 938.9,
9 | "dataProvider": "TEF",
10 | "dateObserved": "2016-11-30T07:00:00.00Z",
11 | "location": {
12 | "type": "Point",
13 | "coordinates": [-4.754444444, 41.640833333]
14 | },
15 | "precipitation": 0,
16 | "pressureTendency": 0.5,
17 | "relativeHumidity": 1,
18 | "source": "http://www.aemet.es",
19 | "stationCode": "2422",
20 | "stationName": "Valladolid",
21 | "temperature": 3.3,
22 | "windDirection": -45,
23 | "windSpeed": 2,
24 | "illuminance": 1000,
25 | "refDevice": "device-0A3478",
26 | "streamGauge": 50,
27 | "snowHeight": 20
28 | }
29 |
--------------------------------------------------------------------------------
/specs/Weather/WeatherObserved/harvesters/portugal/.dockerignore:
--------------------------------------------------------------------------------
1 | .*
2 | *.md
3 | Dockerfile
4 |
--------------------------------------------------------------------------------
/specs/Weather/WeatherObserved/harvesters/portugal/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM python:3.7.3-alpine3.10
2 |
3 | LABEL maintainer="Dmitrii Demin "
4 |
5 | WORKDIR /opt/
6 |
7 | COPY . /opt
8 |
9 | RUN apk update && \
10 | apk add --no-cache git build-base curl && \
11 | pip install -r requirements.txt && \
12 | apk del build-base git && \
13 | rm -f /var/cache/apk/*
14 |
15 | USER nobody
16 |
17 | ENTRYPOINT ["/opt/entrypoint.sh"]
18 |
--------------------------------------------------------------------------------
/specs/Weather/WeatherObserved/harvesters/portugal/README.md:
--------------------------------------------------------------------------------
1 | 
2 |
3 | # FIWARE harvester - Portugal weather observations
4 |
5 | ## Overview
6 |
7 | It performs data harvesting using IPMA's data site as the origin and Orion
8 | Context Broker as the destination. It uses predefined list of stations
9 | (./stations.yml), that can be obtained by other
10 | [harvester](https://github.com/FIWARE/data-models/tree/master/specs/PointOfInterest/WeatherStation/harvesters/portugal).
11 |
12 | ## How to run
13 |
14 | ```console
15 | docker run -d -v ${PATH_TO_STATION_FILE}:/opt/stations.yml \
16 | fiware/harvesters:weather-observed-portugal \
17 | --timeout ${TIMEOUT} \
18 | --latest \
19 | --orion ${ORION_ENDPOINT} \
20 | --service ${FIWARE_SERVICE} \
21 | --config ${PATH_TO_CONFIG}
22 | ```
23 |
24 | ## Optional parameters
25 |
26 | It is possible to limit the amount of parallel requests to the sources and
27 | Orion. See parameters in the [harvester](./portugal_weather_observed.py).
28 |
--------------------------------------------------------------------------------
/specs/Weather/WeatherObserved/harvesters/portugal/config.example.yml:
--------------------------------------------------------------------------------
1 | include:
2 | - 579
3 | - 524
4 |
--------------------------------------------------------------------------------
/specs/Weather/WeatherObserved/harvesters/portugal/entrypoint.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | ORION_DEFAULT=http://orion:1026
4 | PARAMS=$@
5 | HARVESTER=portugal_weather_observed.py
6 |
7 | while [[ "$#" -gt 0 ]]; do
8 | case $1 in
9 | --orion)
10 | ORION="$2"
11 | shift
12 | ;;
13 | esac
14 | shift
15 | done
16 |
17 | if [[ -z ${ORION} ]]; then ORION=${ORION_DEFAULT}; fi
18 |
19 | echo "Trying ${ORION}/version .."
20 |
21 | while [[ ! "$(curl -s ${ORION}/version)" ]]; do
22 | echo "sleeping .."
23 | sleep 5
24 | done
25 |
26 | exec /usr/bin/env python3 -u /opt/${HARVESTER} ${PARAMS}
27 |
--------------------------------------------------------------------------------
/specs/Weather/WeatherObserved/harvesters/portugal/requirements.txt:
--------------------------------------------------------------------------------
1 | # python3.7.3
2 | pyyaml>=5.1
3 | aiohttp>=3.5.4
4 | requests>=2.21.0
5 | yajl>=0.3.5
6 | pytz>=2019.1
7 | uvloop>=0.12.2
8 |
--------------------------------------------------------------------------------
/specs/Weather/WeatherObserved/harvesters/spain/.dockerignore:
--------------------------------------------------------------------------------
1 | .*
2 | *.md
3 | Dockerfile
4 |
--------------------------------------------------------------------------------
/specs/Weather/WeatherObserved/harvesters/spain/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM python:3.7.3-alpine3.10
2 |
3 | LABEL maintainer="Dmitrii Demin "
4 |
5 | WORKDIR /opt/
6 |
7 | COPY . /opt
8 |
9 | RUN apk update && \
10 | apk add --no-cache git build-base curl && \
11 | pip install -r requirements.txt && \
12 | apk del build-base git && \
13 | rm -f /var/cache/apk/*
14 |
15 | USER nobody
16 |
17 | ENTRYPOINT ["/opt/entrypoint.sh"]
18 |
--------------------------------------------------------------------------------
/specs/Weather/WeatherObserved/harvesters/spain/README.md:
--------------------------------------------------------------------------------
1 | 
2 |
3 | # FIWARE harvester - Spain weather observations
4 |
5 | ## Overview
6 |
7 | It performs data harvesting using AEMET's data site as the origin and Orion
8 | Context Broker as the destination. It uses predefined list of stations
9 | (./stations.yml), that can be obtained by other
10 | [harvester](https://github.com/FIWARE/data-models/tree/master/specs/PointOfInterest/WeatherStation/harvesters/spain).
11 |
12 | ## How to run
13 |
14 | ```console
15 | docker run -d -v ${PATH_TO_STATION_FILE}:/opt/stations.yml \
16 | fiware/harvesters:weather-observed-spain \
17 | --timeout ${TIMEOUT} \
18 | --latest \
19 | --orion ${ORION_ENDPOINT} \
20 | --service ${FIWARE_SERVICE} \
21 | --config ${PATH_TO_CONFIG} \
22 | --key ${AEMET_API_KEY}
23 | ```
24 |
25 | ## Optional parameters
26 |
27 | It is possible to limit the amount of parallel requests to the sources and
28 | Orion. See parameters in the [harvester](./spain_weather_observed.py).
29 |
30 | ## API key
31 |
32 | API key from AEMET should be provided. See the help at the header of the
33 | [harvester](./spain_weather_observed.py).
34 |
--------------------------------------------------------------------------------
/specs/Weather/WeatherObserved/harvesters/spain/config.example.yml:
--------------------------------------------------------------------------------
1 | include:
2 | - 0201D
3 | - 3129
4 |
--------------------------------------------------------------------------------
/specs/Weather/WeatherObserved/harvesters/spain/entrypoint.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | ORION_DEFAULT=http://orion:1026
4 | PARAMS=$@
5 | HARVESTER=spain_weather_observed.py
6 |
7 | while [[ "$#" -gt 0 ]]; do
8 | case $1 in
9 | --orion)
10 | ORION="$2"
11 | shift
12 | ;;
13 | esac
14 | shift
15 | done
16 |
17 | if [[ -z ${ORION} ]]; then ORION=${ORION_DEFAULT}; fi
18 |
19 | echo "Trying ${ORION}/version .."
20 |
21 | while [[ ! "$(curl -s ${ORION}/version)" ]]; do
22 | echo "sleeping .."
23 | sleep 5
24 | done
25 |
26 | exec /usr/bin/env python3 -u /opt/${HARVESTER} ${PARAMS}
27 |
--------------------------------------------------------------------------------
/specs/Weather/WeatherObserved/harvesters/spain/requirements.txt:
--------------------------------------------------------------------------------
1 | # python3.7.3
2 | pyyaml>=5.1
3 | aiohttp>=3.5.4
4 | requests>=2.21.0
5 | yajl>=0.3.5
6 | pytz>=2019.1
7 | uvloop>=0.12.2
8 |
--------------------------------------------------------------------------------
/specs/Weather/doc/introduction.md:
--------------------------------------------------------------------------------
1 | # Weather Harmonized Data Models
2 |
3 | These data models describe entities useful for dealing with weather data. These
4 | entities are primarily associated with the vertical segments of the environment
5 | and agriculture but is applicable to many different applications.
6 |
7 | The main entities identified are:
8 |
9 | - [WeatherForecast](../WeatherForecast/doc/spec.md). It represents a weather
10 | forecast for a period of time and a location.
11 | - [WeatherObserved](../WeatherObserved/doc/spec.md). It represents a weather
12 | observation made over a period of time at a specific location.
13 |
14 | * [WeatherAlert](../WeatherAlert/doc/spec.md). It represents a weather alarm
15 | intended to raise attention over a forecasted extreme weather condition.
16 |
--------------------------------------------------------------------------------
/specs/img/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FIWARE/data-models/8d5604ed7a162416ee0b7c16eb6b9627961f5c3c/specs/img/favicon.ico
--------------------------------------------------------------------------------
/specs/img/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FIWARE/data-models/8d5604ed7a162416ee0b7c16eb6b9627961f5c3c/specs/img/favicon.png
--------------------------------------------------------------------------------
/specs/index.md:
--------------------------------------------------------------------------------
1 | # `DEPRECATED` FIWARE Data Models
2 |
3 | 
4 |
5 | > This repository is now archived and subsequent works will be carried out the
6 | > in [Smart data models](https://github.com/smart-data-models) repositories.
7 |
8 | Welcome to FIWARE Data Models. These data models have been harmonized as per our
9 | experience working with different services in Smart Cities and other domains.
10 |
--------------------------------------------------------------------------------
/tools/.gitignore:
--------------------------------------------------------------------------------
1 | context.jsonld
2 | example-normalized.json
3 | example-LD.jsonld
4 | terms_list.yml
5 |
--------------------------------------------------------------------------------
/tools/README.md:
--------------------------------------------------------------------------------
1 | # Data Models Tools
2 |
3 | These tools allow to automate certain tasks related to the FIWARE Data Models:
4 |
5 | - `normalized2LD.py` allows to convert an NGSI v2 Entity represented using the
6 | normalized format into an NGSI-LD Entity (JSON-LD). It takes as input a JSON
7 | file and generates a JSON-LD file.
8 |
9 | - `keyValues2Normalized.py` allows to convert an NGSI v2 Entity encoded as
10 | "key-values" into an NGSI v2 Entity represented using the normalized format
11 | (i.e. Entity-Attribute-Metadata). It takes as input a JSON file and
12 | generates another JSON file.
13 |
14 | - `ldcontext_generator.py` extracts all the properties from each JSON Schema
15 | associated to a Data Model and generates the corresponding LD @context. The
16 | tool can be executed against the data models root folder as it will
17 | automatically scan all the directories.
18 |
--------------------------------------------------------------------------------
/tools/keyValues2Normalized.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "bus001",
3 | "type": "bus",
4 | "dateObserved": "2019-06-04T20:00:00Z",
5 | "location": {
6 | "type": "Point",
7 | "coordinates": [52.5206378, 13.3284346]
8 | },
9 | "refPark": "park01"
10 | }
11 |
--------------------------------------------------------------------------------
/tools/ldcontext_generator.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json-schema.org/schema#",
3 | "$id": "https://fiware.github.io/dataModels/tools/ldcontext-generator.json",
4 | "title": "FIWARE - Example schema for ldcontext_generator",
5 | "description": "Example to be used as an input data for ldcontext_generator tool",
6 | "type": "object",
7 | "allOf": [
8 | { "$ref": "https://fiware.github.io/dataModels/common-schema.json#/definitions/GSMA-Commons" },
9 | { "$ref": "https://fiware.github.io/dataModels/common-schema.json#/definitions/Location-Commons" },
10 | {
11 | "properties": {
12 | "type": {
13 | "type": "string",
14 | "enum": [
15 | "bus"
16 | ],
17 | "desctiption": "NGSI Entity type"
18 | },
19 | "dateObserved": {
20 | "type": "string",
21 | "format": "date-time"
22 | },
23 | "volume": {
24 | "type": "number"
25 | },
26 | "fuel": {
27 | "type": "string",
28 | "value": "electricity"
29 | },
30 | "refPark": {
31 | "$ref": "https://fiware.github.io/dataModels/common-schema.json#/definitions/EntityIdentifierType"
32 | }
33 | }
34 | }
35 | ],
36 | "required": [
37 | "id",
38 | "type",
39 | "dateObserved",
40 | "location"
41 | ]
42 | }
43 |
--------------------------------------------------------------------------------
/tools/ldcontext_terms_mappings.json:
--------------------------------------------------------------------------------
1 | {
2 | "AgriCrop": "Agri-Crop",
3 | "AgriGreenhouse": "Agri-Greenhouse",
4 | "AgriParcelOperation": "Agri-Parcel-Operation",
5 | "AgriParcelRecord": "Agri-Parcel-Record",
6 | "AgriParcel": "Agri-Parcel",
7 | "AgriPest": "Agri-Pest",
8 | "AgriProductType": "Agri-Product-Type"
9 | }
10 |
--------------------------------------------------------------------------------
/tools/normalized2LD.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "bus001",
3 | "type": "bus",
4 | "volume": {
5 | "type": "Number",
6 | "value": 50
7 | },
8 | "fuel": {
9 | "type": "Text",
10 | "value": "electricity"
11 | },
12 | "dateObserved": {
13 | "type": "DateTime",
14 | "value": "2019-06-04T20:00:00Z"
15 | },
16 | "location": {
17 | "type": "geo:json",
18 | "value": {
19 | "type": "Point",
20 | "value": [52.5206378, 13.3284346]
21 | }
22 | },
23 | "refPark": {
24 | "type": "Relationship",
25 | "value": "park01"
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/validate.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | ajv validate --v5 -s $1 -r common-schema.json -r geometry-schema.json -d $2
4 |
--------------------------------------------------------------------------------
/validator/.eslintignore:
--------------------------------------------------------------------------------
1 | # editorconfig.org
2 | root = false
3 |
4 | [*]
5 | indent_style = tab
6 | end_of_line = lf
7 | charset = utf-8
8 | trim_trailing_whitespace = true
9 | insert_final_newline = true
10 |
11 | [*.{json,yml,md,babelrc,eslintrc,remarkrc}]
12 | indent_style = space
13 | indent_size = 2
14 |
--------------------------------------------------------------------------------
/validator/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "tamia",
3 | "parserOptions": {
4 | "sourceType": "module"
5 | },
6 | "rules": {
7 | "valid-jsdoc": 0
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/validator/config.json.example:
--------------------------------------------------------------------------------
1 | {
2 | "dmv": {
3 | "importSchemas": [
4 | "common-schema.json",
5 | "geometry-schema.json"
6 | ],
7 | "warnings": "true",
8 | "warningChecks": [
9 | "schemaExist",
10 | "docExist",
11 | "docFolderExist",
12 | "exampleExist",
13 | "modelNameValid",
14 | "readmeExist"
15 | ],
16 | "recursiveScan": true,
17 | "validateExamples": true,
18 | "loadModelCommonSchemas": true,
19 | "importExternalSchemaFolders": false,
20 | "resolveRemoteSchemas": false,
21 | "ignoreFolders": [
22 | "harvest",
23 | "auxiliary",
24 | "validator"
25 | ],
26 | "externalSchemaFolders" : ["externalSchema"],
27 | "docFolders": ["doc"],
28 | "contextBroker": false;
29 | "contextBrokerUrl": "http://localhost:1026/v2";
30 | },
31 | "ajv":{
32 | "missingRefs": "true",
33 | "extendRefs": "true",
34 | "allErrors": true
35 | }
36 | }
37 |
--------------------------------------------------------------------------------