{ "$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.4.0", "modelTags": "", "$id": "https://smart-data-models.github.io/dataModel.Transportation/CityWork/schema.json", "title": "Smart Data Models - Transportation / CityWork schema", "description": "The Data Model is a contextual description of urban works carried out on a road axis and which can impact individual (Cars, motorcycle, bicycles, .\u2026) or common transport (Tram, Bus, subway). It contains a geographic representation making it possible to locate its work from a specific JSON Object and at a more global level (Road segment, Road, District, ...) in order to assess the potential impacts on the circulation. A GeoJSON object may represent a region of space (a Geometry), a spatially-bounded entity (a Feature), or a list of features (a Feature Collection). refer to the document [geojson](https://tools.ietf.org/pdf/draft-ietf-geojson-03.pdf) for more information about the modeling and the possible value.", "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": [ "CityWork" ], "description": "Property. NGSI Entity type. It has to be CityWork" }, "territorialArea": { "type": "string", "description": "Property. Territorial area. Level higher to the attribute 'areaServed'. A list of Free Text. Model:'https://schema.org/Text'" }, "dateLastReported": { "type": "string", "format": "date-time", "description": "Property. A timestamp which denotes the last time when the device successfully reported data. The date and time of this observation in ISO8601 UTCformat. Model:'https://schema.org/DateTime'" }, "workNumber": { "type": "string", "description": "Property. Number assigned to the work. Model:'https://schema.org/Text'" }, "workState": { "type": "string", "description": "Property. Number assigned to the work. Enum:'all, approved, authorized, canceled, completed, decreeToBeSigned, draft, editedDecrees, instructionInProgress, investigated, nonCompliantOccupation, open, pendingAuthorization, pendingCancellation, planningCompleted, pendingDocument, pendingExtension, pendingPlanning, planned, received, reject, supported, validatedInPlanning'. Model:'https://schema.org/Text'", "enum": [ "all", "approved", "authorized", "canceled", "completed", "decreeToBeSigned", "draft", "editedDecrees", "instructionInProgress", "investigated", "nonCompliantOccupation", "open", "other", "pendingAuthorization", "pendingCancellation", "planningCompleted", "pendingDocument", "pendingExtension", "pendingPlanning", "planned", "received", "reject", "supported", "validatedInPlanning" ] }, "workDate": { "type": "string", "description": "Property. Date and time (Day or period) of the works. It can be represented by an specific time string. Model:'https://schema.org/DateTime'" }, "startDate": { "type": "string", "format": "date-time", "description": "Property. Start date and time of the works in an ISO8601 UTC format. The attribute can be used in addition to the `workDate` attribute when it corresponds to a time interval to be highlighted. Model:'https://schema.org/DateTime'" }, "endDate": { "type": "string", "format": "date-time", "description": "Property. End date and time of the works in an ISO8601 UTC format. The attribute can be used in addition to the `workDate` attribute when it corresponds to a time interval to be highlighted. Model:'https://schema.org/DateTime'" }, "openingHoursSpecification": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/DateTime-Commons/properties/openingHoursSpecification" }, "contractingAuthority": { "type": "string", "description": "Property. Name of the contracting authority. Model:'https://schema.org/Text'" }, "contactPoint": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Contact-Commons/properties/contactPoint" }, "decrees": { "type": "array", "description": "Property. A List of text where each element is a string with the URL to download or the name of the decree.", "items": { "type": "string" } }, "workLastDateUpdate": { "type": "string", "format": "date-time", "description": "Property. Last date for updating a contractual element of the work. Model:'https://schema.org/DateTime'" }, "mainContractingCompany": { "type": "string", "description": "Property. The Main Contracting Company responsible of the works. Model:'https://schema.org/Text'" }, "othersContractingCompany": { "type": "array", "description": "Property. A List of Text where each element is a string with the name of the contracting Companies under the responsibility of the main Contracting Company.", "items": { "type": "string" } }, "workLevel": { "type": "array", "description": "Property. Positioning of the works in relation to a ground reference system. A combination of these elements. Enum:'aerial, ground, mixed, other, roofing, surface, underground, wall'", "items": { "type": "string", "enum": [ "aerial", "ground", "mixed", "other", "roofing", "surface", "underground", "wall" ] } }, "workTarget": { "type": "array", "description": "Property. Categories of works regarding the different profession. A combination of these elements. Enum:'bicyclePath, busCorridor, catainers, cityMotorBike, cityBike, cityCar, cityScooter, coldAndAirCon, coldGroup, copperCable, CoringPenetrometry, drinkingWater, electricityNetworks, exploratoryWork, fireHydrants, frameRoof, gasNetworks, generator, historicalMonuments, infrastructure, landscapedArea, movingHoistNacelleTruck, networks, offStreetParking, opticalFibers, other, overheadLine, papersCollection, pavement, publicDecorativeLighting, publicDomain, publicTransport, railway, rainyWaters, riprap, rMTNetworks, roads, roadsAndPublicDomain, sanitation, scaffolding, sideWalk, speedReductionDevices, streetParking, surfaceOccupation, supportStructures, tagsAndPosters, telecomNetworks, telecom-RMT-VideoNetworks, trafficSignalingRegulation, tramway, urbanFurniture, urbanHeating, variousWorks, videoNetworks, vrd'", "items": { "type": "string", "enum": [ "bicyclePath", "busCorridor", "catainers", "cityMotorBike", "cityBike", "cityCar", "cityScooter", "coldAndAirCon", "coldGroup", "copperCable", "CoringPenetrometry", "drinkingWater", "electricityNetworks", "exploratoryWork", "fireHydrants", "frameRoof", "gasNetworks", "generator", "historicalMonuments", "infrastructure", "landscapedArea", "movingHoistNacelleTruck", "networks", "offStreetParking", "opticalFibers", "other", "overheadLine", "papersCollection", "pavement", "publicDecorativeLighting", "publicDomain", "publicTransport", "railway", "rainyWaters", "riprap", "rMTNetworks", "roads", "roadsAndPublicDomain", "sanitation", "scaffolding", "sideWalk", "speedReductionDevices", "streetParking", "surfaceOccupation", "supportStructures", "tagsAndPosters", "telecomNetworks", "telecom-RMT-VideoNetworks", "trafficSignalingRegulation", "tramway", "urbanFurniture", "urbanHeating", "variousWorks", "videoNetworks", "vrd" ] } }, "workNature": { "type": "array", "description": "Property. Nature of the works. A combination of these values.Enum:'additionalInvestigations, brushCutting, cleaning, collection, connection, consolidation, construction, control, counting, craneLifting, creation, demolition, drivingSwitch, experimentation, extension, filmShooting, Installation-OR-layout, investigation, landFill, maintenance, manholeOpening, ManholeOpeningToRestoreService, miscellaneousInstallation, miscellaneousWorks, mowingDeburring, other, overheadLinesWorksIntervention, pruning, pulling, refurbishment, rehabilitation, reinforcement, renewal, renovation, repair, replacement, riprap, roadSign, safetyAndComplianceWork, safetyRailsInstallation, securingPerimeter, siteInstallation, staking, supportImplantation, surfaceOccupationAuthorization, survey, tarring, tonnageExemption, treeCutting, trenchOpening, upgrading'", "items": { "type": "string", "enum": [ "additionalInvestigations", "brushCutting", "cleaning", "collection", "connection", "consolidation", "construction", "control", "counting", "craneLifting", "creation", "demolition", "drivingSwitch", "experimentation", "extension", "filmShooting", "Installation-OR-layout", "investigation", "landFill", "maintenance", "manholeOpening", "ManholeOpeningToRestoreService", "miscellaneousInstallation", "miscellaneousWorks", "mowingDeburring", "other", "overheadLinesWorksIntervention", "pruning", "pulling", "refurbishment", "rehabilitation", "reinforcement", "renewal", "renovation", "repair", "replacement", "riprap", "roadSign", "safetyAndComplianceWork", "safetyRailsInstallation", "securingPerimeter", "siteInstallation", "staking", "supportImplantation", "surfaceOccupationAuthorization", "survey", "tarring", "tonnageExemption", "treeCutting", "trenchOpening", "upgrading" ] } }, "infrastructureFunction": { "type": "array", "description": "Property. Function of the infrastructure impacted by the works. Model:'https://schema.org/Text'. Enum:'collection, distribution, other, transportation'", "items": { "type": "string", "enum": [ "collection", "distribution", "other", "transportation" ] } }, "encroachment": { "type": "array", "description": "Property. Impact of the works on public, private area. A combination of these values. Model:'https://schema.org/Text'. Enum:'other, private, public'", "items": { "type": "string", "enum": [ "other", "private", "public" ] } }, "typeOfInterventionRequest": { "type": "string", "description": "Property. Initial type of request to do the works. Model:'https://schema.org/Text'. Enum:'authorizationRequest, interventionNotice, other, urgentWorks'. Model:'https://schema.org/Text'", "enum": [ "authorizationRequest", "interventionNotice", "other", "urgentWorks" ] }, "workReason": { "type": "array", "description": "Property. Reasons of the works in case of urgent intervention. A combination of these values. Enum:'collapse, derailment, fire, flood, gasLeak, landslide, other, powerCut, rockfall, sagging, waterLeak'", "items": { "type": "string", "enum": [ "collapse", "derailment", "fire", "flood", "gasLeak", "landslide", "other", "powerCut", "rockfall", "sagging", "waterLeak" ] } }, "workZone": { "type": "array", "description": "Property. Zone of Works. A combination of these values. Enum:' airport, beach, bicyclePath, bridge, busCorridor, dock, floodArea, harbor, heliport, mountainousArea, offRoad, other, parking, parksGardens, path, protectArea, railwayLine, riskArea, river, road, rockyArea, sevesoArea, sideWalk, subwayLine, tramwayLine, tunnel'", "items": { "type": "string", "enum": [ "airport", "beach", "bicyclePath", "bridge", "busCorridor", "dock", "floodArea", "harbor", "heliport", "mountainousArea", "offRoad", "other", "parking", "parksGardens", "path", "protectArea", "railwayLine", "riskArea", "river", "road", "rockyArea", "sevesoArea", "sideWalk", "subwayLine", "tramwayLine", "tunnel" ] } }, "workDisposition": { "type": "array", "description": "Property. Specific rules taken for the works. A structured value from 0 to N occurrences where each items has the following format : `Disposition`: with sub properties `startDate`, `endDate`, `dayOfWeek`, `comment`. Enum:'alternatingLights , bicyclePathClosure, bicyclePathDeviation, bicyclePathReduction, circulationManualControl, laneClosure, laneDeviation, laneReduction, noRestriction, parkingForbidden, parkingModification, sidewalkClosure, sidewalkClosureOrReduction, sidewalkReduction, speedReduction'", "items": { "type": "object", "properties": { "disposition": { "type": "string", "enum": [ "alternatingLights", "bicyclePathClosure", "bicyclePathDeviation", "bicyclePathReduction", "circulationManualControl", "laneClosure", "laneDeviation", "laneReduction", "noRestriction", "parkingForbidden", "parkingModification", "sidewalkClosure", "sidewalkClosureOrReduction", "sidewalkReduction", "speedReduction", "workOtherImpact" ] }, "startDate": { "type": "string", "format": "date-time" }, "endDate": { "type": "string", "format": "date-time" }, "dayOfWeek": { "type": "array", "items": { "type": "string", "enum": [ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday", "PublicHolidays" ] } }, "comment": { "type": "string" } } } }, "workOtherImpact": { "type": "array", "description": "Property. Other impact. A list of free values. Model:'https://schema.org/Text'", "items": { "type": "string" } }, "isMobile": { "type": "boolean", "description": "Property. Characteristic on the mobility of the works : false for Fixed (default) and true for Mobile. Model:'https://schema.org/Boolean'" }, "countOfDerogation": { "type": "number", "description": "Property. Count of derogations granted to the work Number. Model:'https://schema.org/number'" }, "derogation": { "type": "array", "description": "Property. Derogation granted for carrying out work on days and times. A structured value from 0 to N occurrences where each items has the following format `derogationType` : with sub properties 'startDate, endDate, dayOfWeek, comment'", "items": { "type": "object", "properties": { "derogationType": { "type": "string" }, "startDate": { "type": "string", "format": "date-time" }, "endDate": { "type": "string", "format": "date-time" }, "dayOfWeek": { "type": "array", "items": { "type": "string", "enum": [ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday", "PublicHolidays" ] } }, "comment": { "type": "string" } } } }, "isMainRoadImpactedHTR": { "type": "boolean", "description": "Property. Value to indicate whether the main traffic road is impacted. Default false. https://schema.org/Boolean" }, "countOfRoadImpacted": { "type": "number", "description": "Property. Count of roads impacted by the works. Model:'https://schema.org/Number'" }, "roadImpacted": { "type": "array", "description": "Property. Roads impacted by the works and the details of the roads concerned by the work. A structured value from 0 to N occurrences where each items is a string in the format : 'roadImpact':[List of Segment Impacted or Free Text or geo-property, separated by a comma]. If `isMainRoadImpactedHTR` = true, The first item is this one.", "items": { "type": "object", "properties": { "roadId": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType" }, "roadName": { "type": "string", "description": "Property. Road Name" }, "roadLocation": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons/properties/location" }, "segmentId": { "type": "array", "items": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons/properties/location" } }, "segmentLocation": { "type": "array", "items": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons/properties/location" }, "description": "Property. Segment Location. A GeoProperty." }, "segmentName": { "type": "array", "description": "Property. Segment Name.", "items": { "type": "string" } } } } }, "roadImpactedMT": { "type": "array", "description": "Property. A list of roads defined as Major Traffic, impacted by the works. Values are also included in the roadImpacted attribute.", "items": { "type": "string" } }, "roadImpactedSA": { "type": "array", "description": "Property. A list of roads defined as sensitive areas, impacted by the works. Values are also included in the roadImpacted attribute.", "items": { "type": "string" } }, "allowedVehicle": { "type": "array", "description": "Property. Type of vehicle authorized to circulate. A combination of these values. Enum:'all Vehicle, bicycle, bus, car, companiesTrucks, emergencyVehicle, firefighters, lorry, motorcycle, police, subway, sweepingMachine, trailer, tramway, trucks, van'", "items": { "type": "string", "enum": [ "allVehicle", "bicycle", "bus", "car", "companiesTrucks", "emergencyVehicle", "firefighters", "lorry", "motorcycle", "police", "subway", "sweepingMachine", "trailer", "tramway", "trucks", "van" ] } }, "maxAuthorizedTonnage": { "type": "array", "description": "Property. Roads impacted by the works with Maximum tonnage authorized. A structured value from 0 to N occurrences with 2 subproperties per item. First subproperties, one of 'roadId / roadName / roadLocation'. Second subproperties, 'maxTonnage'", "items": { "type": "object", "properties": { "roadImpacted": { "type": "string" }, "maxTonnage": { "type": "number", "description": "Property. Maximum tonnage authorized for the road. The unit code (text) **TNE** which represents Tonne Metric." }, "roadId": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType" }, "roadName": { "type": "string", "description": "Property. Road Name" }, "roadLocation": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons/properties/location" } } } }, "countOfBusLineImpacted": { "type": "number", "description": "Property. Count of Bus Lines impacted by the works. Model:'https://schema.org/Number'" }, "busImpacted": { "type": "array", "description": "Property. Bus lines impacted by the works. A structured value from 0 to N occurrences with 2 subproperties per item. First subproperties, one of 'lineId / lineName / lineLocation'. Second subproperties, one of 'segmentId / segmentName / segmentLocation'", "items": { "type": "object", "properties": { "lineId": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType" }, "lineName": { "type": "string" }, "lineLocation": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons/properties/location" }, "segmentId": { "type": "array", "items": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons/properties/location" } }, "segmentLocation": { "type": "array", "items": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons/properties/location" }, "description": "Property. Segment Location. A GeoProperty." }, "segmentName": { "type": "array", "description": "Property. Segment Name.", "items": { "type": "string" } } } } }, "countOfSchoolBusLineImpacted": { "type": "number", "description": "Property. Count of School Bus Lines impacted by the works. Model:'https://schema.org/Number'" }, "schoolBusImpacted": { "type": "array", "description": "Property. Scholl Bus lines impacted by the works. A structured value from 0 to N occurrences with 2 subproperties per item. First subproperties, one of 'lineId / lineName / lineLocation'. Second subproperties, one of 'segmentId / segmentName / segmentLocation'", "items": { "type": "object", "properties": { "lineId": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType" }, "lineName": { "type": "string" }, "lineLocation": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons/properties/location" }, "segmentId": { "type": "array", "items": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons/properties/location" } }, "segmentLocation": { "type": "array", "items": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons/properties/location" }, "description": "Property. Segment Location. A GeoProperty." }, "segmentName": { "type": "array", "items": { "type": "string" }, "description": "Property. Segment Name." } } } }, "countOfTramwayLineImpacted": { "type": "number", "description": "Property. Count of tramway lines impacted by the works. Model:'https://schema.org/Number'" }, "tramwayImpacted": { "type": "array", "description": "Property. Tramway Line impacted by the works. A structured value from 0 to N occurrences with 2 subproperties per item. First subproperties, one of 'lineId / lineName / lineLocation'. Second subproperties, one of 'segmentId / segmentName / segmentLocation'", "items": { "type": "object", "properties": { "lineId": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType" }, "lineName": { "type": "string", "description": "Property. Line Name." }, "lineLocation": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons/properties/location" }, "segmentId": { "type": "array", "items": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons/properties/location" } }, "segmentLocation": { "type": "array", "description": "Property. Segment Location. A GeoProperty.", "items": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons/properties/location" } }, "segmentName": { "type": "array", "items": { "type": "string" } } } } }, "countOfSubwayLineImpacted": { "type": "number", "description": "Property. Count of Subway Lines impacted by the works. Model:'https://schema.org/Number'" }, "subwayImpacted": { "type": "array", "description": "Property. Subway lines impacted by the works. A structured value from 0 to N occurrences with 2 subproperties per item. First subproperties, one of 'lineId / lineName / lineLocation'. Second subproperties, one of 'segmentId / segmentName / segmentLocation'", "items": { "type": "object", "properties": { "lineId": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType" }, "lineName": { "type": "string" }, "lineLocation": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons/properties/location" }, "segmentId": { "type": "array", "items": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons/properties/location" } }, "segmentLocation": { "type": "array", "description": "Property. Segment Location. A GeoProperty.", "items": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons/properties/location" } }, "segmentName": { "type": "array", "items": { "type": "string" } } } } }, "countOfRailwayLineImpacted": { "type": "number", "description": "Property. Count of Railway Lines impacted by the works. Model:'https://schema.org/Number'" }, "railwayImpacted": { "type": "array", "description": "Property. Rail lines impacted by the works. A structured value from 0 to N occurrences with 2 subproperties per item. First subproperties, one of 'lineId / lineName / lineLocation'. Second subproperties, one of 'segmentId / segmentName / segmentLocation'", "items": { "type": "object", "properties": { "lineId": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType" }, "lineName": { "type": "string" }, "lineLocation": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons/properties/location" }, "segmentId": { "type": "array", "items": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons/properties/location" } }, "segmentLocation": { "type": "array", "description": "Property. Segment Location. A GeoProperty.", "items": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons/properties/location" } }, "segmentName": { "type": "array", "description": "Property. Segment Name.", "items": { "type": "string" } } } } }, "countOfSchoolImpacted": { "type": "number", "description": "Property. Count of University, School, or other educational resource impacted by the works. Model:'https://schema.org/Number'" }, "schoolImpacted": { "type": "array", "description": "Property. List of free text or [GeoProperty] or a Reference to an entity [SCHOOL] if exist. ", "items": { "type": "string" } }, "countOfStationImpacted": { "type": "number", "description": "Property. Count of Railway stations impacted by the works. Model:'https://schema.org/Number'" }, "stationImpacted": { "type": "array", "description": "Property. Station Impacted by the works. A structured value from 0 to N occurrences with 2 subproperties per item. First subproperties, 'stationType'. Second subproperties, one of 'stationId / stationName / stationLocation'", "items": { "type": "object", "properties": { "stationType": { "type": "string", "description": "Property. A unique value of free text or from the urban transport Mode GFTS standard [STOP](https://developers.google.com/transit/gtfs/reference/#stopstxt). Enum:'aerialLift, bus, cableTram, ferry, funicular, monorail, rail, subway, tram, trolleybus'", "enum": [ "aerialLift", "bus", "cableTram", "ferry", "funicular", "monorail", "rail", "subway", "tram", "trolleybus" ] }, "stationId": { "type": "array", "description": "Property. List of free text or reference to the entity [TransportStation](https://github.com/smart-data-models/dataModel.Transportation/blob/master/TransportStation/doc/spec.md) if used.", "items": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType" } }, "stationName": { "type": "array", "items": { "type": "string" }, "description": "Property. Station Name." }, "stationLocation": { "type": "array", "items": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons/properties/location" }, "description": "Property. Station Location. A GeoProperty." } } } }, "countOfEventImpacted": { "type": "number", "description": "Property. Count of Events impacted by the works. Model:'https://schema.org/Number'" }, "eventsImpacted": { "type": "array", "description": "Property. List of free text or to the entity [Events](https://github.com/smart-data-models/dataModel.TourismDestinations/blob/master/Event/doc/spec.md) if exist.", "items": { "type": "string" } } } } ], "required": [ "id", "type", "location" ] }