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 . + } + } + } +}