https://example.org/, met betekenisvolle namen;Een IRI is een belofte: hier kan je naar verwijzen. Een blanco knoop kan niet aangesproken
worden van buiten het bestand. Een IRI die bij elke run van een script verandert, kan niet het
doel van een verwijzing zijn en breekt een versieketen. Een IRI in de namespace van een ander
(unit:EUR in QUDT) is een uitspraak die je niet mag doen: de eigenaar van de namespace bepaalt
wat erin bestaat.
@prefix sensor: <https://aquafin.be/id/sensor/> .
sensor:4c314f066bea53f212495cb8c1eaca0b a sosa:Sensor . # MD5 van het toestelnummer
ex:uurtelling-08 sosa:phenomenonTime ex:interval-uurtelling-08 . # skolem-IRI in een gescripte dataset
BIND(IRI(CONCAT("https://aquafin.be/id/sensor/", STRUUID())) AS ?sensor) # elke run anders
unit:EUR a qudt:Unit . # gemunt in de namespace van QUDT
ex:waarneming sosa:madeBySensor [ a sosa:Sensor ] . # een sensor waarnaar niemand kan verwijzen
STRUUID() → MD5 van het toestelnummer.R10 — IRI construction — uit guide/linked-data.md, kit 0.3.12
https://www.dov.vlaanderen.be/data/filter/).https://example.org/ with meaningful local names
(e.g. https://example.org/<domain>/…). Not example.com.time:Interval, time:Instant,
results (qudt:QuantityValue) and geo:Geometry. Derive the IRI from the parent
observation or station, e.g. ex:interval-{obs-id}, ex:instant-{obs-id}-begin,
ex:result-{obs-id}, ex:geom-{station} (a geometry may be shared per station). Blank nodes are
hard to query in SPARQL and join badly across graphs. In small hand-written examples an inline
blank node is fine.STRUUID() or UUID() per run. A random IRI changes at every run: other
resources cannot refer to it, and a version chain (dct:isVersionOf) points to a new base IRI
each time. Example: a sensor IRI …/sensor/{MD5(device id)}, which the observations can build
from the same field.unit:EUR a qudt:Unit, or a
building in the namespace of a building ontology). Use an IRI of your own or an existing term.http versus https, # versus /The identifier of a vocabulary term is exactly the IRI its publisher defines. Many sites redirect
http to https, but that does not make the https form the identifier: http://qudt.org/schema/qudt/Unit
is the term, https://qudt.org/schema/qudt/Unit is not. The same goes for a namespace ending in
# versus /. Check the prefix declaration first: one wrong @prefix breaks every term that uses
it.