gtfs:TimeframeShape leaf node


URI

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

Label

TimeframeShape

Target Classes (1)

Shape Properties

Instances of gtfs:Timeframe can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

gtfs:Timeframe
gtfs:end_time xsd:string
gtfs:service_id 1 xsd:string
gtfs:start_time xsd:string
gtfs:timeframe_group_id 1 xsd:string

Implementation

@prefix gtfs: <http://ontology.gtfs.org/reference#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

gtfs:TimeframeShape a sh:NodeShape ;
    sh:property [ sh:datatype xsd:string ;
            sh:minCount 1 ;
            sh:path gtfs:timeframe_group_id ],
        [ sh:datatype xsd:string ;
            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: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:string ;
            sh:minCount 1 ;
            sh:path gtfs:service_id ] ;
    sh:targetClass gtfs:Timeframe .