feat: replace is-associated-with with a membership relation
This commit is contained in:
committed by
Alexander van den Berghe
parent
4b0f0c1df2
commit
7050629e0c
@@ -0,0 +1,33 @@
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
PREFIX org: <http://www.w3.org/ns/org#>
|
||||
PREFIX mu: <http://mu.semte.ch/vocabularies/core/>
|
||||
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>
|
||||
|
||||
DELETE {
|
||||
GRAPH ?g {
|
||||
?org org:linkedTo ?foundedOrg .
|
||||
}
|
||||
}
|
||||
INSERT {
|
||||
GRAPH ?g {
|
||||
?membership a org:Membership ;
|
||||
mu:uuid ?uuid ;
|
||||
org:organization ?foundedOrg ;
|
||||
org:member ?org ;
|
||||
org:role <http://data.lblod.info/id/rollen/4ec7d5c39bdc4e84b4174379b9e22ad8> . # gerelateerd
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
VALUES ?g {
|
||||
<http://mu.semte.ch/graphs/worship-service>
|
||||
<http://mu.semte.ch/graphs/administrative-unit>
|
||||
<http://mu.semte.ch/graphs/shared>
|
||||
}
|
||||
|
||||
GRAPH ?g {
|
||||
?org org:linkedTo ?foundedOrg .
|
||||
}
|
||||
|
||||
BIND(SHA1(CONCAT(STR(?org), STR(?foundedOrg), "associated with")) as ?uuid)
|
||||
BIND(IRI(CONCAT("http://data.lblod.info/id/lidmaatschap/", ?uuid)) AS ?membership)
|
||||
}
|
||||
@@ -445,12 +445,6 @@
|
||||
"target": "organizations",
|
||||
"cardinality": "many"
|
||||
},
|
||||
"is-associated-with": {
|
||||
"predicate": "org:linkedTo",
|
||||
"target": "organizations",
|
||||
"cardinality": "one",
|
||||
"inverse": true
|
||||
},
|
||||
"memberships-of-organizations": {
|
||||
"predicate": "org:member",
|
||||
"target": "memberships",
|
||||
|
||||
Reference in New Issue
Block a user