Liking cljdoc? Tell your friends :D

naga.storage.memory.index

A graph implementation with full indexing.

A graph implementation with full indexing.
raw docstring

?clj

source

empty-graphclj

source

get-from-indexcljmultimethod

Lookup an index in the graph for the requested data

Lookup an index in the graph for the requested data
sourceraw docstring

Graphcljprotocol

graph-addclj

(graph-add this subj pred obj)

Adds triples to the graph

Adds triples to the graph

graph-deleteclj

(graph-delete this subj pred obj)

Removes triples from the graph

Removes triples from the graph

resolve-tripleclj

(resolve-triple this subj pred obj)

Resolves patterns from the graph, and returns unbound columns only

Resolves patterns from the graph, and returns unbound columns only
source

index-addclj

(index-add idx a b c)

Inputs: [idx :- {s/Any {s/Any s/Any}} a :- s/Any b :- s/Any c :- s/Any] Returns: {s/Any {s/Any #{s/Any}}}

Add elements to a 3-level index

Inputs: [idx :- {s/Any {s/Any s/Any}} a :- s/Any b :- s/Any c :- s/Any]
Returns: {s/Any {s/Any #{s/Any}}}

Add elements to a 3-level index
sourceraw docstring

index-deleteclj

(index-delete idx a b c)

Inputs: [idx :- {s/Any {s/Any #{s/Any}}} a :- s/Any b :- s/Any c :- s/Any] Returns: {s/Any {s/Any #{s/Any}}}

Remove elements from a 3-level index. Returns the new index, or nil if there is no change.

Inputs: [idx :- {s/Any {s/Any #{s/Any}}} a :- s/Any b :- s/Any c :- s/Any]
Returns: {s/Any {s/Any #{s/Any}}}

Remove elements from a 3-level index. Returns the new index, or nil if there is no change.
sourceraw docstring

resolve-patternclj

(resolve-pattern graph [s p o :as pattern])

Convenience function to extract elements out of a pattern to query for it

Convenience function to extract elements out of a pattern to query for it
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close