graph.delete is not a patten match. It deletes one triple (or zero).
graph.remove is the pattern match.
On 20/12/16 22:15, Claude Warren wrote:
I am looking at the contract test case and it has a note that says:
{code}
// should not modify anything on wildcard delete
try {
txnBegin(graph);
graph.delete(new Triple(node("S2"), node("P2"), Node.ANY));
{code}
It then goes on to verify that <S2 P2 O2> is still in the graph. This
seems to be true for most (all?) implementations of graph, but can anyone
tell me why?
Claude