qlever-ui
qlever-ui copied to clipboard
normalizeQuery() produces invalid SPARQL
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:
- When a comment appears in a line containing a
<
(for example aFILTER
query using comparators) - When a
#
appears in a string literal
There might be other cases I have missed.