Storage API for talking to external storage
Storage API for talking to external storage
(get-storage-handle {type :type store :store :as config})
Creates a store of the configured type. Throws an exception for unknown types.
Creates a store of the configured type. Throws an exception for unknown types.
(node-label s n)
Returns a keyword label for a node
Returns a keyword label for a node
(register-storage! store-id factory-fn)
(register-storage! store-id factory-fn shutdown-fn)
Registers a new storage type
Registers a new storage type
(retrieve-contents store)
Convenience function to retrieve the contents of the entire store
Convenience function to retrieve the contents of the entire store
(query store output-pattern patterns)
Resolves a set of patterns (if not already resolved), joins the results, and projects the output. The output can contain constant values as well as selected variables.
Resolves a set of patterns (if not already resolved), joins the results, and projects the output. The output can contain constant values as well as selected variables.
(container-property store data)
Returns the property to use to indicate a containership relation for given data. Must be in the naga namespace
Returns the property to use to indicate a containership relation for given data. Must be in the naga namespace
(count-pattern store pattern)
Counts the size of a pattern resolition against storage
Counts the size of a pattern resolition against storage
(resolve-pattern store pattern)
Resolves a pattern against storage
Resolves a pattern against storage
(query-insert store assertion-patterns patterns)
Resolves a set of patterns, joins them, and inserts the set of resolutions
Resolves a set of patterns, joins them, and inserts the set of resolutions
(commit-tx store)
Commits a transaction, if supported
Commits a transaction, if supported
(start-tx store)
Starts a transaction, if supported
Starts a transaction, if supported
(node-type? store p n)
Returns true if the value refered to by a property can be a graph node
Returns true if the value refered to by a property can be a graph node
(node-id store n)
Returns a id for a node. Numbers are good
Returns a id for a node. Numbers are good
(assert-data store data)
Inserts new axioms
Inserts new axioms
(data-property store data)
Returns the property to use for given data. Must be in the naga namespace, and start with 'first'.
Returns the property to use for given data. Must be in the naga namespace, and start with 'first'.
(new-node store)
Allocates a node for the store
Allocates a node for the store
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close