From 6f2db80f50933a31d4aefe7507f6d4a0cf66a265 Mon Sep 17 00:00:00 2001 From: wolfez Date: Thu, 31 Jul 2025 11:01:07 +0200 Subject: [PATCH] use meaningful variableNames --- ...icate-memberships-ocmw-municipality.sparql | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/config/migrations/2025/20250725120522-remove-duplicate-memberships-ocmw-municipality.sparql b/config/migrations/2025/20250725120522-remove-duplicate-memberships-ocmw-municipality.sparql index a55bf85..dac16fd 100644 --- a/config/migrations/2025/20250725120522-remove-duplicate-memberships-ocmw-municipality.sparql +++ b/config/migrations/2025/20250725120522-remove-duplicate-memberships-ocmw-municipality.sparql @@ -8,26 +8,26 @@ DELETE { } WHERE { GRAPH { ?duplicateMembership a org:Membership ; - org:organization ?orgB ; # OCMW - org:member ?orgA ; # Municipality + org:organization ?ocmw ; + org:member ?municipality ; org:role ; ?p ?o . # Find the other memberships with swapped organizations ?correctMembership a org:Membership ; - org:organization ?orgA ; # Municipality - org:member ?orgB ; # OCMW + org:organization ?municipality ; + org:member ?ocmw ; org:role . } - GRAPH ?gA { - ?orgA org:classification ?classA . + GRAPH ?graphMunicipality { + ?municipality org:classification ?municipalityClassification . } - GRAPH ?gB { - ?orgB org:classification ?classB . + GRAPH ?graphOCMW { + ?ocmw org:classification ?ocmwClassificiation . } - FILTER(?classA = ) - FILTER(?classB = ) + FILTER(?municipalityClassification = ) + FILTER(?ocmwClassificiation = ) }