The goal I am trying to achieve is as follows:
a) I generate some turtle for a single named graph: it may have errors in it
b) I upload it to bigdata in a temporary named graph
c) if I get a 200 I atomically delete the current target named graph and replace it with the contents of the temporary graph deleting the temporary graph in the process
Here is the query for (c)
In the test mode, I am using another update to generate test data
and I am using the following query to see what is going on:
With some playing around with these queries it is fairly easy to run the atomic update query and then the last query and still have a ground triple in graph <eg:A> which should have been completed deleted.