Caylir.Graph.URL

Utility module to generate the URLs for graph interaction.

Source

Summary

delete(conn)

Returns the URL for deleting quads

query(conn)

Returns the URL to query the graph

shape(conn)

Returns the URL to get the shape of a query

write(conn)

Returns the URL for writing quads

Functions

delete(conn)

Specs:

Returns the URL for deleting quads.

Example

iex> delete([ host: "localhost", port: 64210 ])
"http://localhost:64210/api/v1/delete"
Source
query(conn)

Specs:

Returns the URL to query the graph.

Example

iex> query([ host: "localhost", port: 64210 ])
"http://localhost:64210/api/v1/query/gremlin"
Source
shape(conn)

Specs:

Returns the URL to get the shape of a query.

Example

iex> shape([ host: "localhost", port: 64210 ])
"http://localhost:64210/api/v1/shape/gremlin"
Source
write(conn)

Specs:

Returns the URL for writing quads.

Example

iex> write([ host: "localhost", port: 64210 ])
"http://localhost:64210/api/v1/write"
Source