From b31d6c65e61f957a5e06b6dd1e0b6d55bbc205c6 Mon Sep 17 00:00:00 2001 From: mirdono Date: Thu, 19 Jun 2025 13:49:31 +0200 Subject: [PATCH] fix: update label for locations to match their merged municipality As part of the 2025 municipality mergers, three municipalities kept their URI but were renamed. This updates the labels for their scope of operation (nl. werkingsgebied) locations accordingly. This way the label of the location resources matches the name of the municipality administrative unit. --- CHANGELOG.md | 9 ++++++++ ...merged-municipalities-that-kept-uri.sparql | 22 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 config/migrations-triggering-indexing/2025/20250619113048-fix--rename-locations-merged-municipalities-that-kept-uri.sparql diff --git a/CHANGELOG.md b/CHANGELOG.md index 14ea1f0..f707dc6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog ## Unreleased + +## v1.33.2 (2025-06-20) +### Backend +- datafix: correct name for locations whose municipalities kept their URI in the 2025 mergers +### Deploy notes +``` +drc restart migrations-triggering-indexing && drc logs -ft --tail=200 +``` + ## v1.33.1 (2025-06-16) ### Backend - Added Vlaams Parlement as bestuurseenheid. [DL-6686] diff --git a/config/migrations-triggering-indexing/2025/20250619113048-fix--rename-locations-merged-municipalities-that-kept-uri.sparql b/config/migrations-triggering-indexing/2025/20250619113048-fix--rename-locations-merged-municipalities-that-kept-uri.sparql new file mode 100644 index 0000000..ee7aa87 --- /dev/null +++ b/config/migrations-triggering-indexing/2025/20250619113048-fix--rename-locations-merged-municipalities-that-kept-uri.sparql @@ -0,0 +1,22 @@ +PREFIX rdfs: +PREFIX prov: + +DELETE { + GRAPH { + ?scope rdfs:label ?oldLabel . + } +} INSERT { + GRAPH { + ?scope rdfs:label ?newLabel . + } +} WHERE { + GRAPH { + ?scope a prov:Location ; + rdfs:label ?oldLabel . + VALUES (?scope ?newLabel) { + ( "Bilzen-Hoeselt") + ( "Tessenderlo-Ham") + ( "Tongeren-Borgloon") + } + } +}