Skip to content

Loading…

Malfunction of Store.Store.prototype.insert() if no graph to insert to is defined. #53

Open
l00mi opened this Issue · 1 comment

1 participant

@l00mi

The insert() of Triples does not work if there is no graph defined to insert into.

if(graph != null) {
    query = "INSERT DATA { GRAPH " + this._nodeToQuery(graph) +" { "+ query + " } }";
} else {
    query = "INSERT DATA { " + this._nodeToQuery(graph) +" { "+ query + " }";
}

The second query is wrong. I did try to change to:

query = "INSERT DATA { " + query + " }";

But without luck, this query is not working either.

@l00mi

Found the same issues in DELETE.

if(graph != null) {
       query = "DELETE DATA { GRAPH " + this._nodeToQuery(graph) +" { "+ query + " } }";
   } else {
       query = "DELETE DATA { " + this._nodeToQuery(graph) +" { "+ query + " }";
   }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.