Wrapping Up
In this chapter, we looked at the SPARQL query language and saw how it can be used to query RDF graphs.
Specifically, we used the sparql_client package to query RDF graph services from Elixir. (We also discussed querying in-memory RDF data structures using the sparql package.)
We queried a local graph service using our book graph RDF model and also a public RDF dataset for the Tokyo Metro. And since we control the local graph service, we can also write to it. We saw an example of enriching the RDF dataset by adding in rdf:type statements which are used for classifying entities.
A number of public SPARQL endpoints on the web are available for querying. We used our sparql! function to query a couple of them. First, we demonstrated a ...
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.