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).
25 lines
473 B
SPARQL
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 .
|
|
}
|