{ "$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.0.1", "$id": "https://smart-data-models.github.io/dataModel.Aeronautics/Flight/schema.json", "title": "Smart Data models - Flight schema", "description": "A description of a generic flight", "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": [ "Flight" ], "description": "Property. NGSI Entity type. It has to be Flight" }, "flightNumber": { "type": "string", "pattern": "^[A-Z0-9]{1,}$", "description": "Property. Model:'http://schema.org/Text'. Flight identifier without information of airline" }, "flightNumberIATA": { "type": "string", "pattern": "^[A-Z0-9]{3,}$", "description": "Property. Model:'http://schema.org/Text'. IATA flight identifier" }, "flightNumberICAO": { "type": "string", "pattern": "^[A-Z]{3}[A-Z0-9]{1,}$", "description": "Property. Model:'http://schema.org/Text'. ICAO flight identifier" }, "flightType": { "type": "string", "enum": [ "S", "N", "G", "M", "X" ], "description": "Property. Model:'http://schema.org/Text'. Flight type described as ICAO doc 4444 Appendix 2. Enum:'S, N, G, M, X'" }, "state": { "type": "string", "enum": [ "scheduled", "active", "unknown", "redirected", "landed", "diverted", "cancelled" ], "description": "Property. Model:'http://schema.org/Text'. Current state of the flight. Enum:'scheduled, active, unknown, redirected, landed, diverted, cancelled'" }, "passengerCount": { "type": "integer", "minimum": 0, "description": "Property. Model:'http://schema.org/Integer'. Number of flight passengers" }, "dateDeparture": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Departure date of the flight" }, "dateArrival": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Arrival date of the flight" }, "dateSOBT": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Scheduled Off-Block Time" }, "dateEOBT": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Estimated Off-Block Time" }, "dateTOBT": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Target Off-Block Time" }, "dateTSAT": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Target Start Up Approval Time" }, "dateCOBT": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Calculated Off-Block Time" }, "dateAOBT": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Actual Off-Block Time" }, "dateEXOT": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Estimated Taxi-Out Time" }, "dateAXOT": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Actual Taxi-Out Time" }, "dateSTOT": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Scheduled Take-Off Time" }, "dateETOT": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Estimated Take-Off Time" }, "dateTTOT": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Target Take-Off Time" }, "dateCTOT": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Calculated Take-Off Time" }, "dateATOT": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Actual Take-Off Time" }, "dateETO": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Estimated Time Over" }, "dateCTO": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Calculated Time Over" }, "dateATO": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Actual Time Over" }, "dateSLDT": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Scheduled Landing Time" }, "dateELDT": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Estimated Landing Time" }, "dateTLDT": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Target Landing Time" }, "dateCLDT": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Calculated Landing Time" }, "dateALDT": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Actual Landing Time" }, "dateEXIT": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Estimated Taxi-In Time" }, "dateAXIT": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Actual Taxi-In Time" }, "dateSIBT": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Scheduled In-Block Time" }, "dateEIBT": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Estimated In-Block Time" }, "dateTIBT": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Target In-Block Time" }, "dateCIBT": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Calculated In-Block Time" }, "dateAIBT": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Actual In-Block Time" }, "hasAircraft": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$" }, { "type": "string", "format": "uri" } ], "description": "Relationship. Reference to the aircraft entity" }, "hasAircraftModel": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$" }, { "type": "string", "format": "uri" } ], "description": "Relationship. Reference to the aircraft model entity" }, "departsFromAirport": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$" }, { "type": "string", "format": "uri" } ], "description": "Relationship. Reference to the departure airport entity" }, "arrivesToAirport": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$" }, { "type": "string", "format": "uri" } ], "description": "Relationship. Reference to the arrival airport entity" }, "belongsToAirline": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$" }, { "type": "string", "format": "uri" } ], "description": "Relationship. Reference to the airline entity" } } } ], "required": [ "id", "type" ] }