From 160c355d1c83b872af2feedb2d5657a61260234f Mon Sep 17 00:00:00 2001 From: Nordine Bittich <3816305+nbittich@users.noreply.github.com> Date: Mon, 27 Feb 2023 16:13:22 +0100 Subject: [PATCH] =?UTF-8?q?Kerkfabriek=20St.-Antonius=20van=20Padua=20van?= =?UTF-8?q?=20Gent=20(Heirnis)=E2=80=9D=20with=20status=20=E2=80=9CNiet=20?= =?UTF-8?q?actief=E2=80=9D=20from=20OP=20(#241)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...0227114600-remove-worship-not-actif.sparql | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 config/migrations-triggering-indexing/2023/20230227114600-remove-worship-not-actif.sparql diff --git a/config/migrations-triggering-indexing/2023/20230227114600-remove-worship-not-actif.sparql b/config/migrations-triggering-indexing/2023/20230227114600-remove-worship-not-actif.sparql new file mode 100644 index 0000000..10d16d7 --- /dev/null +++ b/config/migrations-triggering-indexing/2023/20230227114600-remove-worship-not-actif.sparql @@ -0,0 +1,50 @@ +PREFIX org: +PREFIX adms: +PREFIX generiek: +PREFIX organisatie: + +DELETE { + GRAPH { + ?bestuur ?pbestuur ?obestuur . + ?primarySite ?pprimarySite ?oprimarySite . + ?address ?paddress ?oaddress . + ?contactPoint ?pcontactPoint ?ocontactPoint . + ?identifier ?pidentifier ?oidentifier . + ?structuredIdentifier ?pstructuredIdentifier ?ostructuredIdentifier . + } +} WHERE { + GRAPH { + BIND( as ?bestuur) + + ?bestuur ?pbestuur ?obestuur . + + OPTIONAL { + + ?bestuur org:hasPrimarySite ?primarySite . + + OPTIONAL { + ?primarySite organisatie:bestaatUit ?address . + ?address ?paddress ?oaddress . + } + OPTIONAL { + ?primarySite org:siteAddress ?contactPoint . + ?contactPoint ?pcontactPoint ?ocontactPoint . + } + + ?primarySite ?pprimarySite ?oprimarySite . + + } + OPTIONAL { + + ?bestuur adms:identifier ?identifier . + + OPTIONAL { + ?identifier generiek:gestructureerdeIdentificator ?structuredIdentifier . + ?structuredIdentifier ?pstructuredIdentifier ?ostructuredIdentifier . + } + + ?identifier ?pidentifier ?oidentifier . + + } + } +}