aggregator.query.query
all-local-links
(all-local-links)Retrieve all locally saved statements belonging to the aggregator.
all-local-statements
(all-local-statements)Retrieve all locally saved statements belonging to the aggregator.
all-remote-links
(all-remote-links)(all-remote-links aggregator)Retrieve all links from a remote aggregator.
all-remote-statements
(all-remote-statements)(all-remote-statements aggregator)Retrieve all statements from a remote aggregator.
check-db
(check-db uri)(check-db uri {:keys [opts]})Check the database for an entity and update cache after item is found.
exact-statement
(exact-statement aggregate-id entity-id version)Return the exact statement from cache or db
get-data
(get-data request-url)(get-data request-url query-params)Get data from a remote aggregator.
links-by-target
(links-by-target aggregate-id entity-id version)Retrieve all local links in db pointing to the target statement.
links-to
(links-to aggregate-id entity-id version)Retrieve all links pointing to provided statement. (From the statements aggregator)
local-undercuts
(local-undercuts aggregate-id entity-id)Retrieve all links from the db that undercut the link passed as argument.
remote-starter-set
(remote-starter-set)(remote-starter-set aggregator)Retrieve remote starter sets and put them into the cache and db.
retrieve-exact-statement
(retrieve-exact-statement aggregate entity version)Retrieves an exact statement from cache / db / a remote aggregator.
retrieve-link
(retrieve-link aggregate-id entity-id version)Retrieve a link from cache or db. Returns empty vector if no such link can be found.
retrieve-remote
(retrieve-remote uri)(retrieve-remote aggregate-id entity-id)Try to retrieve a statement from a remote aggregator. The host part is treated as the webhost.
retrieve-undercuts
(retrieve-undercuts aggregate-id entity-id)Retrieve a (possibly remote) list of undercuts. The argument is the link being undercut.
starter-set
(starter-set)Retrieve a set of starting arguments, which can be used by remote aggregators to bootstrap the connection. This particular implementation just takes a random set of arguments from the cache or database.
statements-contain
(statements-contain query)Retrieve all statements where the content.content-string contains the query
tiered-retrieval
(tiered-retrieval aggregate-id entity-id)(tiered-retrieval aggregate-id entity-id options)Check whether the Cache contains the desired entity. If not delegate to DB and remote acquisition.