migrants/updates_step08/001-merge-migration-reasons.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

25 lines
473 B
SPARQL

# Merge tm:reason and tm:secondaryReason into a single tm:hasReason property.
# tm:reason affects 774 migrations; tm:secondaryReason affects 163 migrations.
# Total tm:hasReason after merge: 937.
PREFIX tm: <https://daniel.degu.cl/ontologies/theatre-migrants/>
DELETE {
?s tm:reason ?r .
}
INSERT {
?s tm:hasReason ?r .
}
WHERE {
?s tm:reason ?r .
}
;
DELETE {
?s tm:secondaryReason ?r .
}
INSERT {
?s tm:hasReason ?r .
}
WHERE {
?s tm:secondaryReason ?r .
}