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.
This commit is contained in:
mirdono
2024-06-03 16:07:52 +02:00
parent 74a0c92b31
commit 714994bc3c

View File

@@ -0,0 +1,19 @@
PREFIX schema: <http://schema.org/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
DELETE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?contactPoint schema:telephone "tel:+3256674504" ;
foaf:page "https://www.wielsbeke.be/producten/woonzorgcentrum-ter-lembeek" ;
schema:email "ouderenhuisvesting@wielsbeke.be" .
}
} WHERE {
VALUES ?contactPoint {
<http://data.lblod.info/id/contact-punten/f5df2649-afba-4cbb-8e97-b3a46e0f5c88> # AGB LEUVEN (Parkeerbedrijf)
<http://data.lblod.info/id/contact-punten/58aa2df7-2c48-4dc8-ba60-da72748bcff1> # AGB MECHELEN (Exploitatie)
<http://data.lblod.info/id/contact-punten/0a3a1313-511d-41a9-a1f3-32f41f2e613c> # AGB MECHELEN (Patrimonium)
<http://data.lblod.info/id/contact-punten/82e65e70-2c3b-4e3c-8f39-ce6f05ec42ea> # AGB Renov'O
<http://data.lblod.info/id/contact-punten/364d8e1a-cb18-4970-aeaf-5f6f307370ad> # AGB STEKENE
<http://data.lblod.info/id/contact-punten/0d680616-e2a3-41af-bfeb-c76992552c5c> # Vrijetijdsbedrijf Knokke-Heist AG
}
}