SPARQL First Draft

The first draft of SPARQL Query Language for RDF has been issued. Understandably there are huge gaps in the text, but it looks very promising. The syntax is of the RDQL/SquishQL stable. However, it includes something that I've always felt was lacking from previous query languages - the capability to return graphs instead of lists of bound variables. There are four query forms:

SELECT
This form is the standard bound variable list, returned as XML or an as-yet-to-be-defined RDF/XML format.
CONSTRUCT
This form returns a graph of the results. You can use an asterisk to specify that the graph consists of all the matching triples, or provide a graph template.
DESCRIBE
This is a bit hazy, but the text suggests that something like CBDs will be returned for the results.
ASK
This is an efficient way of testing whether anything matches in the graph without having to perform all the backtracking to return all the results

Of course, these can and will probably change but I'm going to be watching developments with great interest.

Permalink: http://blog.iandavis.com/2004/10/sparql-first-draft/


Other posts tagged as rdf

Earlier Posts