GraphStore`
GraphStore`

SPARQLDelete

SPARQLDelete[patterntemplate]

is an update operator that can be applied to an RDFStore, which deletes data generated from template, based on solutions of matching pattern.

SPARQLDelete[pattern]

uses pattern as template.

Details

  • SPARQLDelete can be used in SPARQLExecute to delete data from a SPARQL endpoint.
  • In SPARQLDelete[patterntemplate], template corresponds to the DELETE clause, and pattern corresponds to the WHERE clause of a SPARQL update request.
  • In SPARQLDelete[pattern], pattern corresponds to the DELETE WHERE clause of a SPARQL update request.

Examples

Basic Examples  (1)

In[1]:=
Click for copyable input

Specify a graph with data about fruits:

In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=

Remove all red fruits:

In[4]:=
Click for copyable input
Out[4]=