diff --git a/config/migrations/2022/20220317100000-remove-bestuurseenheden-op-1075.sparql b/config/migrations/2022/20220317100000-remove-bestuurseenheden-op-1075.sparql index 9d75fbc..ca963b3 100644 --- a/config/migrations/2022/20220317100000-remove-bestuurseenheden-op-1075.sparql +++ b/config/migrations/2022/20220317100000-remove-bestuurseenheden-op-1075.sparql @@ -1,10 +1,12 @@ -# Deletes 2 worships services and their attributes (id, address, ...) - DELETE { GRAPH ?g { - ?bestuur ?p ?o. - ?o ?p2 ?o2. - ?o2 ?p3 ?o3. + ?representatieveOrgaan ?bestuur . + ?bestuur ?pbestuur ?obestuur . + ?primarySite ?pprimarySite ?oprimarySite . + ?address ?paddress ?oaddress . + ?contactPoint ?pcontactPoint ?ocontactPoint . + ?identifier ?pidentifier ?oidentifier . + ?structuredIdentifier ?pstructuredIdentifier ?ostructuredIdentifier . } } WHERE { GRAPH ?g { @@ -12,8 +14,23 @@ DELETE { } - ?bestuur ?p ?o. - ?o ?p2 ?o2. - ?o2 ?p3 ?o3. + + ?bestuur ?primarySite ; + ?identifier ; + ?pbestuur ?obestuur . + + ?primarySite ?address ; + ?contactPoint ; + ?pprimarySite ?oprimarySite . + + ?address ?paddress ?oaddress . + + ?contactPoint ?pcontactPoint ?ocontactPoint . + + ?identifier ?structuredIdentifier ; + ?pidentifier ?oidentifier . + + ?structuredIdentifier ?pstructuredIdentifier ?ostructuredIdentifier . } } +