Background on SPARQL Sample Clauses

Background on SPARQL. SPARQL is the W3C-backed query language for RDF and became an official W3C recommendation in 2008 [l3]. The language is inspired by SQL and adopts many of its keywords, such as SELECT, DISTINCT, FROM, and WHERE. Because of RDF’s graph-like nature, additional keywords are nec- ▇▇▇▇▇▇, such as PREFIX, OPTIONAL, UNION, and GRAPH. An example SPARQL query is shown in Figure 2.3. SELECT ?capital ?state WHERE { ?x city_name ?capital ; ?x capital_of ?y ; ?y state_name ?state ;