gtfs:FareRuleShape leaf node


URI

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

Label

FareRuleShape

Target Classes (1)

Shape Properties

Instances of gtfs:FareRule can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

gtfs:FareRule
gtfs:contains_id xsd:string
gtfs:destination_id xsd:string
gtfs:fare_id 1 xsd:string
gtfs:origin_id xsd:string
gtfs:route_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:FareRuleShape a sh:NodeShape ;
    sh:property [ sh:datatype xsd:string ;
            sh:minCount 1 ;
            sh:path gtfs:fare_id ],
        [ sh:datatype xsd:string ;
            sh:path gtfs:route_id ],
        [ sh:datatype xsd:string ;
            sh:path gtfs:origin_id ],
        [ sh:datatype xsd:string ;
            sh:path gtfs:destination_id ],
        [ sh:datatype xsd:string ;
            sh:path gtfs:contains_id ] ;
    sh:targetClass gtfs:FareRule .