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. + } +}