gtfs:TripShape leaf node


URI

http://ontology.gtfs.org/reference#TripShape

Label

TripShape

Target Classes (1)

Shape Properties

Instances of gtfs:Trip can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

gtfs:Trip
gtfs:bikes_allowed xsd:integer
gtfs:block_id xsd:string
gtfs:cars_allowed xsd:integer
gtfs:direction_id xsd:integer
gtfs:route_id 1 xsd:string
gtfs:service_id 1 xsd:string
gtfs:shape_id xsd:string
gtfs:trip_headsign xsd:string
gtfs:trip_id 1 xsd:string
gtfs:trip_short_name xsd:string
gtfs:wheelchair_accessible xsd:integer

Implementation

@prefix gtfs: <http://ontology.gtfs.org/reference#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

gtfs:TripShape a sh:NodeShape ;
    sh:property [ sh:datatype xsd:string ;
            sh:minCount 1 ;
            sh:path gtfs:route_id ],
        [ sh:datatype xsd:string ;
            sh:minCount 1 ;
            sh:path gtfs:service_id ],
        [ sh:datatype xsd:string ;
            sh:minCount 1 ;
            sh:path gtfs:trip_id ],
        [ sh:datatype xsd:string ;
            sh:path gtfs:trip_headsign ],
        [ sh:datatype xsd:string ;
            sh:path gtfs:trip_short_name ],
        [ sh:datatype xsd:integer ;
            sh:in ( 0 1 ) ;
            sh:path gtfs:direction_id ],
        [ sh:datatype xsd:string ;
            sh:path gtfs:block_id ],
        [ sh:datatype xsd:string ;
            sh:path gtfs:shape_id ],
        [ sh:datatype xsd:integer ;
            sh:in ( 0 1 2 ) ;
            sh:path gtfs:wheelchair_accessible ],
        [ sh:datatype xsd:integer ;
            sh:in ( 0 1 2 ) ;
            sh:path gtfs:bikes_allowed ],
        [ sh:datatype xsd:integer ;
            sh:in ( 0 1 2 ) ;
            sh:path gtfs:cars_allowed ] ;
    sh:targetClass gtfs:Trip .