sparqlalgebrajs
Advanced tools
Comparing version 2.5.3 to 2.5.4
@@ -42,2 +42,5 @@ "use strict"; | ||
useQuads = quads; | ||
// Assume this is an empty query | ||
if (!sparql.type) | ||
return factory.createProject(factory.createBgp([]), []); | ||
if (sparql.type !== 'query' && sparql.type !== 'update') | ||
@@ -534,4 +537,4 @@ throw new Error('Translate only works on complete query or update objects.'); | ||
else if (thingy.graph) | ||
// this is equivalent | ||
where = factory.createFrom(where, [thingy.graph], []); | ||
// This is equivalent | ||
where = recurseGraph(where, thingy.graph); | ||
} | ||
@@ -543,3 +546,3 @@ else if (thingy.updateType === 'deletewhere' && deleteTriples.length > 0) { | ||
} | ||
// for now, UPDATE parsing will always return quads and have no GRAPH elements | ||
// UPDATE parsing will always return quads and have no GRAPH elements | ||
function translateUpdateTriplesBlock(thingy, graph) { | ||
@@ -589,2 +592,6 @@ let currentGraph = graph; | ||
return util_1.default.mapOperation(res, { | ||
'deleteinsert': (op) => { | ||
// Only relevant for INSERT operations as others should never contain blank nodes | ||
return { result: op, recurse: false }; | ||
}, | ||
'path': (op, factory) => { | ||
@@ -591,0 +598,0 @@ return { |
{ | ||
"name": "sparqlalgebrajs", | ||
"version": "2.5.3", | ||
"version": "2.5.4", | ||
"description": "Convert SPARQL to SPARQL algebra", | ||
@@ -5,0 +5,0 @@ "author": "Joachim Van Herwegen", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
106376
2531