gtfs:FareLegRuleShape leaf node


URI

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

Label

FareLegRuleShape

Target Classes (1)

Shape Properties

Instances of gtfs:FareLegRule can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

gtfs:FareLegRule
gtfs:fare_product_id 1 xsd:string
gtfs:from_area_id xsd:string
gtfs:from_timeframe_group_id xsd:string
gtfs:leg_group_id xsd:string
gtfs:network_id xsd:string
gtfs:to_area_id xsd:string
gtfs:to_timeframe_group_id 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:FareLegRuleShape a sh:NodeShape ;
    sh:property [ sh:datatype xsd:string ;
            sh:path gtfs:leg_group_id ],
        [ sh:datatype xsd:string ;
            sh:path gtfs:network_id ],
        [ sh:datatype xsd:string ;
            sh:path gtfs:from_area_id ],
        [ sh:datatype xsd:string ;
            sh:path gtfs:to_area_id ],
        [ sh:datatype xsd:string ;
            sh:path gtfs:from_timeframe_group_id ],
        [ sh:datatype xsd:string ;
            sh:path gtfs:to_timeframe_group_id ],
        [ sh:datatype xsd:string ;
            sh:minCount 1 ;
            sh:path gtfs:fare_product_id ] ;
    sh:targetClass gtfs:FareLegRule .