SPARUL, or SPARQL/Update, was a
declarative data manipulation language
A data manipulation language (DML) is a computer programming language used for adding (inserting), deleting, and modifying (updating) data in a database. A DML is often a sublanguage of a broader database language such as SQL, with the DML com ...
that extended the
SPARQL
SPARQL (pronounced ":wikt:sparkle, sparkle", a recursive acronym for SPARQL Protocol and RDF Query Language) is an RDF query language—that is, a Semantic Query, semantic query language for databases—able to retrieve and manipulate data sto ...
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
The Hewlett-Packard Company, commonly shortened to Hewlett-Packard ( ) or HP, was an American multinational information technology company. It was founded by Bill Hewlett and David Packard in 1939 in a one-car garage in Palo Alto, California ...
and has been used as the foundation for the current
W3C recommendation
The World Wide Web Consortium (W3C) is the main international standards organization for the World Wide Web. Founded in 1994 by Tim Berners-Lee, the consortium is made up of member organizations that maintain full-time staff working together in ...
entitled SPARQL 1.1 Update. 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
http://example/bookStore.
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
{ GRAPH
{ ?book dc:date ?date .
FILTER ( ?date < "2000-01-01T00:00:00"^^xsd:dateTime )
?book ?p ?v
}
}
SPARQL/Update implementations
*
AllegroGraph
*
ARQ
* D2R Server
*
Jena
Jena (; ) is a List of cities and towns in Germany, city in Germany and the second largest city in Thuringia. Together with the nearby cities of Erfurt and Weimar, it forms the central metropolitan area of Thuringia with approximately 500,000 in ...
* OntoBroker
* Ontotext OWLIM
*
Oracle DB Enterprise Ed.
* Parliament
*
Redland / Redstore
* StrixDB supports SPARQL/Update 1.0.
* OpenLink
Virtuoso Universal Server
Clients supporting SPARUL
* tabulator
"The Tabulator"
/ref>
References
External links
SPARQL/Update
W3C
The World Wide Web Consortium (W3C) is the main international standards organization for the World Wide Web. Founded in 1994 by Tim Berners-Lee, the consortium is made up of member organizations that maintain full-time staff working together in ...
Member Submission
SPARQL 1.1 Update
Proposed Recommendation from W3C SPARQL Working Group
EditingData wiki page
- summary (maintained by Tim Berners-Lee
Sir Timothy John Berners-Lee (born 8 June 1955), also known as TimBL, is an English computer scientist best known as the inventor of the World Wide Web, the HTML markup language, the URL system, and HTTP. He is a professorial research fellow a ...
) of ways to edit linked data
RDF data access