sparqlalgebrajs
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -410,4 +410,6 @@ "use strict"; | ||
let result = translateOperation(op.input); | ||
// project is nested in group object | ||
let obj = result.patterns[0]; | ||
// results can be nested in a group object | ||
let obj = result; | ||
if (result.type && result.type === 'group') | ||
obj = result.patterns[0]; | ||
if (op.start !== 0) | ||
@@ -414,0 +416,0 @@ obj.offset = op.start; |
@@ -445,5 +445,2 @@ "use strict"; | ||
res = factory.createReduced(res); | ||
// 18.2.5.5 | ||
if (query.offset || query.limit) | ||
res = factory.createSlice(res, query.offset, query.limit); | ||
// NEW: support for ask/construct/describe queries | ||
@@ -456,2 +453,6 @@ if (query.queryType === 'CONSTRUCT') | ||
res = factory.createDescribe(res, Array.from(PV)); | ||
// Slicing needs to happen after construct/describe | ||
// 18.2.5.5 | ||
if (query.offset || query.limit) | ||
res = factory.createSlice(res, query.offset, query.limit); | ||
if (query.from) | ||
@@ -458,0 +459,0 @@ res = factory.createFrom(res, query.from.default, query.from.named); |
{ | ||
"name": "sparqlalgebrajs", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "Convert SPARQL to SPARQL algebra", | ||
@@ -15,3 +15,3 @@ "author": "Joachim Van Herwegen", | ||
"fast-deep-equal": "^3.1.1", | ||
"minimist": "^1.2.0", | ||
"minimist": "^1.2.5", | ||
"rdf-string": "^1.3.1", | ||
@@ -21,13 +21,13 @@ "sparqljs": "^3.0.1" | ||
"devDependencies": { | ||
"@types/chai": "^4.2.7", | ||
"@types/chai": "^4.2.11", | ||
"@types/minimist": "^1.2.0", | ||
"@types/mocha": "^5.2.7", | ||
"@types/node": "^13.1.4", | ||
"@types/rdf-js": "^2.0.7", | ||
"chai": "^4.1.2", | ||
"mocha": "^6.2.2", | ||
"@types/mocha": "^7.0.2", | ||
"@types/node": "^13.9.1", | ||
"@types/rdf-js": "^2.0.11", | ||
"chai": "^4.2.0", | ||
"mocha": "^7.1.0", | ||
"nyc": "^15.0.0", | ||
"pre-commit": "^1.2.2", | ||
"ts-node": "^8.5.4", | ||
"typescript": "^3.7.4" | ||
"ts-node": "^8.6.2", | ||
"typescript": "^3.8.3" | ||
}, | ||
@@ -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/) | ||
[![Build Status](https://travis-ci.org/joachimvh/SPARQLAlgebra.js.svg?branch=master)](https://travis-ci.org/joachimvh/SPARQLAlgebra.js) | ||
@@ -5,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
87556
2096
Updatedminimist@^1.2.5