# OWL ontology, rendered from the LinkML model.
@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 owl: <http://www.w3.org/2002/07/owl#> .

<https://joinedcontext.com/models/barcelona/barcelona/views/73jd7qdgjysvov6xfhwpmnwgwomjg4fi> a owl:Ontology ;
  rdfs:label "barcelona" .

<https://uri.etsi.org/ngsi-ld/default-context/TrafficFlowObserved> a owl:Class ;
  rdfs:label "TrafficFlowObserved" ;
  rdfs:comment "One street section of the city's traffic-state network with its line, its state now and the state forecast for 15 minutes, every five minutes (Open Data BCN trams and transit-relacio-trams)." .

<https://uri.etsi.org/ngsi-ld/default-context/congested> a owl:DatatypeProperty ;
  rdfs:label "congested" ;
  rdfs:range xsd:boolean ;
  rdfs:comment "Whether the section is congested now: true for the city's states 4 (very dense) and 5 (congestion), false otherwise, as SDM reads an absent flag (no data and closed included; trafficState tells those apart)." .

<https://uri.etsi.org/ngsi-ld/default-context/dateObserved> a owl:DatatypeProperty ;
  rdfs:label "dateObserved" ;
  rdfs:range xsd:dateTime ;
  rdfs:comment "The end of the period the entity's newest readings cover, UTC: the hour of an air-quality mean, the local day of a weather station's values, the day of a well's reading, a traffic state's report, a charging point's newest port change." .

<https://uri.etsi.org/ngsi-ld/location> a owl:DatatypeProperty ;
  rdfs:label "location" ;
  rdfs:range xsd:string ;
  rdfs:comment "Where the entity is, as GeoJSON geometry." .

<https://uri.etsi.org/ngsi-ld/default-context/name> a owl:DatatypeProperty ;
  rdfs:label "name" ;
  rdfs:range xsd:string ;
  rdfs:comment "The name as the city publishes it, in Catalan (a station, an event, a facility, a street section and its stretch, a street address, a district or barri, a work)." .

<https://uri.etsi.org/ngsi-ld/default-context/source> a owl:DatatypeProperty ;
  rdfs:label "source" ;
  rdfs:range xsd:anyURI ;
  rdfs:comment "The open-data file or the Open Data BCN dataset the entity was read from." .

<https://uri.etsi.org/ngsi-ld/default-context/trafficState> a owl:DatatypeProperty ;
  rdfs:label "trafficState" ;
  rdfs:range xsd:string ;
  rdfs:comment "The city's own traffic state of the section (custom: TrafficFlowObserved has only `congested`), its code 1 to 6 named in English; Open Data BCN dataset trams." .

<https://uri.etsi.org/ngsi-ld/default-context/trafficStateForecast> a owl:DatatypeProperty ;
  rdfs:label "trafficStateForecast" ;
  rdfs:range xsd:string ;
  rdfs:comment "The state the city forecasts for the section in 15 minutes, same codes as trafficState (custom)." .

<https://uri.etsi.org/ngsi-ld/default-context/travelTime> a owl:DatatypeProperty ;
  rdfs:label "travelTime" ;
  rdfs:range xsd:integer ;
  rdfs:comment "How long a vehicle takes now to drive the route, in seconds (custom: TrafficFlowObserved has no travel time); Open Data BCN dataset itineraris, its fourth field. Absent while the city reports no reading for the route." .

<https://uri.etsi.org/ngsi-ld/default-context/usualTravelTime> a owl:DatatypeProperty ;
  rdfs:label "usualTravelTime" ;
  rdfs:range xsd:integer ;
  rdfs:comment "The time the city expects for the route now from its history of the same kind of day, in seconds (custom; itineraris, its fifth field, temps previst). travelTime above it means slower traffic than usual." .
