migrants/updates_step08/004b-dateEndFuzzy-to-label.rq
Daniel Hernandez bb78b8a758 Add step-08: merge migration reasons and refactor temporal properties
Replace tm:reason and tm:secondaryReason with a single tm:hasReason
property (937 triples). Refactor 6 flat date properties into structured
tm:uncertainBeginning/tm:uncertainEnd intervals using W3C OWL-Time,
introducing tm:FuzzyInterval as a superclass of tm:Migration,
org:Membership, tm:Relationship, tm:PersonName, and
tm:ReligionAffiliation. Output: data/graph-08.ttl (218,251 triples).
2026-03-01 17:41:50 +01:00

16 lines
528 B
SPARQL

# Add rdfs:label on the uncertainEnd interval from tm:dateEndFuzzy.
PREFIX tm: <https://daniel.degu.cl/ontologies/theatre-migrants/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX time: <http://www.w3.org/2006/time#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
INSERT {
?entity tm:uncertainEnd ?interval .
?interval rdf:type time:DateTimeInterval .
?interval rdfs:label ?label .
}
WHERE {
?entity tm:dateEndFuzzy ?label .
BIND(IRI(CONCAT(STR(?entity), "/uncertainEnd")) AS ?interval)
}