Liking cljdoc? Tell your friends :D

naga.store

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.
raw docstring

assert-schemaclj/s

(assert-schema store schema & {:as opts})

Convenience function to avoid passing empty options

Convenience function to avoid passing empty options
sourceraw docstring

node-labelclj/s

(node-label s n)

Returns a keyword label for a node

Returns a keyword label for a node
sourceraw docstring

retrieve-contentsclj/s

(retrieve-contents store)

Convenience function to retrieve the contents of the entire store

Convenience function to retrieve the contents of the entire store
sourceraw docstring

Storageclj/s≠protocol

queryclj/s

(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.

deltasclj/s

(deltas store)

Returns the latest updated subjects in the represented store

Returns the latest updated subjects in the represented store

container-propertyclj/s

(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-dataclj/s

(retract-data store data)

Removes existing axioms

Removes existing axioms

count-patternclj/s

(count-pattern store pattern)

Counts the size of a pattern resolition against storage

Counts the size of a pattern resolition against storage

resolve-patternclj/s

(resolve-pattern store pattern)

Resolves a pattern against storage

Resolves a pattern against storage

query-insertclj/s

(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-txclj/s

(commit-tx store)

Commits a transaction, if supported

Commits a transaction, if supported

start-txclj/s

(start-tx store)

Starts a transaction, if supported

Starts a transaction, if supported

assert-schema-optsclj/s

(assert-schema-opts store schema opts)

Inserts a new schema, if supported

Inserts a new schema, if supported

node-type?clj/s

(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-idclj/s

(node-id store n)

Returns a id for a node. Numbers are good

Returns a id for a node. Numbers are good

assert-dataclj/s

(assert-data store data)

Inserts new axioms

Inserts new axioms

data-propertyclj/s

(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-nodeclj/s

(new-node store)

Allocates a node for the store

Allocates a node for the store
source

StorageTypeclj/s

source

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

× close