qlever-ui icon indicating copy to clipboard operation
qlever-ui copied to clipboard

normalizeQuery() produces invalid SPARQL

Open patrickbr opened this issue 1 year ago • 3 comments

The method normalizeQuery() https://github.com/ad-freiburg/qlever-ui/blob/1ad9df580008cf470c30b2d586001f9dc10642e6/backend/static/js/helper.js#L26-L33 fails to return valid SPARQL in the following cases:

  1. When a comment appears in a line containing a < (for example a FILTER query using comparators)
  2. When a # appears in a string literal

There might be other cases I have missed.

patrickbr avatar Jul 07 '23 10:07 patrickbr