gtfs:ShapeShape leaf node


URI

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

Label

ShapeShape

Target Classes (1)

Shape Properties

Instances of gtfs:Shape can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

gtfs:Shape
gtfs:shape_dist_traveled xsd:decimal
gtfs:shape_id 1 xsd:string
gtfs:shape_pt_lat 1 xsd:decimal
gtfs:shape_pt_lon 1 xsd:decimal
gtfs:shape_pt_sequence 1 xsd:nonNegativeInteger

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:ShapeShape a sh:NodeShape ;
    sh:property [ sh:datatype xsd:string ;
            sh:minCount 1 ;
            sh:path gtfs:shape_id ],
        [ sh:datatype xsd:decimal ;
            sh:maxInclusive 90.0 ;
            sh:minCount 1 ;
            sh:minInclusive -90.0 ;
            sh:path gtfs:shape_pt_lat ],
        [ sh:datatype xsd:decimal ;
            sh:maxInclusive 180.0 ;
            sh:minCount 1 ;
            sh:minInclusive -180.0 ;
            sh:path gtfs:shape_pt_lon ],
        [ sh:datatype xsd:nonNegativeInteger ;
            sh:minCount 1 ;
            sh:path gtfs:shape_pt_sequence ],
        [ sh:datatype xsd:decimal ;
            sh:minInclusive 0.0 ;
            sh:path gtfs:shape_dist_traveled ] ;
    sh:targetClass gtfs:Shape .