Search⌘ K
AI Features

Step 5: Put RDF into the Local RDF Graph Database

Explore how to store RDF data into a local RDF graph database using Elixir. Learn the workflow of switching contexts, writing to the graph store, managing RDF endpoints, and querying RDF graphs. Understand moving semantic graphs between graph database models.

We'll cover the following...

Workflow

We’ll now store our RDF into the local RDF graph database:

XML
iex> graph_service RDFGraph
iex> bob_neo |> write_graph("bob_neo.ttl")
iex> rdf_store :local
iex> read_graph("bob_neo.ttl") |> graph_create
iex> """
...> PREFIX ex: <http://example/>
...> SELECT * WHERE { ?s ex:uuid ?uuid }
...> """ |> sparql!

Line 1: We switch context ...