Hey, is there a way to build a SPARQL-specific regex string in Jena?
Now I'm using the Pattern class to implement simple regex() based search. If the search string contains special characters, escaping is done but the syntax does not seem to work. For example, Pattern.compile(Pattern.quote("+35")) produces query with FILTER regex(str(?label), "\\Q+35\\E", "i") which returns no results. So I guess I can't use the Java syntax directly like that. How do I escape the string for SPARQL regex? Martynas graphityhq.com