From e30e93e00e39a9daf54e49fcbbb677db29a81943 Mon Sep 17 00:00:00 2001 From: Boris De Vloed Date: Thu, 2 Feb 2023 15:59:27 +0100 Subject: [PATCH] Change to delete secondary contact point --- .../2023/20230202100000-delete-mandatarissen.sparql | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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