From ba5bdac6cbc67a4ef93835b4bf11ddd5b7be36b8 Mon Sep 17 00:00:00 2001 From: wolfez Date: Wed, 21 May 2025 14:03:33 +0200 Subject: [PATCH 1/4] datafix: update status of kerkfabriek weelde to non-active --- ...3521-update-status-kerkfabriek-weelde.sparql | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 config/migrations-triggering-indexing/2025/20250520103521-update-status-kerkfabriek-weelde.sparql diff --git a/config/migrations-triggering-indexing/2025/20250520103521-update-status-kerkfabriek-weelde.sparql b/config/migrations-triggering-indexing/2025/20250520103521-update-status-kerkfabriek-weelde.sparql new file mode 100644 index 0000000..bbb9776 --- /dev/null +++ b/config/migrations-triggering-indexing/2025/20250520103521-update-status-kerkfabriek-weelde.sparql @@ -0,0 +1,17 @@ +PREFIX regorg: + +DELETE { + GRAPH { + ?s regorg:orgStatus ?activeStatus. + } +} INSERT { + GRAPH { + ?s regorg:orgStatus ?notActiveStatus. + } +} WHERE { + VALUES ?s { + + } + BIND ( AS ?notActiveStatus) + BIND ( AS ?activeStatus) +} From addd4304f616179025f7fd56036cba8a226c18bb Mon Sep 17 00:00:00 2001 From: wolfez Date: Wed, 21 May 2025 14:04:32 +0200 Subject: [PATCH 2/4] 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 . + } + } +} From f04ebf5723020a96f50d49b47380c0b10584fc4c Mon Sep 17 00:00:00 2001 From: wolfez Date: Wed, 21 May 2025 14:04:56 +0200 Subject: [PATCH 3/4] datafix: update date of change event for islamic assocations --- ...e-date-change-event-islamic-association.sparql | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 config/migrations/2025/20250520110017-update-date-change-event-islamic-association.sparql diff --git a/config/migrations/2025/20250520110017-update-date-change-event-islamic-association.sparql b/config/migrations/2025/20250520110017-update-date-change-event-islamic-association.sparql new file mode 100644 index 0000000..a890c7f --- /dev/null +++ b/config/migrations/2025/20250520110017-update-date-change-event-islamic-association.sparql @@ -0,0 +1,15 @@ +PREFIX dct: + +DELETE { + GRAPH ?g { + dct:date ?oldDate . + } +} INSERT { + GRAPH ?g { + dct:date "2021-06-18"^^xsd:date . + } +} WHERE { + GRAPH ?g { + dct:date ?oldDate . + } +} From bde4180168498fd0e71e0ee879a45b29b3acce97 Mon Sep 17 00:00:00 2001 From: wolfez Date: Wed, 21 May 2025 14:06:35 +0200 Subject: [PATCH 4/4] update changelog --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4fadffd..c2c16ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,9 @@ + Link district werkingsgebieden to Antwerp municipality werkingsgebied + Add missing werkingsgebied for Borsbeek district - Write migration to extract from existing primary sites the province URI [OP-3597] +- datafix: update status kerkfabriek weelde [OP-3598] +- datafix: delete change event and update status protestantse kerk oostende [OP-3604] +- datafix: update change event date islamic assocation [OP-3602] ### Deploy Notes ``` drc restart migrations; drc logs -ft --tail=200 migrations @@ -20,6 +23,8 @@ drc restart delta-producer-publication-graph-maintainer drc exec delta-producer-background-jobs-initiator curl -X POST http://localhost/public/healing-jobs # or wait until nightly healing kicks in drc exec delta-producer-background-jobs-initiator curl -X POST http://localhost/organizations/healing-jobs # or wait until nightly healing kicks in drc exec db-cleanup curl -X POST "http://localhost/cleanup" + +drc restart migrations-triggering-indexing && drc logs -ft --tail=200 migrations-triggering-indexing ``` ## v1.31.3 (2025-05-08)