Chapter 5. SPARQL—querying the Linked Data Web

This chapter covers

  • An introduction to the SPARQL query language for RDF
  • Sample SPARQL queries
  • An overview of SPARQL query types
  • SPARQL results formats

Every database needs a query language. SPARQL is to RDF data as SQL is to a relational database. SPARQL is the query language for structured data on the Web, specifically data accessible in RDF formats or representable as such. SPARQL is therefore the query language for Linked Data. The primary purpose of SPARQL is to provide a formal language in which meaningful questions can be phrased.

This chapter discusses how to query the Web of Data as if it were a database—a big, highly distributed database on the internet. A query language for the Web ...

Get Linked Data now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.