From 5b81e3b27b5b710f670b57983d837674f2bc14a2 Mon Sep 17 00:00:00 2001 From: Anita Caron Date: Thu, 2 Sep 2021 18:33:55 +0100 Subject: [PATCH 1/2] 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 From 247bdc2b463d8c203d04e0f62ef4fcc6e0b06eb5 Mon Sep 17 00:00:00 2001 From: Anita Caron Date: Fri, 3 Sep 2021 14:46:51 +0100 Subject: [PATCH 2/2] Delete additional label property in Bestuurseenheid --- ...3-delete-label-from-bestuurseenheid.sparql | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 config/migrations/20210830144223-delete-label-from-bestuurseenheid.sparql diff --git a/config/migrations/20210830144223-delete-label-from-bestuurseenheid.sparql b/config/migrations/20210830144223-delete-label-from-bestuurseenheid.sparql new file mode 100644 index 0000000..4e53558 --- /dev/null +++ b/config/migrations/20210830144223-delete-label-from-bestuurseenheid.sparql @@ -0,0 +1,21 @@ +PREFIX besluit: +PREFIX skos: +PREFIX rdfs: + + +DELETE { + GRAPH ?g { + ?bestuurseenheid rdfs:label ?label . + } +} INSERT { + GRAPH ?g { + ?bestuurseenheid skos:prefLabel ?label . + } +} WHERE { + GRAPH ?g { + ?bestuurseenheid a besluit:Bestuurseenheid ; + rdfs:label ?label . + } +} + +