mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix: Use base IRI when parsing SPARQL update queries
Accept relative references in SPARQL updates
This commit is contained in:
committed by
Joachim Van Herwegen
parent
76def28a68
commit
775aaa79cd
@@ -31,7 +31,7 @@ export class SparqlUpdateBodyParser extends BodyParser {
|
||||
let algebra: Algebra.Operation;
|
||||
try {
|
||||
const sparql = await readableToString(toAlgebraStream);
|
||||
algebra = translate(sparql, { quads: true });
|
||||
algebra = translate(sparql, { quads: true, baseIRI: metadata.identifier.value });
|
||||
} catch (error: unknown) {
|
||||
this.logger.warn('Could not translate SPARQL query to SPARQL algebra', { error });
|
||||
if (error instanceof Error) {
|
||||
|
||||
Reference in New Issue
Block a user