Revert step-07 secondary organisation cleanup to preserve distinct semantics
The original database author clarified that org1 (org:organization) and org2 (tm:secondaryOrganisation) have different semantics: org2 represents a group/organisation within which someone did work at org1. Removing and promoting secondary organisations was losing this information. Remove the two queries (001-remove-duplicate, 002-promote-secondary) and regenerate graph-07.ttl and graph-08.ttl.
This commit is contained in:
parent
7bfb66209d
commit
a4567d2909
4 changed files with 972 additions and 545 deletions
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -1,15 +0,0 @@
|
||||||
# Remove tm:secondaryOrganisation when it equals org:organization.
|
|
||||||
# Affects 230 memberships.
|
|
||||||
|
|
||||||
PREFIX tm: <https://daniel.degu.cl/ontologies/theatre-migrants/>
|
|
||||||
PREFIX org: <http://www.w3.org/ns/org#>
|
|
||||||
|
|
||||||
DELETE {
|
|
||||||
?s tm:secondaryOrganisation ?secondary .
|
|
||||||
}
|
|
||||||
WHERE {
|
|
||||||
?s a org:Membership .
|
|
||||||
?s org:organization ?primary .
|
|
||||||
?s tm:secondaryOrganisation ?secondary .
|
|
||||||
FILTER(?primary = ?secondary)
|
|
||||||
}
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
# 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 }
|
|
||||||
}
|
|
||||||
Loading…
Reference in a new issue