Fix phone mapping

This commit is contained in:
Claire Lovisa
2025-01-22 15:37:39 +01:00
parent 261ba383b6
commit 7834352617

View File

@@ -17,11 +17,5 @@ CONSTRUCT {
BIND(REPLACE(?extendedDefaultBe, """^320""", "+32") AS ?finalResult)
FILTER(REGEX(?finalResult, """^\\+((32\\d{8})|(324\\d{8})|((?!32)\\d+))$"""))
BIND(CONCAT("tel:", ?finalResult) as ?cleanedPhoneNumber)
FILTER NOT EXISTS {
?s schema:telephone "" .
}
BIND(IF(REGEX(?finalResult, """^\\+((32\\d{8})|(324\\d{8})|((?!32)\\d+))$"""), CONCAT("tel:", ?finalResult), ?phoneNumber) AS ?cleanedPhoneNumber)
}