From f06ae823a5c7cf7ede8b5cee94eb6d586fcbe68e Mon Sep 17 00:00:00 2001 From: yu569ym Date: Mon, 21 Feb 2022 19:07:30 +0100 Subject: [PATCH] fixed error in sparql diagrams, unresolved prefix error --- src/ontodia/data/sparql/sparqlDataProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ontodia/data/sparql/sparqlDataProvider.ts b/src/ontodia/data/sparql/sparqlDataProvider.ts index 344dd5c2..3b457859 100644 --- a/src/ontodia/data/sparql/sparqlDataProvider.ts +++ b/src/ontodia/data/sparql/sparqlDataProvider.ts @@ -696,7 +696,7 @@ export class SparqlDataProvider implements DataProvider { .filter(iri => !BlankNodes.isEncodedBlank(iri)) .map(iri => `(${escapeIri(iri)})`).join(' '); - const queryTemplate = `SELECT ?inst ?class { VALUES(?inst) { \${ids} } \${filterTypePattern} }`; + const queryTemplate = this.settings.defaultPrefix +`SELECT ?inst ?class { VALUES(?inst) { \${ids} } \${filterTypePattern} }`; const query = resolveTemplate(queryTemplate, {ids, filterTypePattern}); let response = await this.executeSparqlQuery(query);