sparqlalgebrajs
Advanced tools
Comparing version 2.2.1 to 2.2.2
@@ -45,7 +45,3 @@ "use strict"; | ||
createPattern(subject, predicate, object, graph) { | ||
let pattern; | ||
if (graph) | ||
pattern = this.dataFactory.quad(subject, predicate, object, graph); | ||
else | ||
pattern = this.dataFactory.triple(subject, predicate, object); | ||
let pattern = this.dataFactory.quad(subject, predicate, object, graph); | ||
pattern.type = 'pattern'; | ||
@@ -52,0 +48,0 @@ return pattern; |
@@ -35,3 +35,5 @@ "use strict"; | ||
// this allows us to differentiate between BIND and SELECT when translating EXTEND | ||
if (op.type !== types.EXTEND && op.type !== types.ORDER_BY) | ||
// GRAPH was added because the way graphs get added back here is not the same as how they get added in the future | ||
// ^ seems fine but might have to be changed if problems get detected in the future | ||
if (op.type !== types.EXTEND && op.type !== types.ORDER_BY && op.type !== types.GRAPH) | ||
context.project = false; | ||
@@ -38,0 +40,0 @@ switch (op.type) { |
{ | ||
"name": "sparqlalgebrajs", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "Convert SPARQL to SPARQL algebra", | ||
@@ -24,3 +24,3 @@ "author": "Joachim Van Herwegen", | ||
"@types/node": "^13.9.1", | ||
"@types/rdf-js": "^2.0.11", | ||
"@types/rdf-js": "^3.0.0", | ||
"chai": "^4.2.0", | ||
@@ -27,0 +27,0 @@ "mocha": "^7.1.0", |
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
87660
2094