From 5b81e3b27b5b710f670b57983d837674f2bc14a2 Mon Sep 17 00:00:00 2001 From: Anita Caron Date: Thu, 2 Sep 2021 18:33:55 +0100 Subject: [PATCH] Migration to rename the fused locations --- ...210902170100-rename-location-fusion.sparql | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 config/migrations/20210902170100-rename-location-fusion.sparql diff --git a/config/migrations/20210902170100-rename-location-fusion.sparql b/config/migrations/20210902170100-rename-location-fusion.sparql new file mode 100644 index 0000000..c86eedb --- /dev/null +++ b/config/migrations/20210902170100-rename-location-fusion.sparql @@ -0,0 +1,44 @@ +PREFIX mu: +PREFIX ext: +PREFIX rdfs: +PREFIX prov: + +DELETE { + GRAPH ?g { + ?aalter rdfs:label ?label . + } +} INSERT { + GRAPH ?g { + ?aalter rdfs:label "Aalter (voor fusie)" . + } +} WHERE { + GRAPH ?g { + ?aalter a prov:Location ; + rdfs:label ?label . + + VALUES ?aalter { + + } + } +} + +; + +DELETE { + GRAPH ?g { + ?deinze rdfs:label ?label . + } +} INSERT { + GRAPH ?g { + ?deinze rdfs:label "Deinze (voor fusie)" . + } +} WHERE { + GRAPH ?g { + ?deinze a ; + rdfs:label ?label . + + VALUES ?deinze { + + } + } +} \ No newline at end of file