From a6b7321cf0387bc61b6a2bde5d92270161730767 Mon Sep 17 00:00:00 2001 From: mirdono Date: Wed, 19 Jun 2024 14:39:27 +0200 Subject: [PATCH] fix: remove `org:memberOf` triples with KBO organizations as object The migration importing related organizations for public OCMW associations was incorrect in that it did not exclude resources of type `ext:KboOrganisatie` being matched. This migration removes all incorrectly inserted triples. --- ...organizations-from-participation-relation.sparql | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 config/migrations/20240619123310-remove-kbo-organizations-from-participation-relation.sparql diff --git a/config/migrations/20240619123310-remove-kbo-organizations-from-participation-relation.sparql b/config/migrations/20240619123310-remove-kbo-organizations-from-participation-relation.sparql new file mode 100644 index 0000000..afe8ccf --- /dev/null +++ b/config/migrations/20240619123310-remove-kbo-organizations-from-participation-relation.sparql @@ -0,0 +1,13 @@ +PREFIX org: +PREFIX ext: + +DELETE { + GRAPH { + ?participant org:memberOf ?association . + } +} WHERE { + GRAPH { + ?participant org:memberOf ?association . + ?association a ext:KboOrganisatie . + } +}