Skip to content

Commit 8434234

Browse files
committed
Merge pull request #240 from wooldridge/github-issue-236-sparqlUpdate
handle sparqlUpdate request as single string arg
2 parents 7310e56 + 9db468c commit 8434234

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/graphs.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -787,8 +787,10 @@ Graphs.prototype.sparqlUpdate = function updateGraphSPARQL() {
787787
defaultRulesets = arg.defaultRulesets;
788788
optimizeLevel = arg.optimizeLevel;
789789
bindings = arg.bindings;
790-
} else {
791-
data = args[1];
790+
}
791+
// SPARQL request is single string argument
792+
else {
793+
data = args[0];
792794
}
793795

794796
var endpoint = '/v1/graphs/sparql';

0 commit comments

Comments
 (0)