I want to make an update for the following: Delete the triple (o,p,s)
if the other direction (s,p,o)
exists.
My query looks as follows:
DELETE {?s ?p ?o} where {
?s <http://n1> ?o .
FILTER (EXISTS {?o <http://n1> ?s } && (str(?s) > str(?o) ))
}
My model is the following:
<http://0> <http://n1> <http://1> .
<http://1> <http://n1> <http://0> .
My intention is to only delete one of the two triples (it does not matter which one). But the update deletes both triples. How can I change that?