sparqlalgebrajs
Advanced tools
Comparing version 0.7.1 to 0.7.2
@@ -349,3 +349,3 @@ "use strict"; | ||
let PV = new Set(); | ||
if (query.queryType === 'SELECT') { | ||
if (query.queryType === 'SELECT' || query.queryType === 'DESCRIBE') { | ||
if (query.variables.indexOf('*') >= 0) | ||
@@ -355,3 +355,4 @@ PV = variables; | ||
for (let v of query.variables) { | ||
if (isVariable(v)) | ||
// can have non-variables with DESCRIBE | ||
if (isVariable(v) || !v.variable) | ||
PV.add(factory.createTerm(v)); | ||
@@ -400,3 +401,3 @@ else if (v.variable) { | ||
else if (query.queryType === 'DESCRIBE') | ||
res = factory.createDescribe(res, query.variables.map(factory.createTerm.bind(factory))); | ||
res = factory.createDescribe(res, Array.from(PV)); | ||
return res; | ||
@@ -403,0 +404,0 @@ } |
{ | ||
"name": "sparqlalgebrajs", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "Convert SPARQL to SPARL 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
56599
1404