Skip to content

Commit

Permalink
updated $schema last version
Browse files Browse the repository at this point in the history
  • Loading branch information
albertoabellagarcia committed Sep 17, 2024
1 parent 91a323d commit dffc047
Showing 1 changed file with 116 additions and 116 deletions.
232 changes: 116 additions & 116 deletions GtfsTrip/schema.json
Original file line number Diff line number Diff line change
@@ -1,121 +1,121 @@
{
"$schema": "http://json-schema.org/schema#",
"$schemaVersion": "0.0.1",
"modelTags": "",
"$id": "https://smart-data-models.github.io/dataModel.UrbanMobility/GtfsTrip/schema.json",
"title": "Smart Data models. GTFS Schema - Trip",
"description": "GTFS Trip",
"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/dataModel.UrbanMobility/GtfsTrip/schema.json",
"title": "Smart Data models. GTFS Schema - Trip",
"description": "GTFS Trip",
"type": "object",
"allOf": [
{
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
},
{
"properties": {
"type": {
"type": "string",
"enum": [
"GtfsTrip"
],
"description": "Property. NGSI Entity type. It has to be GtfsTrip"
},
{
"properties": {
"type": {
"type": "string",
"enum": [
"GtfsTrip"
],
"description": "Property. NGSI Entity type. It has to be GtfsTrip"
},
"shortName": {
"type": "string",
"description": "Property. Same as GTFS `trip_short_name`. Model:'https://schema.org/Text'"
},
"headSign": {
"type": "string",
"description": "Property. Same as GTFS `trip_headsign`. Model:'https://schema.org/Text'"
},
"hasRoute": {
"type": "string",
"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. Same as `route_id`. It shall point to an Entity of type GtfsRoute. Model:'http://schema.org/URL'"
},
"hasShape": {
"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. Same as GTFS `shape_id`. It shall point to an Entity of type GtfsShape. Model:'http://schema.org/URL'"
},
"block": {
"type": "string",
"description": "Property. Same as GTFS `block_id`. Model:'https://schema.org/Text'"
},
"hasService": {
"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. Same as GTFS `service_id`. It shall point to an Entity of type GtfsService. Model:'http://schema.org/URL'"
},
"direction": {
"type": "number",
"enum": [
0,
1
],
"description": "Property. Same as GTFS `direction_id`. Model:'https://schema.org/Number'. Enum:'0, 1'"
},
"wheelChairAccessible": {
"type": "number",
"enum": [
0,
1,
2
],
"description": "Property. Same as GTFS `wheelchair_accessible`. Model:'https://schema.org/Number'. Enum:'0, 1, 2'"
},
"bikesAllowed": {
"type": "number",
"enum": [
0,
1,
2
],
"description": "Property. Same as GTFS `bikes_allowed`. Model:'https://schema.org/Number'. Enum:'0, 1, 2'. See [GTFS](https://developers.google.com/transit/gtfs/reference/#tripstxt)"
}
"shortName": {
"type": "string",
"description": "Property. Same as GTFS `trip_short_name`. Model:'https://schema.org/Text'"
},
"headSign": {
"type": "string",
"description": "Property. Same as GTFS `trip_headsign`. Model:'https://schema.org/Text'"
},
"hasRoute": {
"type": "string",
"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. Same as `route_id`. It shall point to an Entity of type GtfsRoute. Model:'http://schema.org/URL'"
},
"hasShape": {
"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. Same as GTFS `shape_id`. It shall point to an Entity of type GtfsShape. Model:'http://schema.org/URL'"
},
"block": {
"type": "string",
"description": "Property. Same as GTFS `block_id`. Model:'https://schema.org/Text'"
},
"hasService": {
"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. Same as GTFS `service_id`. It shall point to an Entity of type GtfsService. Model:'http://schema.org/URL'"
},
"direction": {
"type": "number",
"enum": [
0,
1
],
"description": "Property. Same as GTFS `direction_id`. Model:'https://schema.org/Number'. Enum:'0, 1'"
},
"wheelChairAccessible": {
"type": "number",
"enum": [
0,
1,
2
],
"description": "Property. Same as GTFS `wheelchair_accessible`. Model:'https://schema.org/Number'. Enum:'0, 1, 2'"
},
"bikesAllowed": {
"type": "number",
"enum": [
0,
1,
2
],
"description": "Property. Same as GTFS `bikes_allowed`. Model:'https://schema.org/Number'. Enum:'0, 1, 2'. See [GTFS](https://developers.google.com/transit/gtfs/reference/#tripstxt)"
}
],
"required": [
"id",
"type",
"hasRoute",
"hasService"
]
}
}
],
"required": [
"id",
"type",
"hasRoute",
"hasService"
]
}

0 comments on commit dffc047

Please sign in to comment.