Search⌘ K
AI Features

Step 2: Put RDF into the Local Property Graph Database

Explore the process of importing an RDF graph into a local property graph database. Learn how to configure the graph, create uniqueness constraints, and verify imported data using Elixir's tools for graph data transformation.

We'll cover the following...

Workflow

We’ll now import the RDF graph we created into our property graph database:

XML
iex> graph_service PropertyGraph
iex> graph_delete
iex> graph_info
iex> "CALL n10s.graphconfig.init()" |> cypher!
iex> """
...> CREATE CONSTRAINT n10s_unique_uri ON (r:Resource)
...> ASSERT r.uri IS UNIQUE;
...> """ |> cypher!
iex> bob_uri = "file://" <> bob_graph.path
iex> "CALL n10s.rdf.import.fetch('" <> bob_uri <> "', 'Turtle')" |> cypher!
...