From 04a749020eda58e056cab654a004f498e32ecf29 Mon Sep 17 00:00:00 2001 From: mirdono Date: Fri, 15 Mar 2024 17:31:57 +0100 Subject: [PATCH] feat: change merged PZ's status to not active --- ...-add-fusion-event-pz-aalter-maldegem.sparql | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/config/migrations/2024/20240315104123-add-fusion-event-pz-aalter-maldegem.sparql b/config/migrations/2024/20240315104123-add-fusion-event-pz-aalter-maldegem.sparql index 8431ca5..f820de3 100644 --- a/config/migrations/2024/20240315104123-add-fusion-event-pz-aalter-maldegem.sparql +++ b/config/migrations/2024/20240315104123-add-fusion-event-pz-aalter-maldegem.sparql @@ -4,7 +4,9 @@ PREFIX ch: PREFIX lblodOrg: PREFIX ext: PREFIX mu: +PREFIX regorg: +# Add fusion change event INSERT { GRAPH { ?changeEvent a org:ChangeEvent ; @@ -53,3 +55,19 @@ INSERT { BIND(SHA256(CONCAT(STR(?originalAalter), STR(?originalMaldegem), STR(?resultingOrganization), "fusieChangeEventActiveResult")) AS ?uuidChangeEventActiveResult) . BIND(IRI(CONCAT("http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/", STR(?uuidChangeEventActiveResult))) AS ?changeEventActiveResult) . } +; +# Set merged PZs to not active +DELETE { + GRAPH { + ?s regorg:orgStatus # Active + } +} INSERT { + GRAPH { + ?s regorg:orgStatus # Not active + } +} WHERE { + VALUES ?s { + # PZ Aalter + #PZ Maldegem + } +}