- 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
18 lines
475 B
SPARQL
18 lines
475 B
SPARQL
# When a membership has tm:secondaryOrganisation but no org:organization,
|
|
# promote the secondary to primary.
|
|
# Affects 256 memberships.
|
|
|
|
PREFIX tm: <https://daniel.degu.cl/ontologies/theatre-migrants/>
|
|
PREFIX org: <http://www.w3.org/ns/org#>
|
|
|
|
DELETE {
|
|
?s tm:secondaryOrganisation ?secondary .
|
|
}
|
|
INSERT {
|
|
?s org:organization ?secondary .
|
|
}
|
|
WHERE {
|
|
?s a org:Membership .
|
|
?s tm:secondaryOrganisation ?secondary .
|
|
FILTER NOT EXISTS { ?s org:organization ?primary }
|
|
}
|