# 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://hel.fi/models/helsinki/helsinki/views/ajaezssvx3bwqgejgepmq4ig3frgan4e> a owl:Ontology ;
  rdfs:label "helsinki" .

<https://uri.etsi.org/ngsi-ld/default-context/Alert> a owl:Class ;
  rdfs:label "Alert" ;
  rdfs:comment "One road work or traffic announcement of Fintraffic in the capital region, or one service alert of HSL with the lines and stops it affects." .

<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/GtfsAgency> a owl:Class ;
  rdfs:label "GtfsAgency" ;
  rdfs:comment "The transit agency HSL's GTFS feed names, HSL itself." .

<https://uri.etsi.org/ngsi-ld/default-context/GtfsRoute> a owl:Class ;
  rdfs:label "GtfsRoute" ;
  rdfs:comment "One HSL line as GTFS gives it, both directions and every variant: its number, its name, what runs it and who operates it. Its stops in order are PublicTransportRoute's." .

<https://uri.etsi.org/ngsi-ld/default-context/GtfsShape> a owl:Class ;
  rdfs:label "GtfsShape" ;
  rdfs:comment "The line one HSL route variant draws on the map, about 200 of its points, and the distance travelled at each." .

<https://uri.etsi.org/ngsi-ld/default-context/GtfsStation> a owl:Class ;
  rdfs:label "GtfsStation" ;
  rdfs:comment "One HSL station (GTFS location type 1), where it is and the platforms it gathers." .

<https://uri.etsi.org/ngsi-ld/default-context/GtfsStop> a owl:Class ;
  rdfs:label "GtfsStop" ;
  rdfs:comment "One HSL stop or station platform, where it is, its sign's code and its fare zone." .

<https://uri.etsi.org/ngsi-ld/default-context/OffStreetParking> a owl:Class ;
  rdfs:label "OffStreetParking" ;
  rdfs:comment "One park and ride site of the HSL area from Fintraffic's LIIPI register, where it is, what it holds, whether it is open, the free spaces when it reports them, and its station." .

<https://uri.etsi.org/ngsi-ld/default-context/PublicTransportRoute> a owl:Class ;
  rdfs:label "PublicTransportRoute" ;
  rdfs:comment "One HSL line in one direction: its number, where it runs to, its stops in order and the line through them. A line with several variants has one entity per variant. The Smart Data Model's generic public transport route; GtfsRoute is the line without a direction." .

<https://uri.etsi.org/ngsi-ld/default-context/Vehicle> a owl:Class ;
  rdfs:label "Vehicle" ;
  rdfs:comment "One HSL bus, tram, metro, train or ferry in service, where it is, how fast it moves and how late it runs." .

<https://uri.etsi.org/ngsi-ld/default-context/address> a owl:ObjectProperty ;
  rdfs:label "address" ;
  rdfs:range <https://w3id.org/linkml/Any> ;
  rdfs:comment "The postal address as the source publishes it, field by field (Smart Data Models' common PostalAddress); a field the source leaves out is absent, never guessed from a line of text." .

<https://uri.etsi.org/ngsi-ld/default-context/agencyName> a owl:DatatypeProperty ;
  rdfs:label "agencyName" ;
  rdfs:range xsd:string ;
  rdfs:comment "The transit agency's full name." .

<https://uri.etsi.org/ngsi-ld/default-context/alertSource> a owl:DatatypeProperty ;
  rdfs:label "alertSource" ;
  rdfs:range xsd:string ;
  rdfs:comment "Who raised the alert, Fintraffic or HSL." .

<https://uri.etsi.org/ngsi-ld/default-context/allowedVehicleType> a owl:DatatypeProperty ;
  rdfs:label "allowedVehicleType" ;
  rdfs:range xsd:string ;
  rdfs:comment "What may park, the site's own kind first (car or bicycle), then motorcycle where it has spaces for them." .

<https://uri.etsi.org/ngsi-ld/default-context/availableSpotNumber> a owl:DatatypeProperty ;
  rdfs:label "availableSpotNumber" ;
  rdfs:range xsd:integer ;
  rdfs:comment "Free spaces at the park and ride site when it last reported, LIIPI's spacesAvailable." .

<https://uri.etsi.org/ngsi-ld/default-context/capacityByType> a owl:DatatypeProperty ;
  rdfs:label "capacityByType" ;
  rdfs:range xsd:string ;
  rdfs:comment "The built capacity per kind of space, as LIIPI names them in lower case (car, disabled, bicycle, electricCar, motorcycle, bicycleSecureSpace), each a count." .

<https://uri.etsi.org/ngsi-ld/default-context/category> a owl:DatatypeProperty ;
  rdfs:label "category" ;
  rdfs:range xsd:string ;
  rdfs:comment "The alert's domain; traffic for everything Fintraffic and HSL publish." .

<https://uri.etsi.org/ngsi-ld/default-context/cause> a owl:DatatypeProperty ;
  rdfs:label "cause" ;
  rdfs:range xsd:string ;
  rdfs:comment "Why an HSL service alert is in force, as GTFS-RT names it, such as CONSTRUCTION or MAINTENANCE." .

<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, as an application credits it beside the licence (CC BY 4.0 for every feed of this space)." .

<https://uri.etsi.org/ngsi-ld/default-context/dateIssued> a owl:DatatypeProperty ;
  rdfs:label "dateIssued" ;
  rdfs:range xsd:dateTime ;
  rdfs:comment "When the situation was published." .

<https://uri.etsi.org/ngsi-ld/default-context/delay> a owl:DatatypeProperty ;
  rdfs:label "delay" ;
  rdfs:range xsd:integer ;
  rdfs:comment "Seconds behind the timetable, negative when ahead (HSL's dl with the sign turned)." .

<https://uri.etsi.org/ngsi-ld/default-context/departures> a owl:DatatypeProperty ;
  rdfs:label "departures" ;
  rdfs:range xsd:string ;
  rdfs:comment "The next departures from the stop, at most five, soonest first, each an object with the line (`route`, the GtfsRoute's id, and `routeId`), its `directionId`, the `expected` time and its `status` (scheduled, skipped or canceled), and `delay` in seconds with the `scheduled` time it implies when HSL sends one. Set every 30 s for a curated set of stops from HSL's GTFS-RT trip updates; empty after five minutes without a feed." .

<http://purl.org/dc/terms/description> a owl:DatatypeProperty ;
  rdfs:label "description" ;
  rdfs:range xsd:string ;
  rdfs:comment "A short description, per language." .

<https://uri.etsi.org/ngsi-ld/default-context/directionId> a owl:DatatypeProperty ;
  rdfs:label "directionId" ;
  rdfs:range xsd:integer ;
  rdfs:comment "HSL's direction of the line, 1 or 2." .

<https://uri.etsi.org/ngsi-ld/default-context/distanceTravelled> a owl:DatatypeProperty ;
  rdfs:label "distanceTravelled" ;
  rdfs:range xsd:float ;
  rdfs:comment "The distance along the shape at each point of its line, in kilometres." .

<https://uri.etsi.org/ngsi-ld/default-context/effect> a owl:DatatypeProperty ;
  rdfs:label "effect" ;
  rdfs:range xsd:string ;
  rdfs:comment "What an HSL service alert does to the service, as GTFS-RT names it, such as DETOUR or REDUCED_SERVICE." .

<https://uri.etsi.org/ngsi-ld/default-context/fareZone> a owl:DatatypeProperty ;
  rdfs:label "fareZone" ;
  rdfs:range xsd:string ;
  rdfs:comment "The HSL fare zone the stop or the sales point lies in, A to D; none for a place beyond HSL's zones." .

<https://uri.etsi.org/ngsi-ld/default-context/fleetVehicleId> a owl:DatatypeProperty ;
  rdfs:label "fleetVehicleId" ;
  rdfs:range xsd:string ;
  rdfs:comment "The operator and vehicle number HSL publishes, operator-vehicle." .

<https://uri.etsi.org/ngsi-ld/default-context/hasParentStation> a owl:ObjectProperty ;
  rdfs:label "hasParentStation" ;
  rdfs:range <https://uri.etsi.org/ngsi-ld/default-context/GtfsStation> ;
  owl:inverseOf <https://uri.etsi.org/ngsi-ld/default-context/hasStop> ;
  rdfs:comment "The station the stop or platform belongs to; absent for a stop on its own." .

<https://uri.etsi.org/ngsi-ld/default-context/hasStop> a owl:ObjectProperty ;
  rdfs:label "hasStop" ;
  rdfs:range <https://uri.etsi.org/ngsi-ld/default-context/GtfsStop> ;
  owl:inverseOf <https://uri.etsi.org/ngsi-ld/default-context/hasParentStation> ;
  rdfs:comment "The platforms of the station, computed from their hasParentStation and never stored." .

<https://uri.etsi.org/ngsi-ld/default-context/heading> a owl:DatatypeProperty ;
  rdfs:label "heading" ;
  rdfs:range xsd:float ;
  rdfs:comment "Compass heading of the vehicle, degrees clockwise from north." .

<https://uri.etsi.org/ngsi-ld/default-context/headsign> a owl:DatatypeProperty ;
  rdfs:label "headsign" ;
  rdfs:range xsd:string ;
  rdfs:comment "Where the line runs to in this direction, as its sign shows it." .

<https://uri.etsi.org/ngsi-ld/default-context/language> a owl:DatatypeProperty ;
  rdfs:label "language" ;
  rdfs:range xsd:string ;
  rdfs:comment "The agency's main language, a two-letter code." .

<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, per language." .

<https://uri.etsi.org/ngsi-ld/default-context/nearbyParking> a owl:ObjectProperty ;
  rdfs:label "nearbyParking" ;
  rdfs:range <https://uri.etsi.org/ngsi-ld/default-context/OffStreetParking> ;
  owl:inverseOf <https://uri.etsi.org/ngsi-ld/default-context/refNearestStation> ;
  rdfs:comment "The park and ride sites whose nearest station this is, computed from their refNearestStation and never stored." .

<https://uri.etsi.org/ngsi-ld/default-context/nextStop> a owl:DatatypeProperty ;
  rdfs:label "nextStop" ;
  rdfs:range xsd:anyURI ;
  rdfs:comment "The stop the vehicle stands at or comes to next, the URN of a GtfsStop of this space; HSL moves it on at each departure from or passing of a stop." .

<https://uri.etsi.org/ngsi-ld/default-context/occupancy> a owl:DatatypeProperty ;
  rdfs:label "occupancy" ;
  rdfs:range xsd:integer ;
  rdfs:comment "How full the vehicle is, in percent; HSL sends 0 (room) or 100 (full)." .

<https://uri.etsi.org/ngsi-ld/default-context/onRoute> a owl:DatatypeProperty ;
  rdfs:label "onRoute" ;
  rdfs:range xsd:anyURI ;
  rdfs:comment "The line the vehicle is running, the URN of a GtfsRoute of this space." .

<https://uri.etsi.org/ngsi-ld/default-context/operatedBy> a owl:ObjectProperty ;
  rdfs:label "operatedBy" ;
  rdfs:range <https://uri.etsi.org/ngsi-ld/default-context/GtfsAgency> ;
  owl:inverseOf <https://uri.etsi.org/ngsi-ld/default-context/routes> ;
  rdfs:comment "The agency that runs the line." .

<https://uri.etsi.org/ngsi-ld/default-context/page> a owl:DatatypeProperty ;
  rdfs:label "page" ;
  rdfs:range xsd:anyURI ;
  rdfs:comment "The publisher's web page about it." .

<https://uri.etsi.org/ngsi-ld/default-context/phone> a owl:DatatypeProperty ;
  rdfs:label "phone" ;
  rdfs:range xsd:string ;
  rdfs:comment "The agency's public customer service number." .

<https://uri.etsi.org/ngsi-ld/default-context/refNearestStation> a owl:ObjectProperty ;
  rdfs:label "refNearestStation" ;
  rdfs:range <https://uri.etsi.org/ngsi-ld/default-context/GtfsStation> ;
  owl:inverseOf <https://uri.etsi.org/ngsi-ld/default-context/nearbyParking> ;
  rdfs:comment "The HSL station within 500 m of the park and ride site, the nearest one, a GtfsStation of this space." .

<https://uri.etsi.org/ngsi-ld/default-context/refRoute> a owl:ObjectProperty ;
  rdfs:label "refRoute" ;
  rdfs:range <https://uri.etsi.org/ngsi-ld/default-context/GtfsRoute> ;
  owl:inverseOf <https://uri.etsi.org/ngsi-ld/default-context/routeAlerts> ;
  rdfs:comment "The lines an HSL service alert affects, each a GtfsRoute of this space." .

<https://uri.etsi.org/ngsi-ld/default-context/refStop> a owl:ObjectProperty ;
  rdfs:label "refStop" ;
  rdfs:range <https://uri.etsi.org/ngsi-ld/default-context/GtfsStop> ;
  owl:inverseOf <https://uri.etsi.org/ngsi-ld/default-context/stopAlerts> ;
  rdfs:comment "The stops an HSL service alert affects, each a GtfsStop of this space." .

<https://uri.etsi.org/ngsi-ld/default-context/route> a owl:DatatypeProperty ;
  rdfs:label "route" ;
  rdfs:range xsd:string ;
  rdfs:comment "The HSL route id the vehicle is serving, as GTFS names it (2550, 1009, 31M1, 3001K)." .

<https://uri.etsi.org/ngsi-ld/default-context/routeAlerts> a owl:ObjectProperty ;
  rdfs:label "routeAlerts" ;
  rdfs:range <https://uri.etsi.org/ngsi-ld/default-context/Alert> ;
  owl:inverseOf <https://uri.etsi.org/ngsi-ld/default-context/refRoute> ;
  rdfs:comment "The HSL service alerts on the line, computed from their refRoute and never stored." .

<https://uri.etsi.org/ngsi-ld/default-context/routeShortName> a owl:DatatypeProperty ;
  rdfs:label "routeShortName" ;
  rdfs:range xsd:string ;
  rdfs:comment "The line number riders see, such as 4 or 550." .

<https://uri.etsi.org/ngsi-ld/default-context/routeType> a owl:DatatypeProperty ;
  rdfs:label "routeType" ;
  rdfs:range xsd:string ;
  rdfs:comment "GTFS's basic route type: 0 a tram, 1 the metro, 2 a train, 3 a bus, 4 a ferry. HSL's extended codes (109, 700s, 900) are written as the basic one they extend." .

<https://uri.etsi.org/ngsi-ld/default-context/routes> a owl:ObjectProperty ;
  rdfs:label "routes" ;
  rdfs:range <https://uri.etsi.org/ngsi-ld/default-context/GtfsRoute> ;
  owl:inverseOf <https://uri.etsi.org/ngsi-ld/default-context/operatedBy> ;
  rdfs:comment "The lines the agency operates, computed from their operatedBy and never stored." .

<https://uri.etsi.org/ngsi-ld/default-context/severity> a owl:DatatypeProperty ;
  rdfs:label "severity" ;
  rdfs:range xsd:string ;
  rdfs:comment "How much the alert matters, informational, medium or high (GTFS-RT INFO, WARNING, SEVERE)." .

<https://uri.etsi.org/ngsi-ld/default-context/shortName> a owl:DatatypeProperty ;
  rdfs:label "shortName" ;
  rdfs:range xsd:string ;
  rdfs:comment "The line number riders see, such as 4 or 550." .

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

<https://uri.etsi.org/ngsi-ld/default-context/speed> a owl:DatatypeProperty ;
  rdfs:label "speed" ;
  rdfs:range xsd:float ;
  rdfs:comment "Ground speed of the vehicle." .

<https://uri.etsi.org/ngsi-ld/default-context/status> a owl:DatatypeProperty ;
  rdfs:label "status" ;
  rdfs:range xsd:string ;
  rdfs:comment "A bike station's working while it rents and takes returns, otherwise outOfService; a park and ride site's open, closed or closedAbnormal (Fintraffic LIIPI's IN_OPERATION, INACTIVE or TEMPORARILY_CLOSED, EXCEPTIONAL_SITUATION)." .

<https://uri.etsi.org/ngsi-ld/default-context/stopAlerts> a owl:ObjectProperty ;
  rdfs:label "stopAlerts" ;
  rdfs:range <https://uri.etsi.org/ngsi-ld/default-context/Alert> ;
  owl:inverseOf <https://uri.etsi.org/ngsi-ld/default-context/refStop> ;
  rdfs:comment "The HSL service alerts on the stop, computed from their refStop and never stored." .

<https://uri.etsi.org/ngsi-ld/default-context/stopCode> a owl:DatatypeProperty ;
  rdfs:label "stopCode" ;
  rdfs:range xsd:string ;
  rdfs:comment "The code on the stop's sign, such as H2014; empty for a stop HSL gives none." .

<https://uri.etsi.org/ngsi-ld/default-context/stopSequence> a owl:DatatypeProperty ;
  rdfs:label "stopSequence" ;
  rdfs:range xsd:string ;
  rdfs:comment "The stops the line serves in this direction, in order, each the GTFS stop id that ends the id of a GtfsStop of this space." .

<https://uri.etsi.org/ngsi-ld/default-context/subCategory> a owl:DatatypeProperty ;
  rdfs:label "subCategory" ;
  rdfs:range xsd:string ;
  rdfs:comment "The Smart Data Models code of the alert, roadWorks for a Fintraffic road work. Left out where no code fits: a Fintraffic traffic announcement and an HSL service alert." .

<https://uri.etsi.org/ngsi-ld/default-context/timezone> a owl:DatatypeProperty ;
  rdfs:label "timezone" ;
  rdfs:range xsd:string ;
  rdfs:comment "The agency's time zone, an IANA name such as Europe/Helsinki." .

<https://uri.etsi.org/ngsi-ld/default-context/totalSpotNumber> a owl:DatatypeProperty ;
  rdfs:label "totalSpotNumber" ;
  rdfs:range xsd:integer ;
  rdfs:comment "The number of vehicles the site holds, as the publisher states or estimates it; for a park and ride site, of its own kind (car or bicycle)." .

<https://uri.etsi.org/ngsi-ld/default-context/transportMode> a owl:DatatypeProperty ;
  rdfs:label "transportMode" ;
  rdfs:range xsd:string ;
  rdfs:comment "What serves the stop or runs the line." .

<https://uri.etsi.org/ngsi-ld/default-context/transportationType> a owl:DatatypeProperty ;
  rdfs:label "transportationType" ;
  rdfs:range xsd:integer ;
  rdfs:comment "What runs the line as its GTFS route type (0 tram, 1 metro, 2 train, 3 bus, 4 ferry), the number the Smart Data Model requires beside the word `transportMode` gives." .

<https://uri.etsi.org/ngsi-ld/default-context/unknownReference> a owl:DatatypeProperty ;
  rdfs:label "unknownReference" ;
  rdfs:range xsd:string ;
  rdfs:comment "What an HSL service alert names that this space holds no entity for, as `route:<id>` or `stop:<id>`, kept as text rather than as a relationship that would point at nothing." .

<https://uri.etsi.org/ngsi-ld/default-context/validFrom> a owl:DatatypeProperty ;
  rdfs:label "validFrom" ;
  rdfs:range xsd:dateTime ;
  rdfs:comment "When the situation starts; for a preschool admission area, the first day of its school year." .

<https://uri.etsi.org/ngsi-ld/default-context/validTo> a owl:DatatypeProperty ;
  rdfs:label "validTo" ;
  rdfs:range xsd:dateTime ;
  rdfs:comment "When the situation ends; absent while open-ended. For a preschool admission area, the last day of its school year." .

<https://uri.etsi.org/ngsi-ld/default-context/vehicleType> a owl:DatatypeProperty ;
  rdfs:label "vehicleType" ;
  rdfs:range xsd:string ;
  rdfs:comment "The Smart Data Models kind of vehicle - bus, tram, passengerVessel for a ferry, other for metro and train; transportMode names HSL's mode." .

<https://uri.etsi.org/ngsi-ld/default-context/wheelChairAccessible> a owl:DatatypeProperty ;
  rdfs:label "wheelChairAccessible" ;
  rdfs:range xsd:string ;
  rdfs:comment "Whether a wheelchair can board here, GTFS's wheelchair_boarding; 0 unknown, 1 possible, 2 not possible." .
