Caylir.Graph.URL
Utility module to generate the URLs for graph interaction.
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
Specs:
Returns the URL for deleting quads.
Example
iex> delete([ host: "localhost", port: 64210 ])
"http://localhost:64210/api/v1/delete"
Specs:
Returns the URL to query the graph.
Example
iex> query([ host: "localhost", port: 64210 ])
"http://localhost:64210/api/v1/query/gremlin"
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"
Specs:
Returns the URL for writing quads.
Example
iex> write([ host: "localhost", port: 64210 ])
"http://localhost:64210/api/v1/write"