Caylir v0.3.0 Caylir.Graph.URL

Utility module to generate the URLs for graph interaction.

Summary

Functions

Returns the URL for deleting quads

Returns the URL to query the graph

Returns the URL to get the shape of a query

Returns the URL for writing quads

Functions

delete(conn)
delete(Keyword.t) :: String.t

Returns the URL for deleting quads.

Example

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

Returns the URL to query the graph.

Example

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

Returns the URL to get the shape of a query.

Example

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

Returns the URL for writing quads.

Example

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