split query even more
This commit is contained in:
@@ -40,38 +40,4 @@ WHERE {
|
||||
}
|
||||
}
|
||||
|
||||
;
|
||||
|
||||
DELETE {
|
||||
GRAPH <http://mu.semte.ch/graphs/privacy-centric-graph> {
|
||||
?s ?p ?o
|
||||
}
|
||||
}
|
||||
INSERT {
|
||||
GRAPH <http://mu.semte.ch/graphs/administrative-unit-privacy-centric-graph> {
|
||||
?s ?p ?o
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
GRAPH <http://mu.semte.ch/graphs/privacy-centric-graph> {
|
||||
?s a ?type; <http://mu.semte.ch/vocabularies/ext/person> ?person; ?p ?o.
|
||||
filter (
|
||||
(?type = <http://mu.semte.ch/vocabularies/ext/PersonInformationUpdate> || ?type = <http://mu.semte.ch/vocabularies/ext/PersonInformationRead>)
|
||||
&&
|
||||
|
||||
exists
|
||||
{
|
||||
graph <http://mu.semte.ch/graphs/administrative-unit> {
|
||||
?mandatories <http://data.vlaanderen.be/ns/mandaat#isBestuurlijkeAliasVan> ?person.
|
||||
}
|
||||
}
|
||||
|
||||
|| exists {
|
||||
graph <http://mu.semte.ch/graphs/administrative-unit> {
|
||||
?ministers <http://www.w3.org/ns/org#heldBy> ?person.
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
|
||||
PREFIX mu: <http://mu.semte.ch/vocabularies/core/>
|
||||
PREFIX persoon: <https://data.vlaanderen.be/ns/persoon#>
|
||||
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>
|
||||
PREFIX person: <http://www.w3.org/ns/person#>
|
||||
PREFIX session: <http://mu.semte.ch/vocabularies/session/>
|
||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||
PREFIX besluit: <http://data.vlaanderen.be/ns/besluit#>
|
||||
|
||||
|
||||
DELETE {
|
||||
GRAPH <http://mu.semte.ch/graphs/privacy-centric-graph> {
|
||||
?s ?p ?o
|
||||
}
|
||||
}
|
||||
INSERT {
|
||||
GRAPH <http://mu.semte.ch/graphs/administrative-unit-privacy-centric-graph> {
|
||||
?s ?p ?o
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
GRAPH <http://mu.semte.ch/graphs/privacy-centric-graph> {
|
||||
?s a ?type; <http://mu.semte.ch/vocabularies/ext/person> ?person; ?p ?o.
|
||||
filter (
|
||||
(?type = <http://mu.semte.ch/vocabularies/ext/PersonInformationUpdate> || ?type = <http://mu.semte.ch/vocabularies/ext/PersonInformationRead>)
|
||||
&&
|
||||
|
||||
exists
|
||||
{
|
||||
graph <http://mu.semte.ch/graphs/administrative-unit> {
|
||||
?mandatories <http://data.vlaanderen.be/ns/mandaat#isBestuurlijkeAliasVan> ?person.
|
||||
}
|
||||
}
|
||||
|
||||
|| exists {
|
||||
graph <http://mu.semte.ch/graphs/administrative-unit> {
|
||||
?ministers <http://www.w3.org/ns/org#heldBy> ?person.
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user