Caylir.Graph behaviour

Base module to define graph connections.

Example

defmodule SomeGraph do
  use Caylir.Graph

  def conf() do
    [ host: "localhost", port: 64210 ]
  end
end
Source

Types

t_delete :: :ok | {:error, String.t}

t_query :: any | {:error, String.t}

t_write :: :ok | {:error, String.t}

Callbacks

child_spec/0

Specs:

Returns the child specification to start and supervise the graph connection.

Source
conf/0

Specs:

Should return the configuration options used to communicate with the graph.

Needed parameters:

  • host
  • port
Source
delete/1

Specs:

Deletes a quad from the graph.

Source
query/1

Specs:

Queries the graph.

Source
write/1

Specs:

Writes a quad to the graph.

Source