From 5aaa45c186aa8a40fdab11edb6683f75ce3433db Mon Sep 17 00:00:00 2001 From: Claire Lovisa Date: Thu, 14 Apr 2022 10:56:11 +0200 Subject: [PATCH] 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 . + } + } + } +}