SPARUL explained

SPARUL, or SPARQL/Update, was a declarative data manipulation language that extended the SPARQL 1.0 query language standard. SPARUL provided the ability to insert, delete and update RDF data held within a triple store or quad store. SPARUL was originally written by Hewlett-Packard and has been used as the foundation for the current W3C recommendation entitled SPARQL 1.1 Update.[1] With the publication of SPARQL 1.1, SPARUL is superseded and should only be consulted as a source of inspiration for possible future refinements of SPARQL, but not for real-world applications.

Examples

Adding some triples to a graph. The snippet describes two RDF triples to be inserted into the default graph of the RDF store.PREFIX dc: INSERT DATA

This SPARQL/Update request contains a triple to be deleted and a triple to be added (used here to correct a book title). The requested change happens in the named graph identified by the URI <nowiki>http://example/bookStore. </nowiki>PREFIX dc:

DELETE DATA FROM

INSERT DATA INTO

The example below has a request to delete all records of old books (with date before year 2000)PREFIX dc: PREFIX xsd:

DELETE WHERE

This snippet copies records from one named graph to another named graph based on a pattern.PREFIX dc: PREFIX xsd:

INSERT INTO WHERE

An example to move records from one named graph to another named graph based on a pattern.PREFIX dc: PREFIX xsd:

INSERT INTO WHERE DELETE FROM WHERE

SPARQL/Update implementations

Clients supporting SPARUL

References

  1. Web site: SPARQL 1.1 Update. 2021-01-07. www.w3.org.
  2. http://d2rq.org/ D2R Server
  3. http://parliament.semwebcentral.org/ Parliament
  4. http://www.w3.org/2005/ajar/tab "The Tabulator"

External links