# 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/iktky2jhufhge2pyeijyp4nhzpg2jzcc> a owl:Ontology ;
  rdfs:label "barcelona" .

<https://w3id.org/linkml/Any> a owl:Class ;
  rdfs:label "Any" ;
  rdfs:comment "Any value: an inlined object whose class this view does not show." .

<https://uri.etsi.org/ngsi-ld/default-context/RoadAccident> a owl:Class ;
  rdfs:label "RoadAccident" ;
  rdfs:comment "One road accident the Guàrdia Urbana handled (accidents-gu-bcn), its hour, place and the people injured or dead as counts, with its kinds, causes and the kinds of vehicle involved from the four detail tables joined by file number; nothing about a person." .

<https://uri.etsi.org/ngsi-ld/default-context/accidentCause> a owl:DatatypeProperty ;
  rdfs:label "accidentCause" ;
  rdfs:range xsd:string ;
  rdfs:comment "The causes the police file names, in Catalan: the mediate causes (accidents-causes-gu-bcn, Alcoholèmia), then the drivers' causes (accidents_causa_conductor_gu_bcn, Gir indegut o sense precaució)." .

<https://uri.etsi.org/ngsi-ld/default-context/accidentDate> a owl:DatatypeProperty ;
  rdfs:label "accidentDate" ;
  rdfs:range xsd:dateTime ;
  rdfs:comment "The hour of the accident, UTC: the police file gives the local day and hour only, so the minutes are 00." .

<https://uri.etsi.org/ngsi-ld/default-context/accidentKind> a owl:DatatypeProperty ;
  rdfs:label "accidentKind" ;
  rdfs:range xsd:string ;
  rdfs:comment "The kinds of the accident the police file names, in Catalan as the city writes them (Col.lisió lateral, Abast, Atropellament), from accidents-tipus-gu-bcn." .

<https://uri.etsi.org/ngsi-ld/default-context/accidentType> a owl:DatatypeProperty ;
  rdfs:label "accidentType" ;
  rdfs:range xsd:string ;
  rdfs:comment "The Smart Data Model codes of accidentKind where a code means the same: 1 frontal, 2 frontal-lateral, 3 side collision, 4 collision (Abast, Abast multiple, Encalç), 5 pedestrian hit, 8 impact with an obstacle (Xoc contra element estàtic); a kind with no such code has none." .

<https://uri.etsi.org/ngsi-ld/default-context/address> a owl:ObjectProperty ;
  rdfs:label "address" ;
  rdfs:range <https://w3id.org/linkml/Any> ;
  rdfs:comment "Where the station, the well, the event, the facility, the charging point or the street furniture is, as the city publishes it, field by field (Smart Data Models' common PostalAddress); a field the source leaves out is absent." .

<https://uri.etsi.org/ngsi-ld/default-context/areaServed> a owl:DatatypeProperty ;
  rdfs:label "areaServed" ;
  rdfs:range xsd:string ;
  rdfs:comment "Where the entity is as the city names it: the barri of a station, a well or a tourist flat, the place of a work (a street and number, a square, a park)." .

<https://uri.etsi.org/ngsi-ld/default-context/dataProvider> a owl:DatatypeProperty ;
  rdfs:label "dataProvider" ;
  rdfs:range xsd:string ;
  rdfs:comment "Who publishes the data the entity was read from, with the credit its licence asks for." .

<https://uri.etsi.org/ngsi-ld/default-context/deadCount> a owl:DatatypeProperty ;
  rdfs:label "deadCount" ;
  rdfs:range xsd:integer ;
  rdfs:comment "The people dead, as the police file counts them (morts)." .

<https://uri.etsi.org/ngsi-ld/default-context/localId> a owl:DatatypeProperty ;
  rdfs:label "localId" ;
  rdfs:range xsd:string ;
  rdfs:comment "The source's own identifier of the record: a bike lane's segment code in the city's map layer (GL4683814), an accident's police file number (2025S000001)." .

<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/numPassengersDead> a owl:DatatypeProperty ;
  rdfs:label "numPassengersDead" ;
  rdfs:range xsd:integer ;
  rdfs:comment "The passengers dead, a count from accidents-persones-gu-bcn." .

<https://uri.etsi.org/ngsi-ld/default-context/numPassengersInjured> a owl:DatatypeProperty ;
  rdfs:label "numPassengersInjured" ;
  rdfs:range xsd:integer ;
  rdfs:comment "The passengers injured and alive, a count from accidents-persones-gu-bcn." .

<https://uri.etsi.org/ngsi-ld/default-context/numPedestrianDead> a owl:DatatypeProperty ;
  rdfs:label "numPedestrianDead" ;
  rdfs:range xsd:integer ;
  rdfs:comment "The pedestrians dead, a count from accidents-persones-gu-bcn." .

<https://uri.etsi.org/ngsi-ld/default-context/numPedestrianInjured> a owl:DatatypeProperty ;
  rdfs:label "numPedestrianInjured" ;
  rdfs:range xsd:integer ;
  rdfs:comment "The pedestrians injured and alive, a count from accidents-persones-gu-bcn." .

<https://uri.etsi.org/ngsi-ld/default-context/pedestrianCause> a owl:DatatypeProperty ;
  rdfs:label "pedestrianCause" ;
  rdfs:range xsd:string ;
  rdfs:comment "The pedestrian's cause the police file names, in Catalan (Creuar per fora pas de vianants)." .

<https://uri.etsi.org/ngsi-ld/default-context/pedestriansInvolved> a owl:DatatypeProperty ;
  rdfs:label "pedestriansInvolved" ;
  rdfs:range xsd:boolean ;
  rdfs:comment "True when the police file names a pedestrian's cause; absent otherwise, since the file does not say whether an accident without one involved a pedestrian." .

<https://uri.etsi.org/ngsi-ld/default-context/seriouslyInjured> a owl:DatatypeProperty ;
  rdfs:label "seriouslyInjured" ;
  rdfs:range xsd:integer ;
  rdfs:comment "The people seriously injured (lesionats greus)." .

<https://uri.etsi.org/ngsi-ld/default-context/slightlyInjured> a owl:DatatypeProperty ;
  rdfs:label "slightlyInjured" ;
  rdfs:range xsd:integer ;
  rdfs:comment "The people slightly injured (lesionats lleus)." .

<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/status> a owl:DatatypeProperty ;
  rdfs:label "status" ;
  rdfs:range xsd:string ;
  rdfs:comment "The state of the charging point from its ports: working while one is free, full when none is free and one charges, outOfService when every port is out of order, unavailable or unknown." .

<https://uri.etsi.org/ngsi-ld/default-context/totalInjured> a owl:DatatypeProperty ;
  rdfs:label "totalInjured" ;
  rdfs:range xsd:integer ;
  rdfs:comment "The people injured and alive, slightly and seriously, as the police file counts them." .

<https://uri.etsi.org/ngsi-ld/default-context/vehicleCount> a owl:DatatypeProperty ;
  rdfs:label "vehicleCount" ;
  rdfs:range xsd:integer ;
  rdfs:comment "The vehicles the accident involved." .

<https://uri.etsi.org/ngsi-ld/default-context/vehicleKind> a owl:DatatypeProperty ;
  rdfs:label "vehicleKind" ;
  rdfs:range xsd:string ;
  rdfs:comment "The kind of each vehicle involved, once a vehicle, in Catalan as the city writes it (Turisme, Motocicleta), from accidents-vehicles-gu-bcn; no make, model, colour or licence." .

<https://uri.etsi.org/ngsi-ld/default-context/vehiclesInvolved> a owl:DatatypeProperty ;
  rdfs:label "vehiclesInvolved" ;
  rdfs:range xsd:string ;
  rdfs:comment "The Smart Data Model code of each vehicleKind where a code means the same (1 bicycle, 3 bus, 4 minibus, 5 car, 7 tram, 11 lorry, 12 moped, 14 motorcycle, 18 van, 20 construction or maintenance vehicle); a personal mobility vehicle, an ambulance or an unreported kind has none." .
