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""") + } +}