diff --git a/config/migrations/2024/20240603115300-correct-agb-address-and-contact-data/20240603115306-fix-agb-address-data.sparql b/config/migrations/2024/20240603115300-correct-agb-address-and-contact-data/20240603115306-fix-agb-address-data.sparql new file mode 100644 index 0000000..c541f0e --- /dev/null +++ b/config/migrations/2024/20240603115300-correct-agb-address-and-contact-data/20240603115306-fix-agb-address-data.sparql @@ -0,0 +1,35 @@ +PREFIX adres: +PREFIX locn: + +# Remove incorrect address triples +DELETE { + GRAPH { + ?address adres:Adresvoorstelling.huisnummer "15" ; + locn:postCode "8710" ; + locn:adminUnitL2 "West-Vlaanderen" ; + locn:thoroughfare "Hernieuwenstraat" ; + locn:fullAddress "Hernieuwenstraat 15, 8710 Wielsbeke, Belgiƫ" ; + adres:gemeentenaam "Wielsbeke" . + } +} WHERE { + VALUES ?address { + # AGB LEUVEN (Parkeerbedrijf) + # AGB MECHELEN (Exploitatie) + # AGB MECHELEN (Patrimonium) + # AGB Renov'O + # AGB STEKENE + # Vrijetijdsbedrijf Knokke-Heist AG + } +} + +# Insert the correct the provinces +INSERT { + GRAPH { + locn:adminUnitL2 "Vlaams-Brabant" . # AGB LEUVEN (Parkeerbedrijf) + locn:adminUnitL2 "Antwerpen" . # AGB MECHELEN (Exploitatie) + locn:adminUnitL2 "Antwerpen" . # AGB MECHELEN (Patrimonium) + locn:adminUnitL2 "West-Vlaanderen" . # AGB Renov'O (located in Oostende) + locn:adminUnitL2 "Oost-Vlaanderen" . # AGB STEKENE + locn:adminUnitL2 "West-Vlaanderen" . # Vrijetijdsbedrijf Knokke-Heist AG + } +}