{ "$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.0.2", "modelTags": "GreenMov", "$id": "https://github.com/smart-data-models/dataModel.OSLO/raw/master/ResourceReport/schema.json", "title": "Resource Report Forecast PTH-AP schema", "description": "Resource Report Forecast Schema meeting Passenger Transport Hubs AP Schema specification. A summary of the expectations of the resources connected to mobility services based on defined filters by the person requesting the report.", "type": "object", "allOf": [ { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" }, { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons" }, { "properties": { "type": { "type": "string", "enum": [ "ResourceReportForecast" ], "description": "Property. NGSI Entity type. It has to be ResourceReportForecast" }, "ResourceReport.actuator": { "type": "object", "description": "Property. Model:'https://purl.eu/ns/mobility/passenger-transport-hubs#actuator'. Engine of the means of transport", "properties": { "type": { "type": "string", "enum": [ "ActuatorType" ] }, "ActuatorType.preferredLabel": { "type": "string", "description": "Property. Model: 'http://www.w3.org/2004/02/skos/core#prefLabel'. Preferred label. Enum:'combustionEngine, electric, electricWithSupport, human'", "enum": [ "combustionEngine", "electric", "electricWithSupport", "human" ] } }, "required": [ "type", "ActuatorType.preferredLabel" ] }, "ResourceReport.location": { "type": "object", "description": "Property. Model:'https://purl.eu/ns/mobility/passenger-transport-hubs#location'. Location of the Resource. This could be a bike parking station or the real-time location of the vehicle, e.g. in free-floating part transport", "properties": { "type": { "type": "string" }, "object": { "type": "string", "format": "uri" } } }, "ResourceReport.meansOfTransport": { "type": "object", "description": "Property. Model:'https://purl.eu/ns/mobility/passenger-transport-hubs#Mobiliteitsdienst.vervoermiddel'. The type of means of transport of the Resource", "properties": { "type": { "type": "string", "enum": [ "MeansOfTransport" ] }, "MeansOfTransport.preferredLabel": { "type": "string", "description": "Property. Model: 'http://www.w3.org/2004/02/skos/core#prefLabel'. Preferred label. Enum:'airplane, bicycle, boat, bus, car, escalator, lift, motorcycle, onFoot, pedelec, scooter, skateboard, step, subway, train, tram, treadmill, truck'", "enum": [ "airplane", "bicycle", "boat", "bus", "car", "escalator", "lift", "motorcycle", "onFoot", "pedelec", "scooter", "skateboard", "step", "subway", "train", "tram", "treadmill", "truck" ] } }, "required": [ "type", "MeansOfTransport.preferredLabel" ] }, "ResourceReport.number": { "type": "integer", "description": "Property. Model:'https://purl.eu/ns/mobility/passenger-transport-hubs#number'. The number of resources" }, "ResourceReport.reportTime": { "type": "string", "format": "date-time", "description": "Property. Model:'http://purl.org/dc/elements/1.1/date'. Point in time for which the report is valid" }, "ResourceReport.service": { "type": "object", "description": "Property. Model:'https://purl.eu/ns/mobility/passenger-transport-hubs#service'. The MobilityService used within the ResourceReport", "properties": { "type": { "type": "string" }, "object": { "type": "string", "format": "uri" } } }, "ResourceReport.status": { "type": "object", "description": "Property. Model:'https://purl.eu/ns/mobility/passenger-transport-hubs#status'. State of a Resource. E.g. reserved, inactive, available. Determines whether a resource can be used", "properties": { "type": { "type": "string", "enum": [ "ResourceStatus" ] }, "ResourceStatus.preferredLabel": { "type": "string", "description": "Property. Model: 'http://www.w3.org/2004/02/skos/core#prefLabel'. Preferred label. Enum:'available, deleted, inactive, inUse, relocated, reserved, unavailable'", "enum": [ "available", "deleted", "inactive", "inUse", "relocated", "reserved", "unavailable" ] } }, "required": [ "type", "ResourceStatus.preferredLabel" ] }, "ResourceReport.type": { "type": "object", "description": "Property. Model:'http://purl.org/dc/terms/type'. Nature of the Resource", "properties": { "type": { "type": "string", "enum": [ "ResourceType" ] }, "ResourceType.preferredLabel": { "type": "string", "description": "Property. Model: 'http://www.w3.org/2004/02/skos/core#prefLabel'. Preferred label. Enum:'chargingStation, parkingSpace, room, seating, vehicle'", "enum": [ "chargingStation", "parkingSpace", "room", "seating", "vehicle" ] } }, "required": [ "type", "ResourceType.preferredLabel" ] }, "validity": { "type": "string", "description": "Property. Model:'https://schema.org/Text'. Includes the validity period for this forecast as a ISO8601 time interval. It can be also used two separate attributes: `validFrom`, `validTo`" }, "validFrom": { "type": "string", "format": "date-time", "description": "Property. Model:'https://schema.org/DateTime'. Validity period start date and time" }, "validTo": { "type": "string", "format": "date-time", "description": "Property. Model:'https://schema.org/DateTime'. Validity period end date and time" } } } ], "required": [ "id", "type", "ResourceReport.number" ] }