From 75d77f2b2ed192f2f90faa49e65c5544a7cb364d Mon Sep 17 00:00:00 2001 From: Iulian Andriescu Date: Tue, 6 Dec 2022 14:22:59 +0200 Subject: [PATCH] Fix/delete duplicate services (#194) * update fuzzy search version * migration to delete duplicate services * Revert "update fuzzy search version" This reverts commit b0dc0ebad472c7e9e57e4ab792d6fce382147bb5. --- ...0-delete-duplicate-worship-services.sparql | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 config/migrations/2022/20221202110000-delete-duplicate-worship-services.sparql diff --git a/config/migrations/2022/20221202110000-delete-duplicate-worship-services.sparql b/config/migrations/2022/20221202110000-delete-duplicate-worship-services.sparql new file mode 100644 index 0000000..5f47717 --- /dev/null +++ b/config/migrations/2022/20221202110000-delete-duplicate-worship-services.sparql @@ -0,0 +1,41 @@ +DELETE { + GRAPH { + ?representatieveOrgaan ?bestuur . + ?bestuur ?pbestuur ?obestuur . + ?primarySite ?pprimarySite ?oprimarySite . + ?address ?paddress ?oaddress . + ?contactPoint ?pcontactPoint ?ocontactPoint . + ?identifier ?pidentifier ?oidentifier . + ?structuredIdentifier ?pstructuredIdentifier ?ostructuredIdentifier . + } +} WHERE { + GRAPH { + VALUES ?bestuur { + # OP-1909 :: Ensar + # OP-1913 :: Attaqwa + # OP-1914 :: Imam-i Buhari + # OP-1926 :: Orthodoxe Parochie van de Heilige Nino + # OP-1924 :: Islamitisch en cultureel centrum Al Umma Linkeroever + # OP-1922 :: Essalaam + } + + ?representatieveOrgaan ?bestuur . + + ?bestuur ?primarySite ; + ?identifier ; + ?pbestuur ?obestuur . + + ?primarySite ?address ; + ?contactPoint ; + ?pprimarySite ?oprimarySite . + + ?address ?paddress ?oaddress . + + ?contactPoint ?pcontactPoint ?ocontactPoint . + + ?identifier ?structuredIdentifier ; + ?pidentifier ?oidentifier . + + ?structuredIdentifier ?pstructuredIdentifier ?ostructuredIdentifier . + } +}