migrants/updates_step07/005-remove-person-profession.rq
Daniel Hernandez b4ed3cbde7 Add step-07: clean up secondary organisations and simplify person-profession
- Remove redundant tm:secondaryOrganisation when it equals org:organization (230)
- Promote tm:secondaryOrganisation to org:organization when no primary exists (256)
- Replace tm:PersonProfession intermediate class with direct schema:hasOccupation
  links from persons to schema:Occupation instances (742 instances removed)
- Remove tm:PersonProfession class and its properties from the ontology
- Add step-07 binary, Rakefile task, figures, and documentation
2026-03-01 15:48:51 +01:00

13 lines
315 B
SPARQL

# Remove all tm:PersonProfession instances and their triples.
# These have been replaced by direct schema:hasOccupation links.
# Affects 742 PersonProfession instances.
PREFIX tm: <https://daniel.degu.cl/ontologies/theatre-migrants/>
DELETE {
?pp ?p ?o .
}
WHERE {
?pp a tm:PersonProfession .
?pp ?p ?o .
}