We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2091e98 commit a96d9f3Copy full SHA for a96d9f3
1 file changed
src/ldf-client-ui.js
@@ -736,8 +736,13 @@ if (typeof global.process === 'undefined')
736
let query = this.$queryTextsIndexed[this.options.queryFormat].val();
737
if (this.options.queryFormat === 'sparql') {
738
// Add pre-defined prefixes to query and remove duplicates
739
- const parsedQuery = new SparqlParser({ prefixes:this.options.prefixes, sparqlStar: true }).parse(query);
740
- query = new SparqlGenerator({}).stringify(parsedQuery);
+ try {
+ const parsedQuery = new SparqlParser({ prefixes: this.options.prefixes, sparqlStar: true }).parse(query);
741
+ query = new SparqlGenerator({}).stringify(parsedQuery);
742
+ }
743
+ catch {
744
+ // Ignore parsing errors, as they will be caught later by the query engine
745
746
}
747
748
this._queryWorker.postMessage({
0 commit comments