pub struct Prepared {Show 14 fields
pub schema: u32,
pub name: String,
pub iri: String,
pub version: String,
pub language: Language,
pub evaluator: String,
pub program: String,
pub requires: BTreeSet<String>,
pub granted: BTreeSet<String>,
pub exclusions: BTreeSet<String>,
pub public: bool,
pub state: State,
pub sparql: Option<Analysis>,
pub plan: Option<Analysis>,
}Expand description
The compiled form: everything a run needs, in one cacheable resource hung from the
script’s thread. For Lisp the “compilation” is preparation — the evaluator offers no
separate compile step to cache — so this is the program and the authority it runs
under, bound to the version they came from. For SPARQL it adds what the parsed text
says: its form, its parameters and the graphs it names (Analysis).
Fields§
§schema: u32§name: StringThe script.
iri: Stringurn:script:{name}:compiled.
version: StringThe version prepared.
language: LanguageIts language.
evaluator: StringThe door a run issues to: urn:lisp:eval, or the host’s SPARQL door for this form.
program: StringThe program.
requires: BTreeSet<String>What it declares (for SPARQL: what its text derives).
granted: BTreeSet<String>What its publisher held of that.
exclusions: BTreeSet<String>The publisher’s exclusions.
public: boolWhether it is public.
state: StateIts state.
sparql: Option<Analysis>For a SPARQL script: its form, parameters and graphs, read from the parsed text.
plan: Option<Analysis>For a plan: its process, its steps’ verbs (read or write) and its parameters.