SPARQL
From semantic-mediawiki.org
SPARQL is a standard query language for data on the web (which, in turn, is expressed in RDF). It was standardized by the W3C in 2007. You can ask an endpoint for any answers that match a specific pattern that you provide. For example, asking
SELECT ?event WHERE {
?e <http://www.semanticweb.org/id/Property-3AHas_location_city> <http://www.semanticweb.org/id/Beijing> .
?e rdfs:label ?event
}
will return the label of all events that are located in Beijing (or, more exactly, all labels of entities that are subject in a triple with the property http://www.semanticweb.org/id/Property-3AHas_location_city and the object http://www.semanticweb.org/id/Beijing .)
SPARQL in Semantic MediaWiki
As of SMW version 1.1, Semantic MediaWiki can be used in conjunction with RDF-stores that then offer SPARQL web services for querying the wiki. This is documented at Help:SPARQL endpoint. While the general architecture for that can be used with arbitrary stores, only bindings for the PHP-based RAP store exists. Further bindings are under development, but support from external developers is appreciated.

