Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deleting triples identified by subject and predicate only

Tags:

rdf

sparql

I can delete a triple identifying it by each of the three elements:

DELETE DATA 
{ GRAPH <http://my.graph.com>
   {
      <http://my.domain.com/foo> <http://standard.com/catalog#title> "ABC" .
   }
};

If I omit "ABC"I get an error. How can I delete triples identifying them by only the first two elements?

like image 200
amphibient Avatar asked Dec 07 '25 18:12

amphibient


1 Answers

You want delete where:

delete where { <http://some-subject> <http://some-predicate> ?anyObject }
like image 180
Joshua Taylor Avatar answered Dec 11 '25 10:12

Joshua Taylor