From 3f2ff1f1c0f6eae973ffbb36a22a94072d3b5cf4 Mon Sep 17 00:00:00 2001 From: Claire Lovisa Date: Tue, 12 Apr 2022 15:14:09 +0200 Subject: [PATCH 1/2] Add migration to update gender codelist --- ...220412134535-update-gender-codelist.sparql | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 config/migrations/2022/20220412134535-update-gender-codelist.sparql diff --git a/config/migrations/2022/20220412134535-update-gender-codelist.sparql b/config/migrations/2022/20220412134535-update-gender-codelist.sparql new file mode 100644 index 0000000..13f4c53 --- /dev/null +++ b/config/migrations/2022/20220412134535-update-gender-codelist.sparql @@ -0,0 +1,42 @@ +DELETE { + GRAPH ?g { + ?s ?p ?o . + } +} WHERE { + GRAPH ?g { + ?s ?p ?o . + VALUES ?s { + + + } + } +} + +; + +INSERT DATA { + GRAPH { + a , + ; + "c11b47dd-cacd-4664-9a72-14730e00eaed"; + "Ander"; + ; + . + } +} + +; + +DELETE { + GRAPH ?g { + skos:prefLabel ?label . + } +} INSERT { + GRAPH ?g { + skos:prefLabel "Niet gekend" . + } +} WHERE { + GRAPH ?g { + skos:prefLabel ?label . + } +} \ No newline at end of file From 5aaa45c186aa8a40fdab11edb6683f75ce3433db Mon Sep 17 00:00:00 2001 From: Claire Lovisa Date: Thu, 14 Apr 2022 10:56:11 +0200 Subject: [PATCH 2/2] Add migration to remove some bedinaren --- .../20220414092643-remove-bedinaren.sparql | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 config/migrations/2022/20220414092643-remove-bedinaren.sparql diff --git a/config/migrations/2022/20220414092643-remove-bedinaren.sparql b/config/migrations/2022/20220414092643-remove-bedinaren.sparql new file mode 100644 index 0000000..8b55a4e --- /dev/null +++ b/config/migrations/2022/20220414092643-remove-bedinaren.sparql @@ -0,0 +1,35 @@ +DELETE { + GRAPH ?g { + + ?position . + + ?position ?pposition ?oposition . + + ?role ?prole ?orole . + + ?contactPoint ?pcontactPoint ?ocontactPoint . + + ?address ?paddress ?oaddress . + } +} WHERE { + GRAPH ?g { + + ?position . + + ?position ?pposition ?oposition . + + ?role ?position ; + ?prole ?orole . + + OPTIONAL { + ?role ?contactPoint . + + ?contactPoint ?pcontactPoint ?ocontactPoint . + + OPTIONAL { + ?contactPoint ?address . + ?address ?paddress ?oaddress . + } + } + } +}