gtfs:FareAttributeShape leaf node


URI

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

Label

FareAttributeShape

Target Classes (1)

Shape Properties

Instances of gtfs:FareAttribute can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

gtfs:FareAttribute
gtfs:agency_id xsd:string
gtfs:currency_type 1 xsd:string
gtfs:fare_id 1 xsd:string
gtfs:payment_method 1 xsd:integer
gtfs:price 1 xsd:decimal
gtfs:transfer_duration xsd:integer
gtfs:transfers 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:FareAttributeShape a sh:NodeShape ;
    sh:property [ sh:datatype xsd:string ;
            sh:minCount 1 ;
            sh:path gtfs:fare_id ],
        [ sh:datatype xsd:decimal ;
            sh:minCount 1 ;
            sh:minInclusive 0.0 ;
            sh:path gtfs:price ],
        [ sh:datatype xsd:string ;
            sh:minCount 1 ;
            sh:path gtfs:currency_type ;
            sh:pattern "^[A-Z]{3}$" ],
        [ sh:datatype xsd:integer ;
            sh:in ( 0 1 ) ;
            sh:minCount 1 ;
            sh:path gtfs:payment_method ],
        [ sh:datatype xsd:integer ;
            sh:in ( 0 1 2 ) ;
            sh:path gtfs:transfers ],
        [ sh:datatype xsd:string ;
            sh:path gtfs:agency_id ],
        [ sh:datatype xsd:integer ;
            sh:minInclusive 0 ;
            sh:path gtfs:transfer_duration ] ;
    sh:targetClass gtfs:FareAttribute .