gtfs:FareTransferRuleShape leaf node


URI

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

Label

FareTransferRuleShape

Target Classes (1)

Shape Properties

Instances of gtfs:FareTransferRule can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

gtfs:FareTransferRule
gtfs:duration_limit xsd:integer
gtfs:duration_limit_type xsd:integer
gtfs:fare_product_id xsd:string
gtfs:fare_transfer_type 1 xsd:integer
gtfs:from_leg_group_id xsd:string
gtfs:to_leg_group_id xsd:string
gtfs:transfer_count 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:FareTransferRuleShape a sh:NodeShape ;
    sh:property [ sh:datatype xsd:string ;
            sh:path gtfs:from_leg_group_id ],
        [ sh:datatype xsd:string ;
            sh:path gtfs:to_leg_group_id ],
        [ sh:datatype xsd:integer ;
            sh:minInclusive -1 ;
            sh:path gtfs:transfer_count ],
        [ sh:datatype xsd:integer ;
            sh:minInclusive 0 ;
            sh:path gtfs:duration_limit ],
        [ sh:datatype xsd:integer ;
            sh:in ( 0 1 2 3 ) ;
            sh:path gtfs:duration_limit_type ],
        [ sh:datatype xsd:integer ;
            sh:in ( 0 1 2 ) ;
            sh:minCount 1 ;
            sh:path gtfs:fare_transfer_type ],
        [ sh:datatype xsd:string ;
            sh:path gtfs:fare_product_id ] ;
    sh:targetClass gtfs:FareTransferRule .