Liking cljdoc? Tell your friends :D

ont-app.datascript-graph.core


ask-s-p-oclj/s

(ask-s-p-o db s p o)
source

DatascriptGraphcljs

An IGraph compliant view on a Datascript graphs With arguments [<db> Where <db> is an instance of a Datascript database.

An IGraph compliant view on a Datascript graphs
With arguments [<db>
Where
<db> is an instance of a Datascript database.
sourceraw docstring

get-entity-idclj/s

(get-entity-id db s)
source

get-normal-formclj/s

(get-normal-form db)
source

get-referenceclj/s

(get-reference db e)
source

get-subjectsclj/s

(get-subjects db)
source

get-valAtclj/s

(get-valAt d avet)
source

graph-differenceclj/s

(graph-difference g1 g2)
source

graph-intersectionclj/s

(graph-intersection g1 g2)
source

graph-unionclj/s

(graph-union g1 g2)
source

igraph-schemaclj/s

The basic schema that informs the IGraph implmentation. ::id is the identifier for <s> arguments ::top is true for a subject with no elaborating attributes, (this will provide a basis for a dummy triple declaration for its reference).

The basic schema that informs the IGraph implmentation.
::id is the identifier for <s> arguments
::top is true for a subject with no elaborating attributes,
  (this will provide a basis for a dummy triple declaration for
  its reference).
sourceraw docstring

make-graphclj/s

(make-graph)
(make-graph schema)

Returns an instance of DatascriptGraph. Where <schema> must contain Datascript schema declaration for every <p>. See also https://github.com/kristianmandrup/datascript-tutorial/blob/master/create_schema.md

Returns an instance of DatascriptGraph.
Where
<schema> must contain Datascript schema declaration for every <p>.
See also <https://github.com/kristianmandrup/datascript-tutorial/blob/master/create_schema.md>
sourceraw docstring

maybe-dereferenceclj/s

(maybe-dereference db a v)
source

normalized-query-outputclj/s

(normalized-query-output db query-spec)

Returns [<binding> ...] per igraph spec for <query-spec> posed to <db> Where <binding> := {<var> <value> ...} <query-spec> := either <query> without an ':in' clause or a map of the form {:query :args} if query has an ':in' clause <db> is a datascript db <var> is taken from the :from clause of <query> <value> is a value bound to <var> in the query response <query> is a datascript query vector <args> := [<db> <arg> ...] binding to the :in clause of <query> if it exists, or := [<db>] otherwise <arg> matches and element of any :in clause in <query>

Returns [<binding> ...] per igraph spec for <query-spec> posed to <db>
Where
<binding> := {<var> <value> ...} 
<query-spec> := either <query> without an ':in' clause or a map
  of the form {:query :args} if query has an ':in' clause
<db> is a datascript db
<var> is taken from the :from clause of <query>
<value> is a value bound to <var> in the query response
<query> is a datascript query vector
<args> := [<db> <arg> ...] binding to the :in clause of <query> if it exists, or
  := [<db>] otherwise
<arg> matches and element of any :in clause in <query>
sourceraw docstring

query-for-oclj/s

(query-for-o db s p)
source

query-for-p-oclj/s

(query-for-p-o db s)
source

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

× close