SPARQL

__NOTOC__
'SPARQL' (pronounced "" [1]) is an RDF query language; its name is a recursive acronym that stands for 'SPARQL Protocol and RDF Query Language'. It is undergoing standardization by the ''RDF Data Access Working Group'' (DAWG) of the World Wide Web Consortium. On the track towards status of W3C recommendation, it was 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]
SPARQL allows for a query to consist of triple patterns, conjunctions, disjunctions, and optional patterns.[4]
Several implementations for multiple programming languages exist. "SPARQL will make a huge difference" according to Sir Tim Berners-Lee in a May 2006 interview. [5]

Contents
Example
References
External links
Specs, articles, and tutorials
Tool support
Public SPARQL query service endpoints
Various SPARQL use-case demos

Example


The following SPARQL query returns all African capitals:
PREFIX abc:
SELECT ?capital ?country
WHERE {
?x abc:cityname ?capital.
?y abc:countryname ?country.
?x abc:isCapitalOf ?y.
?y abc:isInContinent abc:africa.
}
Variables are outlined through the "?" prefix ("$" is also possible). The ?capital and the ?country will be returned. The SPARQL query processor will search for all hits that match the pattern of these four RDF-triples. Important to note here is the "property orientation" (class matches can be conducted solely through class-attributes / properties - see Duck_typing)
Because the readability of the query will not be good when using the full URIs each time - the prefix "abc" stands for „http://mynamespace.com/exampleOntologie#

References


1. SPARQL Will Make the Web Shine Jim Rapoza
2. SPARQL Query Language for RDF : W3C Working Draft Eric Prud'hommeaux, W3C; Andy Seaborne, Hewlett-Packard Laboratories
3. http://www.w3.org/blog/SW/2007/06/15/sparql_is_a_candidate_recommendation
4. XML and Web Services In The News
5. Berners-Lee looks for Web's big leap

External links


Specs, articles, and tutorials


W3C RDF Data Access Working Group

XML.com: Introducing SPARQL: Querying the Semantic Web

SPARQL Query language

SPARQL Protocol

SPARQL Query XML Results Format

SPARQL Frequently Asked Questions

SPARQL Tutorial on the Jena/ARQ site
Tool support


AllegroGraph RDFStore

Protégé

RDF api for PHP

TopBraid Composer

Virtuoso Universal Server
Public SPARQL query service endpoints


Pellet OWL Reasoner

ARC

SPARQLer

Virtuoso Universal Server

DBpedia
Various SPARQL use-case demos


SPARQL Calendar Demo

SPARQL & Web Clipboard Demo

Live SPARQL Demo - Virtuoso Universal Server

This article provided by Wikipedia. To edit the contents of this article, click here for original source.

psst.. try this: add to faves