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

Open
l00mi opened this Issue Aug 30, 2013 · 1 comment

Comments

Projects
None yet
1 participant
@l00mi
Contributor

l00mi commented Aug 30, 2013

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

This comment has been minimized.

Show comment
Hide comment
@l00mi

l00mi Sep 10, 2013

Contributor

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 + " }";
   }
Contributor

l00mi commented Sep 10, 2013

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