(->expression [[t & path] [vt [lt var-label]]])Convert a CST path element with possible var binding into AST form
Convert a CST path element with possible var binding into AST form
(->path [tag & args])Convert a CST path element into an AST path element
Convert a CST path element into an AST path element
(jq->graph-query jq-text)Convert a jq query in text form into a graph query structural form. TODO: bind the current store, and use this to determine array lengths when doing negative indexing
Convert a jq query in text form into a graph query structural form. TODO: bind the current store, and use this to determine array lengths when doing negative indexing
(jq-text->structure query-text)Parse a jq string into a query AST
Parse a jq string into a query AST
(load-objs store refs)Retrieves a sequence of objects from a store
Retrieves a sequence of objects from a store
(process-term latest-var {:keys [path variable] :as term})Converts a single term from a jq query into a set of constraint operations. Individual terms are separated by | characters. Return a pair of the variable bound by this term, and the constraints that bind it.
Converts a single term from a jq query into a set of constraint operations. Individual terms are separated by | characters. Return a pair of the variable bound by this term, and the constraints that bind it.
(query->structure [tag & args])Convert a single CST term into AST form
Convert a single CST term into AST form
(query-objects store jquery)Executes a jq query against a store, and returns a sequence of the resulting objects. If the query requests a single variable, then a sequence of objects is returned. If multiple vars are defined, then sequences of the associated objects in order will be returned.
Executes a jq query against a store, and returns a sequence of the resulting objects. If the query requests a single variable, then a sequence of objects is returned. If multiple vars are defined, then sequences of the associated objects in order will be returned.
(query-structure->datalog query)Convert a CST for a query into equivalent datalog
Convert a CST for a query into equivalent datalog
(rewrite-var nvar var statement)Changes all instances of nvar in a statement into var
Changes all instances of nvar in a statement into var
(term->datalog latest-var term)Converts a single term into a seq of constraints and a single var that the constraints will bind. Return: [Var [triples]]
Converts a single term into a seq of constraints and a single var that the constraints will bind. Return: [Var [triples]]
(to-long n)Converts a parameter that is either a string containing a number or a number into number
Converts a parameter that is either a string containing a number or a number into number
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 |