Youtube

Go to The Main Page Add Youtube to favorite!

SPARQL 

Part of a series on
Semantic Web
Background

The World Wide Web, The Internet, Databases, Semantic networks, Knowledge bases, Ontologies

Sub-topics

Linked Data, Data Web, Hyperdata, Dereferenceable URIs, Ontologies, Rule bases, Data Spaces

Related Topics

Web 2.0, Web 3.0, Plain Old Semantic HTML, Search engine optimization, Open Database Connectivity, References, Information architecture, Knowledge management, Topic Maps, XML, Description logic

Standards

W3C based
RDF, OWL, URI, HTTP, SPARQL, GRDDL, RDFS
Common Vocabularies
FOAF, SIOC, Dublin Core, SKOS
Semantic Annotation
RDFa, Microformats, eRDF
Rules
Rule Interchange Format, Semantic Web Rule Language

People

Tim Berners-Lee, James Hendler, Ora Lassila, Nigel Shadbolt, Wendy Hall, Kingsley Idehen, Dan Brickley, Libby Miller, Dave Beckett

Key Semantic-Web Organizations

W3C, WRSI, MIT, OpenLink Software, Talis Group, Oracle , ClearForest, University of Southampton, DERI


SPARQL (pronounced "sparkle" [1]) is an RDF query language; its name is a recursive acronym that stands for SPARQL Protocol and RDF Query Language. It is standardized by the RDF Data Access Working Group (DAWG) of the World Wide Web Consortium. Initially released as a Candidate Recommendation in April 2006, but returned to Working Draft status in October 2006, due to two open issues. [2] In June 2007, SPARQL advanced to Candidate Recommendation once again. [3] On 12th November 2007 the status of SPARQL changed into Proposed Recommendation. [4] On 15th January 2008, SPARQL became an official W3C Recommendation. [5]

SPARQL allows for a query to consist of triple patterns, conjunctions, disjunctions, and optional patterns.[6]

Several implementations for multiple programming languages exist. "SPARQL will make a huge difference" according to Sir Tim Berners-Lee in a May 2006 interview. [7]

Example

The following simple SPARQL query returns all country capitals in Africa:

PREFIX abc: <http://example.com/exampleOntology#> 
SELECT ?capital ?country
WHERE {
  ?x abc:cityname ?capital ;
     abc:isCapitalOf ?y .
  ?y abc:countryname ?country ;
     abc:isInContinent abc:Africa .
}

Variables are indicated by a "?" or "$" prefix. Bindings for ?capital and the ?country will be returned.

The SPARQL query processor will search for sets of triples that match these four triple patterns, binding the variables in the query to the corresponding parts of each triple. Important to note here is the "property orientation" (class matches can be conducted solely through class-attributes / properties - see Duck typing)

To make queries concise, SPARQL allows the definition of prefixes and base URIs in a fashion similar to Turtle. In this query, the prefix "abc" stands for “http://example.com/exampleOntology#”.

References

  1. ^ Jim Rapoza (May 2, 2006). "SPARQL Will Make the Web Shine". eWeek. Retrieved on 2007-01-17.
  2. ^ Eric Prud'hommeaux, W3C; Andy Seaborne, Hewlett-Packard Laboratories (4 October 2006). "SPARQL Query Language for RDF : W3C Working Draft". Retrieved on 2007-01-17.
  3. ^ W3C Semantic Web Activity News - SPARQL is a Candidate Recommendation
  4. ^ Archive of W3C News in 2007
  5. ^ W3C Semantic Web Activity News - SPARQL is a Recommendation
  6. ^ "XML and Web Services In The News". xml.org (6 October 2006). Retrieved on 2007-01-17.
  7. ^ Reuters (22 May 2006). "Berners-Lee looks for Web's big leap", zdnet.co.uk. Retrieved on 2007-01-17. 

External links

Could not update stat
UP