GraphStore`
GraphStore`

SPARQLUpdate

SPARQLUpdate[operator1/*operator2/*]

is an update operator that can be applied to an RDFStore.

SPARQLUpdate["update"]

uses a SPARQL update string.

Details

  • SPARQLUpdate can be used in SPARQLExecute to update data in SPARQL endpoint.
  • When SPARQLUpdate is applied to an RDFStore an updated store is returned. The original store is not modified.
  • The following options can be given:
  • "Base"Nonebase IRI used to resolve relative IRIs
  • SPARQLUpdate[File[...]] and SPARQLQuery[URL[...]] are also supported.

Examples

Basic Examples  (1)

In[1]:=
Click for copyable input

Start with an empty graph:

In[2]:=
Click for copyable input

Insert data about strawberries:

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

Insert more data using a SPARQL update string:

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

Delete all data about red fruits:

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