From dcbc032fa897a2721bc3f0f6e460443842022699 Mon Sep 17 00:00:00 2001 From: Nordine Bittich Date: Fri, 10 Mar 2023 09:34:17 +0100 Subject: [PATCH] split query even more --- .../20230308112615-move-privacy-data-2.sparql | 34 --------------- .../20230308112616-move-privacy-data-3.sparql | 43 +++++++++++++++++++ 2 files changed, 43 insertions(+), 34 deletions(-) create mode 100644 config/migrations/2023/20230308112616-move-privacy-data-3.sparql diff --git a/config/migrations/2023/20230308112615-move-privacy-data-2.sparql b/config/migrations/2023/20230308112615-move-privacy-data-2.sparql index fcf234f..5fb62fb 100644 --- a/config/migrations/2023/20230308112615-move-privacy-data-2.sparql +++ b/config/migrations/2023/20230308112615-move-privacy-data-2.sparql @@ -40,38 +40,4 @@ WHERE { } } -; - -DELETE { - GRAPH { - ?s ?p ?o - } -} -INSERT { -GRAPH { - ?s ?p ?o - } -} -WHERE { - GRAPH { - ?s a ?type; ?person; ?p ?o. - filter ( -(?type = || ?type = ) -&& - - exists - { - graph { - ?mandatories ?person. - } - } - - || exists { - graph { - ?ministers ?person. - } - }) - - } -} diff --git a/config/migrations/2023/20230308112616-move-privacy-data-3.sparql b/config/migrations/2023/20230308112616-move-privacy-data-3.sparql new file mode 100644 index 0000000..727170c --- /dev/null +++ b/config/migrations/2023/20230308112616-move-privacy-data-3.sparql @@ -0,0 +1,43 @@ +PREFIX xsd: +PREFIX mu: +PREFIX persoon: +PREFIX ext: +PREFIX person: +PREFIX session: +PREFIX foaf: +PREFIX besluit: + + +DELETE { + GRAPH { + ?s ?p ?o + } +} +INSERT { +GRAPH { + ?s ?p ?o + } +} +WHERE { + GRAPH { + ?s a ?type; ?person; ?p ?o. + filter ( +(?type = || ?type = ) +&& + + exists + { + graph { + ?mandatories ?person. + } + } + + || exists { + graph { + ?ministers ?person. + } + }) + + } +} +