gtfs:FrequencyShape leaf node


URI

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

Label

FrequencyShape

Target Classes (1)

Shape Properties

Instances of gtfs:Frequency can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

gtfs:Frequency
gtfs:end_time 1 xsd:string
gtfs:exact_times xsd:integer
gtfs:headway_secs 1 xsd:integer
gtfs:start_time 1 xsd:string
gtfs:trip_id 1 xsd:string

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:FrequencyShape a sh:NodeShape ;
    sh:property [ sh:datatype xsd:string ;
            sh:minCount 1 ;
            sh:path gtfs:trip_id ],
        [ sh:datatype xsd:string ;
            sh:minCount 1 ;
            sh:path gtfs:start_time ;
            sh:pattern "^([0-9]?[0-9]|[0-9][0-9][0-9]):[0-5][0-9]:[0-5][0-9]$" ],
        [ sh:datatype xsd:string ;
            sh:minCount 1 ;
            sh:path gtfs:end_time ;
            sh:pattern "^([0-9]?[0-9]|[0-9][0-9][0-9]):[0-5][0-9]:[0-5][0-9]$" ],
        [ sh:datatype xsd:integer ;
            sh:minCount 1 ;
            sh:minInclusive 0 ;
            sh:path gtfs:headway_secs ],
        [ sh:datatype xsd:integer ;
            sh:in ( 0 1 ) ;
            sh:path gtfs:exact_times ] ;
    sh:targetClass gtfs:Frequency .