(ask bgps)(ask bgps db)Predicate: are there results in a db-or-idx matching bgps patterns?
If called with 1 argument, returns a function of 1 argument: the db-or-idx.
If called with 2 arguments, queries the db-or-idx directly.
Predicate: are there results in a `db-or-idx` matching `bgps` patterns? If called with 1 argument, returns a function of 1 argument: the `db-or-idx`. If called with 2 arguments, queries the `db-or-idx` directly.
(construct construct-pattern bgps)(construct construct-pattern bgps db-or-idx)Query a db-or-idx with bgps patterns, and return data in the form of the
construct-pattern.
If called with 2 arguments, returns a function of 1 argument: the db-or-idx,
which returns a sequence of results in the form of the construct-pattern.
If called with 3 arguments, queries the db-or-idx directly, returning a
sequence of results in the form of the construct-pattern.
Query a `db-or-idx` with `bgps` patterns, and return data in the form of the `construct-pattern`. If called with 2 arguments, returns a function of 1 argument: the `db-or-idx`, which returns a sequence of results in the form of the `construct-pattern`. If called with 3 arguments, queries the `db-or-idx` directly, returning a sequence of results in the form of the `construct-pattern`.
(construct-1 construct-pattern bgps)(construct-1 construct-pattern bgps db)Query a db-or-idx with bgps patterns, and return data in the form of the
construct-pattern.
If called with 2 arguments, returns a function of 1 argument: the db-or-idx,
which returns the first result in the form of the construct-pattern.
If called with 3 arguments, queries the db-or-idx directly, returning the
first result in the form of the construct-pattern.
Query a `db-or-idx` with `bgps` patterns, and return data in the form of the `construct-pattern`. If called with 2 arguments, returns a function of 1 argument: the `db-or-idx`, which returns the first result in the form of the `construct-pattern`. If called with 3 arguments, queries the `db-or-idx` directly, returning the first result in the form of the `construct-pattern`.
(index-triples db)Return an indexed database of triples. Indexing a database will result in better performance if you want to run multiple queries over the same database.
All query functions should accept either a sequence of triples or an indexed database.
Return an indexed database of triples. Indexing a database will result in better performance if you want to run multiple queries over the same database. All query functions should accept either a sequence of triples or an indexed database.
(merge-dbs & dbs)Merges all supplied Matcha databases together into one. Any individual database form can either be indexed already with index-triples, or a sequence of triples, in which case the triples will be indexed before being combined with any other databases.
Merges all supplied Matcha databases together into one. Any individual database form can either be indexed already with index-triples, or a sequence of triples, in which case the triples will be indexed before being combined with any other databases.
(query-var? sym)Test whether supplied sym is a query variable. Query variables are symbols who's name begin with a ?.
Test whether supplied sym is a query variable. Query variables are symbols who's name begin with a ?.
(select bgps)(select project-vars bgps)(select project-vars bgps db-or-idx)Query a db-or-idx with bgps patterns.
If called with 1 argument, select finds all ?vars in the bgps patterns
and returns a function of 1 argument: the db-or-idx, which returns a
sequence of results.
If called with 2 arguments, returns a function of 1 argument: the db-or-idx,
which returns a sequence of results with the ?vars in project-vars
projected.
If called with 3 arguments, queries the db-or-idx directly, returning a
sequence of results with the ?vars in project-vars projected.
Query a `db-or-idx` with `bgps` patterns. If called with 1 argument, `select` finds all `?vars` in the `bgps` patterns and returns a function of 1 argument: the `db-or-idx`, which returns a sequence of results. If called with 2 arguments, returns a function of 1 argument: the `db-or-idx`, which returns a sequence of results with the `?vars` in `project-vars` projected. If called with 3 arguments, queries the `db-or-idx` directly, returning a sequence of results with the `?vars` in `project-vars` projected.
(select-1 bgps)(select-1 project-vars bgps)(select-1 project-vars bgps db)Query a db-or-idx with bgps patterns.
If called with 1 argument, select finds all ?vars in the bgps patterns
and returns a function of 1 argument: the db-or-idx, which returns the first
result.
If called with 2 arguments, returns a function of 1 argument: the db-or-idx,
which returns the first result with ?vars in project-varsprojected.
If called with 3 arguments, queries the db-or-idx directly, returning the
first result with ?vars in project-vars projected.
Query a `db-or-idx` with `bgps` patterns. If called with 1 argument, `select` finds all `?vars` in the `bgps` patterns and returns a function of 1 argument: the `db-or-idx`, which returns the first result. If called with 2 arguments, returns a function of 1 argument: the `db-or-idx`, which returns the first result with `?vars` in `project-vars`projected. If called with 3 arguments, queries the `db-or-idx` directly, returning the first result with `?vars` in `project-vars` projected.
(triple-vector->idx-triple [s p o])Assume triples are either 3/tuple vectors or can be destructured as such. Grafter Quad objects can be destructured in this manner.
Assume triples are either 3/tuple vectors or can be destructured as such. Grafter Quad objects can be destructured in this manner.
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 |