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).
16 lines
550 B
SPARQL
16 lines
550 B
SPARQL
# Add rdfs:label on the uncertainBeginning interval from tm:dateStartFuzzy.
|
|
|
|
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:uncertainBeginning ?interval .
|
|
?interval rdf:type time:DateTimeInterval .
|
|
?interval rdfs:label ?label .
|
|
}
|
|
WHERE {
|
|
?entity tm:dateStartFuzzy ?label .
|
|
BIND(IRI(CONCAT(STR(?entity), "/uncertainBeginning")) AS ?interval)
|
|
}
|