From 806a8707444a622b9e387cd806eb761c3515378f Mon Sep 17 00:00:00 2001 From: mirdono Date: Tue, 26 Nov 2024 17:02:16 +0100 Subject: [PATCH] chore: rename municipalities and OCMWs for mergers 2025 As part of the 2025 municipality mergers 3 municipalities, and their corresponding OCMWs, keep their original URI but do change their name. More specifically: - Bilzen becomes Bilzen-Hoeselt - Ham becomes Tessenderlo-Ham - Tongeren becomes Tongeren-Borgloon --- ...ame-merged-municipalities-and-ocmws.sparql | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 config/migrations-triggering-indexing/2024/20241126155527-rename-merged-municipalities-and-ocmws.sparql diff --git a/config/migrations-triggering-indexing/2024/20241126155527-rename-merged-municipalities-and-ocmws.sparql b/config/migrations-triggering-indexing/2024/20241126155527-rename-merged-municipalities-and-ocmws.sparql new file mode 100644 index 0000000..b4452b4 --- /dev/null +++ b/config/migrations-triggering-indexing/2024/20241126155527-rename-merged-municipalities-and-ocmws.sparql @@ -0,0 +1,33 @@ +PREFIX besluit: +PREFIX regorg: +PREFIX skos: + +DELETE { + GRAPH ?g { + ?organisation skos:prefLabel ?oldLabel; + regorg:legalName ?oldName. + } +} INSERT { + GRAPH ?g { + ?organisation skos:prefLabel ?newName; + regorg:legalName ?newName. + } +} WHERE { + GRAPH ?g { + ?organisation a besluit:Bestuurseenheid; + skos:prefLabel ?oldLabel; + regorg:legalName ?oldName. + } + VALUES ?g { + + + } + VALUES (?organisation ?newName) { + ( """Bilzen-Hoeselt""") + ( """Bilzen-Hoeselt""") + ( """Tessenderlo-Ham""") + ( """Tessenderlo-Ham""") + ( """Tongeren-Borgloon""") + ( """Tongeren-Borgloon""") + } +}