Chapter 8Querying RDF with SPARQL

In the previous chapter, we talked about the rdf package from the RDF.ex project for RDF processing in Elixir. But there is also a sparql_client package for querying RDF graph stores with SPARQL. So let’s have a look at that. In fact, there are two SPARQL packages: sparql[66] (from the SPARQL.ex project) for querying in-memory RDF models and sparql_client[67] (from the SPARQL.Client project) for dispatching queries to RDF graph databases, or RDF triplestores as they’re usually referred to. We’re going to focus here on querying graph services using the sparql_client package, although we’ll also discuss querying in-memory models with the sparql package.

Get Exploring Graphs with Elixir now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.