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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access