(add-aggregate-cols res aggregate)
(add-fuel add-amount fuel max-fuel)
(aggregate? x)
(bind-clause->vars res clause)
(calculate-aggregate res agg)
(clause->keys clause)
(clause->rel db interm-vars clause)
Given any interm-vars, such as {?article 351843720901583} and an fdb clause, such as ["?article", "articles/leadInstitutionOrg", "?org"],
Returns a map with the following keys:
Given any interm-vars, such as {?article 351843720901583} and an fdb clause, such as ["?article", "articles/leadInstitutionOrg", "?org"], Returns a map with the following keys: - search - a vector that will be passed to query-range/search, i.e. [ nil "articles/leadInstitutionOrg" nil ] - rel - a map with any variables (that are not present in interm-vars) and their idx, i.e. {?org 2} - opts - search opts, currently recur, if the predicate is recurred, and object-fn, if there is an object function.
(clause->tuples db
{:keys [prefixes] :as q-map}
{:keys [vars] :as res}
clause
r
optional?
fuel
max-fuel
opts)
Tuples and optional? are only used for Wikidata, because need to both limit calls to Wikidata, and ensure that returned results are as limited as possible (but still relevant).
Tuples and optional? are only used for Wikidata, because need to both limit calls to Wikidata, and ensure that returned results are as limited as possible (but still relevant).
(collection->tuples db res clause)
(db-ident? source)
(escaped-string? form)
(expand-map tuple-map)
(fdb-clause->tuples db
{:keys [headers tuples vars] :as res}
clause
fuel
max-fuel)
(find-match a-tuple a-idxs b-tuples b-idxs b-not-idxs)
Given a single tuple from A, a-idxs, b-idxs, b-not-idxs, and b-tuples, return any tuples in b that match.
Given a single tuple from A, a-idxs, b-idxs, b-not-idxs, and b-tuples, return any tuples in b that match.
(find-match+row-nums a-tuple a-idxs b-tuples b-idxs b-not-idxs)
Given a single tuple from A, a-idxs, b-idxs, b-not-idxs, and b-tuples, return any tuples in b that match. Along with their row-numbers
Given a single tuple from A, a-idxs, b-idxs, b-not-idxs, and b-tuples, return any tuples in b that match. Along with their row-numbers
(follow-all-original-subject-paths subjects tuple-map)
(full-text->tuples db res clause)
(get-ns-arrays ns arrays)
(get-source-clause db clause)
(get-source-clause db clause prefixes opts)
(get-vars filter-code)
(inner-join a-res b-res)
(interm-aggregate? x)
(internal-filter? form)
(intersecting-keys-tuples a-tuples b-tuples)
(intersecting-keys-tuples-clause tuples clause)
(left-outer-join a-tuples b-tuples)
OPTIONAL clause is equivalent to a left outer join. If there are no matches in the b-tuples, we just return a 'match' where each element of the match from b-tuple is nil.
OPTIONAL clause is equivalent to a left outer join. If there are no matches in the b-tuples, we just return a 'match' where each element of the match from b-tuple is nil.
(optional->left-outer-joins db
q-map
optional-clauses
where-tuples
fuel
max-fuel
opts)
(outer-union a-tuples b-tuples)
UNION clause takes a left-hand side, which is inner-joined, and a right-hand side, which is inner-joined. Any tuples unbound by the other set are included.
UNION clause takes a left-hand side, which is inner-joined, and a right-hand side, which is inner-joined. Any tuples unbound by the other set are included.
(parse-aggregate x valid-var)
(parse-block-from-source block)
(q q-map fuel max-fuel db opts)
(recur-map->tuples subjects recur-map)
(replace-vars-wikidata all-wd intersecting-vars vars)
(res-absorb-vars res)
(resolve-where-clause db where q-map vars fuel max-fuel)
(resolve-where-clause db where q-map vars fuel max-fuel opts)
(safe-read-string string)
(select-from-tuples vars tuples)
(symbolize-keys q-map)
(tuples->filter-optional headers tuples valid-vars filter-code-opts)
(tuples->filter-required headers tuples valid-vars filter-code-req)
(tuples->filtered {:keys [headers vars tuples] :as tuple-map} filters optional?)
(tuples->map start-map tuples)
(tuples->recur db predicate recur-map depth var-first?)
(variable? form)
(wikidata->tuples q-map clause r {:keys [vars] :as res} optional? fuel max-fuel)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close