I have a question concerning SPARQL. I´m automaticially generating SPARQL queries in Javascript. I have a Dropdown Menu with strings that can be searched for. When generating the Query this works fine, as long as my "String" doesn't contain special characters:
select ?coin ?place where {
?coin nmo:hasObjectType nm:coin.
?coin nmo:hasFindspot ?findspotid.
?findspotid rdfs:label ?place.
FILTER regex(?place, "String", "i") .
} LIMIT 10
If I put something like "Köln" or "Chmielów", I don´t get a result even though there should be a lot. Instead the Query transforms the String to "Köln" and "Chmielów". If I query this, I don´t get a result either.
Is there a way of automaticially escaping Special Characters? I don´t know the String before.