A graph implementation with full indexing.
A graph implementation with full indexing.
Lookup an index in the graph for the requested data
Lookup an index in the graph for the requested data
(graph-add this subj pred obj)
Adds triples to the graph
Adds triples to the graph
(graph-delete this subj pred obj)
Removes triples from the graph
Removes triples from the graph
(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
(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
(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.
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close