Storage API for Naga to talk to graph stores. Also includes some utility functions.
Storage API for Naga to talk to graph stores. Also includes some utility functions.
(assert-schema store schema & {:as opts})
Convenience function to avoid passing empty options
Convenience function to avoid passing empty options
(node-label s n)
Returns a keyword label for a node
Returns a keyword label for a node
(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.
(deltas store)
Returns the latest updated subjects in the represented store
Returns the latest updated subjects in the represented store
(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
(retract-data store data)
Removes existing axioms
Removes existing axioms
(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
(assert-schema-opts store schema opts)
Inserts a new schema, if supported
Inserts a new schema, 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