Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sparqlalgebrajs

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sparqlalgebrajs - npm Package Compare versions

Comparing version 2.5.4 to 2.5.5

18

lib/sparqlAlgebra.js

@@ -275,3 +275,13 @@ "use strict";

function recurseGraph(thingy, graph, replacement) {
if (thingy.type === types.BGP)
if (thingy.type === types.GRAPH) {
if (replacement) {
// At this point we would lose track of the replacement which would result in incorrect results
// This would indicate the library is not being used as intended though
throw new Error('Recursing through nested GRAPH statements with a replacement is impossible.');
}
const graph = thingy;
// In case there were nested GRAPH statements that were not recursed yet for some reason
thingy = recurseGraph(graph.input, graph.name);
}
else if (thingy.type === types.BGP)
thingy.patterns = thingy.patterns.map(quad => {

@@ -286,3 +296,4 @@ if (replacement) {

}
quad.graph = graph;
if (quad.graph.termType === 'DefaultGraph')
quad.graph = graph;
return quad;

@@ -298,3 +309,4 @@ });

}
thingy.graph = graph;
if (thingy.graph.termType === 'DefaultGraph')
thingy.graph = graph;
}

@@ -301,0 +313,0 @@ // need to replace variables in subqueries should the graph also be a variable of the same name

2

package.json
{
"name": "sparqlalgebrajs",
"version": "2.5.4",
"version": "2.5.5",
"description": "Convert SPARQL to SPARQL algebra",

@@ -5,0 +5,0 @@ "author": "Joachim Van Herwegen",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc