diff --git a/config/migrations/2023/20230202100000-delete-mandatarissen.sparql b/config/migrations/2023/20230202100000-delete-mandatarissen.sparql index 9a13573..dbf88aa 100644 --- a/config/migrations/2023/20230202100000-delete-mandatarissen.sparql +++ b/config/migrations/2023/20230202100000-delete-mandatarissen.sparql @@ -3,7 +3,7 @@ PREFIX locn: PREFIX schema: DELETE { - GRAPH { + GRAPH { ?mandatarissen ?pMandatarissen ?oMandatarissen . ?mandaat ?pMandaat ?oMandaat . @@ -11,9 +11,9 @@ DELETE { ?address ?pAddress ?oAddress . } -} +} WHERE { - GRAPH { + GRAPH { VALUES ?mandatarissen { @@ -26,12 +26,11 @@ WHERE { OPTIONAL { ?mandatarissen schema:contactPoint ?contactPoint . + ?contactPoint ?pContactPoint ?oContactPoint. OPTIONAL { - ?contactPoint locn:address ?address ; - ?pContactPoint ?oContactPoint . + ?contactPoint locn:address ?address . ?address ?pAddress ?oAddress . } } - - } + } } \ No newline at end of file