DELETE and DELETE DATA
The DELETE function deletes the specified graph or triple patterns from the database. The DELETE DATA function deletes specific triples from the database. DELETE DATA statements cannot include variables.
DELETE Syntax
Use the following syntax to delete graph and triple patterns with the DELETE function.
DELETE { graph_and_triple_patterns } WHERE { graph_and_triple_patterns }
DELETE DATA Syntax
Use the following syntax to delete specific triples with the DELETE DATA function.
DELETE DATA { [ GRAPH <graph> { ] triples } [ } ]
The optional GRAPH statement specifies the graph to delete the triples from. The triples that you list must include URIs, literal, values, or blank nodes. You cannot specify triple patterns with variables. For example, the query below uses DELETE DATA to remove the person0 triples from the tickit graph:
DELETE { GRAPH <tickit> { <person0> <firstname> "Jay" . <person0> <lastname> "Stevens" . <person0> <state> "CA" . } }