A run file (.vae): KB forms in the text KB format, plus directives written as EDN
tags. #base names the KB a run starts from, #context the context the forms after it
assert into, #solve the options the solve reads after it run under, and #include
another run file or a text KB. The rest are the reads a run answers once every form is
stored. read-run-file reads one into the entries
text/load-entries! takes and the reads in file order. See docs/operations.md.
A **run file** (`.vae`): KB forms in the text KB format, plus directives written as EDN tags. `#base` names the KB a run starts from, `#context` the context the forms after it assert into, `#solve` the options the solve reads after it run under, and `#include` another run file or a text KB. The rest are the reads a run answers once every form is stored. `read-run-file` reads one into the entries `text/load-entries!` takes and the reads in file order. See docs/operations.md.
(base-kb base)(base-kb base root)A new in-RAM KB holding base, one of base-names: restored from the export dump under
<root>/<base> when one matches this engine and its shipped files, and otherwise loaded
and then dumped there (starter/load-through-dump). root defaults to
<java.io.tmpdir>/vaelii-run-dump.
A new in-RAM KB holding `base`, one of `base-names`: restored from the export dump under `<root>/<base>` when one matches this engine and its shipped files, and otherwise loaded and then dumped there (`starter/load-through-dump`). `root` defaults to `<java.io.tmpdir>/vaelii-run-dump`.
The KBs #base may name: core holds kb/upper/core.txt and interface-rules.txt,
upper every kb/upper/ file, and starter the upper and middle layers.
The KBs `#base` may name: `core` holds `kb/upper/core.txt` and `interface-rules.txt`, `upper` every `kb/upper/` file, and `starter` the upper and middle layers.
The base a run starts from when no file names one.
The base a run starts from when no file names one.
The context a form asserts into before any #context names another.
The context a form asserts into before any `#context` names another.
Every directive a run file may hold, with the argument it takes: :base one of
base-names, :context a context name, :path a string, :pattern a list,
:sentence a list holding no variable, and :options a map of answer-sets options.
Every directive a run file may hold, with the argument it takes: `:base` one of `base-names`, `:context` a context name, `:path` a string, `:pattern` a list, `:sentence` a list holding no variable, and `:options` a map of `answer-sets` options.
(read-run-file path)Read the run file at path and every file it includes, as
{:base b :entries [[form context] …] :reads [{:directive d :arg p :context c :file f :line n} …] :files [path …]}. :base is nil when no file names one, and a solve read
under a non-empty #solve map holds it as :solve. An entry read
from a run file carries {:file :line} as metadata. Refusals: :bad-directive, its
:mismatch one of :unknown-key, :misplaced, :bad-value, :conflict (two bases)
and :cycle (an include of a file already being read); :missing-resource; :unreadable.
Read the run file at `path` and every file it includes, as
`{:base b :entries [[form context] …] :reads [{:directive d :arg p :context c :file f
:line n} …] :files [path …]}`. `:base` is nil when no file names one, and a solve read
under a non-empty `#solve` map holds it as `:solve`. An entry read
from a run file carries `{:file :line}` as metadata. Refusals: `:bad-directive`, its
`:mismatch` one of `:unknown-key`, `:misplaced`, `:bad-value`, `:conflict` (two bases)
and `:cycle` (an include of a file already being read); `:missing-resource`; `:unreadable`.(run-in kb {:keys [entries reads]} depth)Assert the entries of program (read-run-file's map) into kb as load-text! does,
then answer its reads at rule depth depth, solving each context's program once per
reading and option map. Returns {:answers [read …]}, each read
with its answer (answer), or, when an entry is refused, {:refused [{:file :line :form :context :error} …]} and no answers.
Assert the entries of `program` (`read-run-file`'s map) into `kb` as `load-text!` does,
then answer its reads at rule depth `depth`, solving each context's program once per
reading and option map. Returns `{:answers [read …]}`, each read
with its answer (`answer`), or, when an entry is refused, `{:refused [{:file :line :form
:context :error} …]}` and no answers.(stopped-short? {:keys [status]})Did read, answered by run-in, stop short of its whole answer?
Did `read`, answered by `run-in`, stop short of its whole answer?
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |