-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6a08a67
commit a60ae12
Showing
1 changed file
with
75 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,80 @@ | ||
{ | ||
"$schema": "http://json-schema.org/schema#", | ||
"$schemaVersion": "0.0.1", | ||
"modelTags": "", | ||
"$id": "https://smart-data-models.github.io/data-models/specs/UrbanMobility/GtfsRoute/schema.json", | ||
"title": "Smart Data Models. GTFS Schema - Route", | ||
"description": "GTFS Route", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$schemaVersion": "0.0.1", | ||
"modelTags": "", | ||
"$id": "https://smart-data-models.github.io/data-models/specs/UrbanMobility/GtfsRoute/schema.json", | ||
"title": "Smart Data Models. GTFS Schema - Route", | ||
"description": "GTFS Route", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" | ||
}, | ||
{ | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"GtfsRoute" | ||
], | ||
"description": "Property. NGSI Entity type. It has to be GtfsRoute" | ||
}, | ||
{ | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"GtfsRoute" | ||
], | ||
"description": "Property. NGSI Entity type. It has to be GtfsRoute" | ||
}, | ||
"page": { | ||
"$ref": "https://smart-data-models.github.io/dataModel.UrbanMobility/gtfs-schema.json#/definitions/GTFS-Stop-Commons/properties/page" | ||
}, | ||
"routeColor": { | ||
"type": "string", | ||
"description": "Property. Same as GTFS `route_color`. Model:'https://schema.org/Text'. See [GTFS](https://developers.google.com/transit/gtfs/reference/#routestxt)" | ||
}, | ||
"routeTextColor": { | ||
"type": "string", | ||
"description": "Property. Same as GTFS `route_text_color`. Model:'https://schema.org/Text'. See [GTFS](https://developers.google.com/transit/gtfs/reference/#routestxt)" | ||
}, | ||
"routeType": { | ||
"type": "string", | ||
"enum": [ | ||
"0", | ||
"1", | ||
"2", | ||
"3", | ||
"4", | ||
"5", | ||
"6", | ||
"7" | ||
], | ||
"description": "Property. Same as GTFS `route_type`. Model:'https://schema.org/Text'. allowed values those allowed for `route_type` as prescribed by [GTFS](https://developers.google.com/transit/gtfs/reference/#routestxt). Enum:'0, 1, 2, 3, 4, 5, 6, 7'" | ||
}, | ||
"routeSortOrder": { | ||
"type": "integer", | ||
"minimum": 0, | ||
"description": "Property. Same as GTFS `route_sort_order`. Model:'https://schema.org/Number'" | ||
}, | ||
"operatedBy": { | ||
"anyOf": [ | ||
{ | ||
"type": "string", | ||
"minLength": 1, | ||
"maxLength": 256, | ||
"pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$", | ||
"description": "Property. Identifier format of any NGSI entity" | ||
}, | ||
{ | ||
"type": "string", | ||
"format": "uri", | ||
"description": "Property. Identifier format of any NGSI entity" | ||
} | ||
], | ||
"description": "Relationship. Agency that operates this route. Model:'https://schema.org/Text'. It shall point to an Entity of Type GtfsAgency" | ||
}, | ||
"shortName": { | ||
"type": "string", | ||
"description": "Property. Same as GTFS `route_short_name`. Model:'https://schema.org/Text'" | ||
} | ||
"page": { | ||
"$ref": "https://smart-data-models.github.io/dataModel.UrbanMobility/gtfs-schema.json#/definitions/GTFS-Stop-Commons/properties/page" | ||
}, | ||
"routeColor": { | ||
"type": "string", | ||
"description": "Property. Same as GTFS `route_color`. Model:'https://schema.org/Text'. See [GTFS](https://developers.google.com/transit/gtfs/reference/#routestxt)" | ||
}, | ||
"routeTextColor": { | ||
"type": "string", | ||
"description": "Property. Same as GTFS `route_text_color`. Model:'https://schema.org/Text'. See [GTFS](https://developers.google.com/transit/gtfs/reference/#routestxt)" | ||
}, | ||
"routeType": { | ||
"type": "string", | ||
"enum": [ | ||
"0", | ||
"1", | ||
"2", | ||
"3", | ||
"4", | ||
"5", | ||
"6", | ||
"7" | ||
], | ||
"description": "Property. Same as GTFS `route_type`. Model:'https://schema.org/Text'. allowed values those allowed for `route_type` as prescribed by [GTFS](https://developers.google.com/transit/gtfs/reference/#routestxt). Enum:'0, 1, 2, 3, 4, 5, 6, 7'" | ||
}, | ||
"routeSortOrder": { | ||
"type": "integer", | ||
"minimum": 0, | ||
"description": "Property. Same as GTFS `route_sort_order`. Model:'https://schema.org/Number'" | ||
}, | ||
"operatedBy": { | ||
"anyOf": [ | ||
{ | ||
"type": "string", | ||
"minLength": 1, | ||
"maxLength": 256, | ||
"pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$", | ||
"description": "Property. Identifier format of any NGSI entity" | ||
}, | ||
{ | ||
"type": "string", | ||
"format": "uri", | ||
"description": "Property. Identifier format of any NGSI entity" | ||
} | ||
], | ||
"description": "Relationship. Agency that operates this route. Model:'https://schema.org/Text'. It shall point to an Entity of Type GtfsAgency" | ||
}, | ||
"shortName": { | ||
"type": "string", | ||
"description": "Property. Same as GTFS `route_short_name`. Model:'https://schema.org/Text'" | ||
} | ||
], | ||
"required": [ | ||
"id", | ||
"type" | ||
] | ||
} | ||
} | ||
], | ||
"required": [ | ||
"id", | ||
"type" | ||
] | ||
} |