Smalyshev added a comment.

About this query:

SELECT * { BIND( replace("a\b\c", "\", "\\", "q") as ?test) }

I don't think this would work regardless of 'q' option. This option makes regex special characters lose their special meanings (inside regex context) but it does not change SPARQL grammar. And in SPARQL grammar things like "\" are invalid, and the literal parser will still parse literals according to the same set of rules.

Better test case would be:

SELECT * { BIND( replace("abc", ".", "Z", "q") as ?test) }

Here . should lose it's "catch all" meaning with 'q' option.


TASK DETAIL
https://phabricator.wikimedia.org/T197566

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Smalyshev
Cc: Smalyshev, matej_suchanek, Aklapper, Esc3300, Lahi, Gq86, Darkminds3113, Lucas_Werkmeister_WMDE, GoranSMilovanovic, QZanden, EBjune, merbst, LawExplorer, Avner, Gehel, Jonas, FloNight, Xmlizer, jkroll, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to