From 714994bc3ceac0a057016bdc95ac0030041638a7 Mon Sep 17 00:00:00 2001 From: mirdono Date: Mon, 3 Jun 2024 16:07:52 +0200 Subject: [PATCH] fix: remove faulty contact data for some AGBs The migrations importing the public OCMW association's contact data contained a faulty query that matched on empty KBO numbers. As a result contact data was incorrectly inserted to some AGBs that also do not have a KBO number. This migration removes the incorrect data. --- ...20240603133736-fix-agb-contact-data.sparql | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 config/migrations/2024/20240603115300-correct-agb-address-and-contact-data/20240603133736-fix-agb-contact-data.sparql diff --git a/config/migrations/2024/20240603115300-correct-agb-address-and-contact-data/20240603133736-fix-agb-contact-data.sparql b/config/migrations/2024/20240603115300-correct-agb-address-and-contact-data/20240603133736-fix-agb-contact-data.sparql new file mode 100644 index 0000000..c939bce --- /dev/null +++ b/config/migrations/2024/20240603115300-correct-agb-address-and-contact-data/20240603133736-fix-agb-contact-data.sparql @@ -0,0 +1,19 @@ +PREFIX schema: +PREFIX foaf: + +DELETE { + GRAPH { + ?contactPoint schema:telephone "tel:+3256674504" ; + foaf:page "https://www.wielsbeke.be/producten/woonzorgcentrum-ter-lembeek" ; + schema:email "ouderenhuisvesting@wielsbeke.be" . + } +} WHERE { + VALUES ?contactPoint { + # AGB LEUVEN (Parkeerbedrijf) + # AGB MECHELEN (Exploitatie) + # AGB MECHELEN (Patrimonium) + # AGB Renov'O + # AGB STEKENE + # Vrijetijdsbedrijf Knokke-Heist AG + } +}