- 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
15 lines
469 B
SPARQL
15 lines
469 B
SPARQL
# For PersonProfession instances with an enumeratedProfession,
|
|
# add a direct schema:hasOccupation link from the person to the occupation.
|
|
# Affects 3 PersonProfession instances.
|
|
|
|
PREFIX tm: <https://daniel.degu.cl/ontologies/theatre-migrants/>
|
|
PREFIX schema: <https://schema.org/>
|
|
|
|
INSERT {
|
|
?person schema:hasOccupation ?occupation .
|
|
}
|
|
WHERE {
|
|
?pp a tm:PersonProfession .
|
|
?pp tm:personProfessionPerson ?person .
|
|
?pp tm:enumeratedProfession ?occupation .
|
|
}
|