From 225e31d845739d94d3e8092250b70fc76566aaa0 Mon Sep 17 00:00:00 2001 From: mirdono Date: Thu, 17 Apr 2025 10:14:06 +0200 Subject: [PATCH] fix: update werkingsgebieden to match NIS 2025 codes As part of the 2025 municipality mergers some NIS2019 codes were linked to their NIS2025 counterparts using `skos:narrowMatch` or `skos:broadMatch`, instead of `skos:exactMatch`. Consequently, the initial insertion of the NIS2025 codes did not update the NIS code for the werkingsgebieden linking to these. --- ...rrowed-or-broadened-werkingsgebieden.sparql | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 config/migrations/2025/20250416181230-fix--refnis-2025/20250417080910-fix--update-narrowed-or-broadened-werkingsgebieden.sparql diff --git a/config/migrations/2025/20250416181230-fix--refnis-2025/20250417080910-fix--update-narrowed-or-broadened-werkingsgebieden.sparql b/config/migrations/2025/20250416181230-fix--refnis-2025/20250417080910-fix--update-narrowed-or-broadened-werkingsgebieden.sparql new file mode 100644 index 0000000..bf7ee2c --- /dev/null +++ b/config/migrations/2025/20250416181230-fix--refnis-2025/20250417080910-fix--update-narrowed-or-broadened-werkingsgebieden.sparql @@ -0,0 +1,18 @@ +DELETE { + GRAPH { + ?werkingsgebied skos:exactMatch ?nis2019 . + } +} INSERT { + GRAPH { + ?werkingsgebied skos:exactMatch ?nis2025 . + } +} WHERE { + GRAPH { + ?werkingsgebied skos:exactMatch ?nis2019 . + } + VALUES (?nis2019 ?nis2025) { + ( ) # Antwerp province + ( ) # East Flanders province + ( ) # Antwerp municipality + } +}