sparqlalgebrajs
Advanced tools
Comparing version 1.4.2 to 1.5.0
@@ -347,5 +347,6 @@ "use strict"; | ||
for (let e of query.group) { | ||
if (e.variable) { | ||
res = factory.createExtend(res, factory.createTerm(e.variable), translateExpression(e.expression)); | ||
vars.push(factory.createTerm(e.variable)); | ||
if (e.expression.type) { | ||
const v = e.variable ? factory.createTerm(e.variable) : generateFreshVar(); | ||
res = factory.createExtend(res, v, translateExpression(e.expression)); | ||
vars.push(v); | ||
} | ||
@@ -352,0 +353,0 @@ else |
{ | ||
"name": "sparqlalgebrajs", | ||
"version": "1.4.2", | ||
"version": "1.5.0", | ||
"description": "Convert SPARQL to SPARQL algebra", | ||
@@ -23,11 +23,11 @@ "author": "Joachim Van Herwegen", | ||
"@types/minimist": "^1.2.0", | ||
"@types/mocha": "^2.2.48", | ||
"@types/node": "^8.10.24", | ||
"@types/mocha": "^5.2.6", | ||
"@types/node": "^11.9.5", | ||
"@types/rdf-js": "^2.0.1", | ||
"chai": "^4.1.2", | ||
"mocha": "^5.2.0", | ||
"nyc": "^12.0.2", | ||
"mocha": "^6.0.2", | ||
"nyc": "^13.3.0", | ||
"pre-commit": "^1.2.2", | ||
"ts-node": "^6.2.0", | ||
"typescript": "^2.9.2" | ||
"ts-node": "^8.0.2", | ||
"typescript": "^3.3.3333" | ||
}, | ||
@@ -34,0 +34,0 @@ "scripts": { |
# SPARQL to SPARQL Algebra converter | ||
[![npm version](https://badge.fury.io/js/sparqlalgebrajs.svg)](https://www.npmjs.com/package/sparqlalgebrajs) | ||
[![Build Status](https://travis-ci.org/joachimvh/SPARQLAlgebra.js.svg?branch=master)](https://travis-ci.org/joachimvh/SPARQLAlgebra.js) [![Greenkeeper badge](https://badges.greenkeeper.io/joachimvh/SPARQLAlgebra.js.svg)](https://greenkeeper.io/) | ||
@@ -3,0 +5,0 @@ 2 components get exposed: the **translate** function and the **Algebra** object, |
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
83137
1977
135