PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX st: <http://semweb.mmlab.be/ns/stoptimes#>
PREFIX linkml: <https://w3id.org/linkml/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX schema: <http://schema.org/>
PREFIX sh: <http://www.w3.org/ns/shacl#>
PREFIX vann: <http://purl.org/vocab/vann/>

st:Ontology a owl:Ontology ;
  rdfs:label "The Stop Times ontology"@en ;
  rdfs:comment "This ontology provides the predicates necessary to describe an arrival of a transit vehicle and its departure at a certain Stop."@en ;
  dcterms:contributor <http://pieter.pm/#me> ;
  schema:inLanguage "en" ;
  vann:preferredNamespacePrefix "st" ;
  vann:preferredNamespaceUri "http://semweb.mmlab.be/ns/stoptimes#"^^xsd:anyURI ;
  sh:declare [
    sh:prefix "st" ;
    sh:namespace "http://semweb.mmlab.be/ns/stoptimes#"^^xsd:anyURI
  ] , [
    sh:prefix "linkml" ;
    sh:namespace "https://w3id.org/linkml/"^^xsd:anyURI
  ] , [
    sh:prefix "xsd" ;
    sh:namespace "http://www.w3.org/2001/XMLSchema#"^^xsd:anyURI
  ] , [
    sh:prefix "foaf" ;
    sh:namespace "http://xmlns.com/foaf/0.1/"^^xsd:anyURI
  ] .

st:Arrival a owl:Class ;
  rdfs:label "Arrival"@en ;
  rdfs:comment "A location and a time where a vehicle stops for the purpose of unloading people or things"@en .

st:StopTime a owl:Class ;
  rdfs:label "Stop Time"@en ;
  rdfs:comment "A location and a time where a vehicle stops for the purpose of loading and/or unloading people or things"@en ;
  rdfs:subClassOf [
    a owl:Restriction ;
    owl:onProperty st:nextStopTime ;
    owl:allValuesFrom st:StopTime
  ] .

st:Departure a owl:Class ;
  rdfs:label "Arrival"@en ;
  rdfs:comment "A location and a departure time where a vehicle departs where people or things can be loaded"@en .

foaf:Document a owl:Class .

st:departureDelay a owl:DatatypeProperty ;
  rdfs:label "Departure Delay"@en ;
  rdfs:comment "The time in seconds in which the st:departureTime differs from the scheduled departure time"@en ;
  rdfs:range xsd:duration .

st:arrivalDelay a owl:DatatypeProperty ;
  rdfs:label "Arrival Delay"@en ;
  rdfs:comment "The time in seconds in which the st:arrivalTime differs from the scheduled arrival time"@en ;
  rdfs:range xsd:duration .

st:avgStopTimes a owl:DatatypeProperty ;
  rdfs:label "Average Stop Times"@en ;
  rdfs:comment "The average st:StopTimes per day"@en ;
  rdfs:range xsd:double .

st:nextStopTime a owl:ObjectProperty ;
  rdfs:label "Next Stop Time"@en ;
  rdfs:comment "The next stop time on this vehicle's trajectory."@en ;
  rdfs:range st:StopTime ;
  rdfs:domain st:StopTime .

dcterms:contributor a owl:AnnotationProperty .

schema:inLanguage a owl:AnnotationProperty .

vann:preferredNamespacePrefix a owl:AnnotationProperty .

vann:preferredNamespaceUri a owl:AnnotationProperty .

sh:declare a owl:AnnotationProperty .

sh:prefix a owl:AnnotationProperty .

sh:namespace a owl:AnnotationProperty .

xsd:duration a rdfs:Datatype .
