From addd4304f616179025f7fd56036cba8a226c18bb Mon Sep 17 00:00:00 2001 From: wolfez Date: Wed, 21 May 2025 14:04:32 +0200 Subject: [PATCH] datafix: delete change event and update status to active for protestantse kerk oostende --- ...e-status-protestantse-kerk-oostende.sparql | 17 ++++++++++ ...105233-delete-change-event-oostende.sparql | 32 +++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 config/migrations-triggering-indexing/2025/20250520110719-update-status-protestantse-kerk-oostende.sparql create mode 100644 config/migrations/2025/20250520105233-delete-change-event-oostende.sparql diff --git a/config/migrations-triggering-indexing/2025/20250520110719-update-status-protestantse-kerk-oostende.sparql b/config/migrations-triggering-indexing/2025/20250520110719-update-status-protestantse-kerk-oostende.sparql new file mode 100644 index 0000000..ca45a5c --- /dev/null +++ b/config/migrations-triggering-indexing/2025/20250520110719-update-status-protestantse-kerk-oostende.sparql @@ -0,0 +1,17 @@ +PREFIX regorg: + +DELETE { + GRAPH { + ?s regorg:orgStatus ?notActiveStatus. + } +} INSERT { + GRAPH { + ?s regorg:orgStatus ?activeStatus. + } +} WHERE { + VALUES ?s { + + } + BIND ( AS ?notActiveStatus) + BIND ( AS ?activeStatus) +} diff --git a/config/migrations/2025/20250520105233-delete-change-event-oostende.sparql b/config/migrations/2025/20250520105233-delete-change-event-oostende.sparql new file mode 100644 index 0000000..7d52829 --- /dev/null +++ b/config/migrations/2025/20250520105233-delete-change-event-oostende.sparql @@ -0,0 +1,32 @@ +PREFIX core: +PREFIX org: +PREFIX lblodorg: +PREFIX euro: +PREFIX besluit: + +DELETE { + GRAPH { + ?event ?ep ?eo . + + ?result ?rp ?ro . + + ?decision ?de ?do . + } +} +WHERE { + GRAPH { + ?event a org:ChangeEvent ; + core:uuid "6824418BD4DB18EC8BA95940" ; + lblodorg:veranderingsgebeurtenisResultaat ?result ; + ?ep ?eo . + + ?result a lblodorg:VeranderingsgebeurtenisResultaat ; + ?rp ?ro . + + OPTIONAL { + ?event euro:hasFormalFramework ?decision . + ?decision a besluit:Besluit ; + ?de ?do . + } + } +}