optimize for timeouts

This commit is contained in:
Nordine Bittich
2023-03-10 09:45:55 +01:00
parent dcbc032fa8
commit 4bf0f6274e
3 changed files with 41 additions and 4 deletions

View File

@@ -19,11 +19,8 @@ GRAPH <http://mu.semte.ch/graphs/worship-privacy-centric-graph> {
}
WHERE {
GRAPH <http://mu.semte.ch/graphs/privacy-centric-graph> {
?s a ?type; <http://mu.semte.ch/vocabularies/ext/person> ?person; ?p ?o.
?s a <http://mu.semte.ch/vocabularies/ext/PersonInformationUpdate>; <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/worship-service> {

View File

@@ -0,0 +1,40 @@
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/worship-privacy-centric-graph> {
?s ?p ?o
}
}
WHERE {
GRAPH <http://mu.semte.ch/graphs/privacy-centric-graph> {
?s a <http://mu.semte.ch/vocabularies/ext/PersonInformationRead>; <http://mu.semte.ch/vocabularies/ext/person> ?person; ?p ?o.
filter (
exists
{
graph <http://mu.semte.ch/graphs/worship-service> {
?mandatories <http://data.vlaanderen.be/ns/mandaat#isBestuurlijkeAliasVan> ?person.
}
}
|| exists {
graph <http://mu.semte.ch/graphs/worship-service> {
?ministers <http://www.w3.org/ns/org#heldBy> ?person.
}
})
}
}