From 4cec244a1a7cf3da7299a9b531da3ef087b65a71 Mon Sep 17 00:00:00 2001 From: Jeremy Debattista Date: Thu, 7 Sep 2017 17:21:54 +0100 Subject: [PATCH] Added functionality for SPARQL INSERT --- lib/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client.js b/lib/client.js index 0e2b5b1..66e9fd3 100644 --- a/lib/client.js +++ b/lib/client.js @@ -81,7 +81,7 @@ var SparqlClient = module.exports = function (endpoint, options) { }; var sparqlRequest = function sparqlRequest(query, callback) { - if (query.indexOf("INSERT DATA") == -1 && query.indexOf("DELETE") == -1) { + if (query.indexOf("INSERT DATA") == -1 && query.indexOf("DELETE") == -1 && query.indexOf("INSERT") == -1) { var requestBody = _.extend(defaultParameters, { query: query });