From 920f78e51d9cdf50108e486113c80bdb89dc843d Mon Sep 17 00:00:00 2001 From: mirdono Date: Thu, 20 Feb 2025 18:20:51 +0100 Subject: [PATCH] chore: move status for municipalities and provinces in shared graph For new frontend functionality concerning local involvements a worship user should be able to read the status for municipalities and provinces. This migrations moves these triples to the shared graph such worship users have read access. The status for municipalities and provinces cannot be changed by users so no write access is needed. --- ...ities-and-provinces-to-shared-graph.sparql | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 config/migrations/2025/20250220171921-move-status-for-municipalities-and-provinces-to-shared-graph.sparql diff --git a/config/migrations/2025/20250220171921-move-status-for-municipalities-and-provinces-to-shared-graph.sparql b/config/migrations/2025/20250220171921-move-status-for-municipalities-and-provinces-to-shared-graph.sparql new file mode 100644 index 0000000..92813b0 --- /dev/null +++ b/config/migrations/2025/20250220171921-move-status-for-municipalities-and-provinces-to-shared-graph.sparql @@ -0,0 +1,28 @@ +PREFIX regorg: +PREFIX besluit: +PREFIX org: + +DELETE { + GRAPH { + ?organisation regorg:orgStatus ?status. + } +} INSERT { + GRAPH { + ?organisation regorg:orgStatus ?status. + } +} WHERE { + GRAPH { + ?organisation a besluit:Bestuurseenheid; + org:classification ?class. + FILTER (?class IN + ( + , # Municipality + # Province + ) + ) + } + + GRAPH { + ?organisation regorg:orgStatus ?status. + } +}