Liking cljdoc? Tell your friends :D

fluree.db.query.analytical


add-aggregate-colsclj/s

(add-aggregate-cols res aggregate)

add-fuelclj/s

(add-fuel add-amount fuel max-fuel)

aggregate?clj/s

(aggregate? x)

all-functionsclj/s


bind-clause->varsclj/s

(bind-clause->vars res clause)

built-in-aggregatesclj/s


calculate-aggregateclj/s

(calculate-aggregate res agg)

clause->keysclj/s

(clause->keys clause)

clause->relclj/s

(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:

  • 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.
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.
raw docstring

clause->tuplesclj/s

(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).
raw docstring

collection->tuplesclj/s

(collection->tuples db res clause)

db-ident?clj/s

(db-ident? source)

escaped-string?clj/s

(escaped-string? form)

expand-mapclj/s

(expand-map tuple-map)

fdb-clause->tuplesclj/s

(fdb-clause->tuples db
                    {:keys [headers tuples vars] :as res}
                    clause
                    fuel
                    max-fuel)

find-matchclj/s

(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.
raw docstring

find-match+row-numsclj/s

(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
raw docstring

follow-all-original-subject-pathsclj/s

(follow-all-original-subject-paths subjects tuple-map)

full-text->tuplesclj/s

(full-text->tuples db res clause)

get-ns-arraysclj/s

(get-ns-arrays ns arrays)

get-source-clauseclj/s

(get-source-clause db clause)
(get-source-clause db clause prefixes opts)

get-varsclj/s

(get-vars filter-code)

inner-joinclj/s

(inner-join a-res b-res)

interm-aggregate?clj/s

(interm-aggregate? x)

internal-filter?clj/s

(internal-filter? form)

intersecting-keys-tuplesclj/s

(intersecting-keys-tuples a-tuples b-tuples)

intersecting-keys-tuples-clauseclj/s

(intersecting-keys-tuples-clause tuples clause)

left-outer-joinclj/s

(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.
raw docstring

optional->left-outer-joinsclj/s

(optional->left-outer-joins db
                            q-map
                            optional-clauses
                            where-tuples
                            fuel
                            max-fuel
                            opts)

outer-unionclj/s

(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.
raw docstring

parse-aggregateclj/s

(parse-aggregate x valid-var)

parse-block-from-sourceclj/s

(parse-block-from-source block)

qclj/s

(q q-map fuel max-fuel db opts)

recur-map->tuplesclj/s

(recur-map->tuples subjects recur-map)

replace-vars-wikidataclj/s

(replace-vars-wikidata all-wd intersecting-vars vars)

res-absorb-varsclj/s

(res-absorb-vars res)

resolve-where-clauseclj/s

(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-stringclj/s

(safe-read-string string)

select-from-tuplesclj/s

(select-from-tuples vars tuples)

symbolize-keysclj/s

(symbolize-keys q-map)

tuples->filter-optionalclj/s

(tuples->filter-optional headers tuples valid-vars filter-code-opts)

tuples->filter-requiredclj/s

(tuples->filter-required headers tuples valid-vars filter-code-req)

tuples->filteredclj/s

(tuples->filtered {:keys [headers vars tuples] :as tuple-map} filters optional?)

tuples->mapclj/s

(tuples->map start-map tuples)

tuples->recurclj/s

(tuples->recur db predicate recur-map depth var-first?)

variable?clj/s

(variable? form)

wikidata->tuplesclj/s

(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