{ "$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.0.1", "$id": "https://smart-data-models.github.io/dataModel.Transportation/Road/schema.json", "title": " - Transportation / Road", "description": "This entity contains a harmonised geographic and contextual description of a road.", "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" }, { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/PhysicalObject-Commons" }, { "properties": { "type": { "type": "string", "enum": [ "Road" ], "description": "Property. NGSI Entity type. It has to be Road" }, "roadClass": { "type": "string", "description": "Property. The classification of this road. Model:'https://schema.org/Text'. Enum:'motorway, primary, residential, secondary, service, tertiary, trunk, unclassified'. Allowed values: Those described by [OpenStreetMap](http://wiki.openstreetmap.org/wiki/Key:highway).", "enum": [ "motorway", "primary", "residential", "secondary", "service", "tertiary", "trunk", "unclassified" ] }, "refRoadSegment": { "type": "array", "description": "Property. Road segments which define this road. Model:'https://schema.org/URL'. Relationship. List of references to entities of type RoadSegment", "items": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType" } }, "length": { "type": "number", "minimum": 0, "description": "Property. Total length of this road in kilometers. Model:'https://schema.org/length'. Units:'Kilometer (Km)'" }, "responsible": { "type": "string", "description": "Property. Responsible for the road i.e. the organism or company in charge of its maintenance. Model:'https://schema.org/Text'." } }, "required": [ "id", "name", "type", "roadClass" ] } ] }