(->relational-model)
(->relational-model [res ctx])
(->relational-model [res ctx] e)
Step function for the conversion of the hierachical input model into a relational model of nodes, relations and views.
Step function for the conversion of the hierachical input model into a relational model of nodes, relations and views.
(add-node acc p e)
Update the accumulator acc
of the model with the node e
in the context of the parent p
(if given).
Update the accumulator `acc` of the model with the node `e` in the context of the parent `p` (if given).
(add-reference acc p e)
Update the accumulator acc
of the model with the reference e
in the context of the parent p
(if given).
Update the accumulator `acc` of the model with the reference `e` in the context of the parent `p` (if given).
(add-relation acc p e)
Update the accumulator acc
of the model with the relation e
in the context of the parent p
(if given).
Update the accumulator `acc` of the model with the relation `e` in the context of the parent `p` (if given).
(add-theme acc p e)
Update the accumulator acc
of the model with the view e
in the context of the parent p
(if given).
Update the accumulator `acc` of the model with the view `e` in the context of the parent `p` (if given).
(add-view acc p e)
Update the accumulator acc
of the model with the view e
in the context of the parent p
(if given).
Update the accumulator `acc` of the model with the view `e` in the context of the parent `p` (if given).
(build-model coll)
(build-model options coll)
Builds the working model from the input coll
of elements.
Builds the working model from the input `coll` of elements.
(contained-in-relation p-id e-id)
Returns a contained-in relation for parent p
and element e
.
Returns a contained-in relation for parent `p` and element `e`.
(identified-node e p)
Returns the node e
with the id set. Generates the id from e
s name and the parent p
s id.
Returns the node `e` with the id set. Generates the id from `e`s name and the parent `p`s id.
(identified-relation e)
Returns the relation e
with the id set. Generates the id from e
s name and the parent p
s id.
Returns the relation `e` with the id set. Generates the id from `e`s name and the parent `p`s id.
(input-child? e p)
Returns true, if element e
is a child of model element p
in the input model.
Returns true, if element `e` is a child of model element `p` in the input model.
(input-elements)
(input-elements model)
Returns the set of input elements.
Returns the set of input elements.
(model-elements)
(model-elements model)
Returns the set of model elements (nodes and relations).
Returns the set of model elements (nodes and relations).
(node-by-id id)
(node-by-id model id)
Returns the node with the given id
.
Returns the node with the given `id`.
Reads the models with the repository of type rtype
from all locations of the given path
.
Reads the models with the repository of type `rtype` from all locations of the given `path`.
(relation-by-id id)
(relation-by-id model id)
Returns the relation with the given id
.
Returns the relation with the given `id`.
(relations)
(relations model)
Returns the set of relations.
Returns the set of relations.
(repo-type rtype)
(repo-type rtype _)
Returns the repository type.
Returns the repository type.
(theme-by-id id)
(theme-by-id model id)
Returns the theme with the given id
.
Returns the theme with the given `id`.
(themes)
(themes model)
Returns the set of themes.
Returns the set of themes.
(update-acc acc p e)
Update the accumulator acc
of the model with the element e
in the context of the parent p
(if given).
Update the accumulator `acc` of the model with the element `e` in the context of the parent `p` (if given).
(update-state! options)
Updates the state with the registered data read from path
.
Updates the state with the registered data read from `path`.
(view-by-id id)
(view-by-id model id)
Returns the view with the given id
.
Returns the view with the given `id`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close