SPARQL

SPARQL (SPARQL Protocol And RDF Query Language) is a standard query language for data on the web which in turn is expressed in RDF). It was standardized by the W3C and released as a W3C Recommendation on 15 January 2008.CiteRef::web:w3:tr:rdf-sparql-query The succeeding SPARQL 1.1 was released as a W3C Recommendation on 21 March 2013CiteRef::web:w3:tr:sparql11-overview which added update capabilities and is already supported by many implementations.

With SPARQL you can ask an endpoint for any answers that match a specific pattern that you provide. For example, asking

will return the label of all events that are located in Karlsruhe (or, more exactly, all labels of entities that are subject in a triple with the property https://www.semantic-mediawiki.org/id/Property-3ALocated_in and the object https://www.semantic-mediawiki.org/id/Karlsruhe .)

SPARQL in Semantic MediaWiki
Since RDF databases can be used to store data that then offer SPARQL web services for querying the wiki. This support was substantially improved with and starting with  RDF databases are regarded to be equally usable as SQL databases.CiteRef::gh:smw:1001:99264575

See the help page on using SPARQL and RDF stores for information on how to make use of this.

Further resources

 * Wikipedia entry on SPARQL
 * SPARQL query language specification
 * SPARQL protocol specification