Hi there,

I started using Jena TDB and Fuseki just recently and I am trying to post some 
Sparql Update Delete statements.
I am experiencing a problem when deleting with no explicit graph specified.

DELETE { <http://s/1>  ?p ?o } WHERE { <http://s/1>  ?p ?o .}

The above will not delete any statements that have been inserted in a specific 
graph. For example:
If I insert some statements with:

INSERT DATA {

GRAPH <http://test/uri> {

<http://s/1> <http://p/3> <http://o/3> .

<http://s/1> <http://p/2> <http://o/2> .

<http://s/1> <http://p/1> <http://o/1> .

}

};


And then try to delete them with

DELETE {<http://s/1>  ?p ?o }  WHERE { <http://s/1>  ?p ?o .}

Nothing is deleted.

If I delete them with:

WITH <http://test/uri>
DELETE { <http://s/1>  ?prop ?obj  }  WHERE {<http://s/1>  ?prop ?obj}


The statements get really deleted!


According to Sparql 1.1 Update spec [1] the default graph should be used if 
there is no graph explicitly specified in the update query which I reason means 
that the statements above should be deleted even if a GRAPH is not explicitly 
specified. Furthermore if I query with no explicit graph specified like:


select * where {<http://s/1> ?p ?q}


I get all the statements from above.


Can you please confirm if this is a bug? Perhaps I am not doing something 
properly?


I did my experiments on both Fuseki 0.2.5 and 0.2.6 with the same result. On 
0.2.6 I used the update web UI and on 0.2.5 I used a http client to make http 
request staring to my Dataset's Sparql Update endpoint. In both cases the 
result is the same. I can provide an automated test if needed.


Many thanks,

Luchesar


[1] http://www.w3.org/TR/sparql11-update/#deleteInsert



********************************************************************************
   
DISCLAIMER: This e-mail is confidential and should not be used by anyone who is
not the original intended recipient. If you have received this e-mail in error
please inform the sender and delete it from your mailbox or any other storage
mechanism. Neither Macmillan Publishers Limited nor any of its agents accept
liability for any statements made which are clearly the sender's own and not
expressly made on behalf of Macmillan Publishers Limited or one of its agents.
Please note that neither Macmillan Publishers Limited nor any of its agents
accept any responsibility for viruses that may be contained in this e-mail or
its attachments and it is your responsibility to scan the e-mail and 
attachments (if any). No contracts may be concluded on behalf of Macmillan 
Publishers Limited or its agents by means of e-mail communication. Macmillan 
Publishers Limited Registered in England and Wales with registered number 
785998 
Registered Office Brunel Road, Houndmills, Basingstoke RG21 6XS   
********************************************************************************

Reply via email to