Skip to main content

Module ops

Module ops 

Source
Expand description

Store operations as sans-IO jobs, shared by the sync, async and JavaScript drivers.

Structs§

ScanJob
A job returning quads matching a SQL WHERE clause, with batched term resolution.

Functions§

clear_graph_job
Removes all quads of a graph (keeps the graph name).
clear_inferences_job
Removes every materialized inference.
clear_inferences_of_job
Removes the inferences of one producer, keeping what other producers also derived.
clear_job
Removes everything.
contains_job
contains_named_graph_job
encode_term
Helper used by drivers: encodes a term to its id without I/O.
inference_producers_job
The names of the producers that derived a quad (empty when it is not inferred). The default graph matches the graph-0 conclusions every producer writes.
insert_job
Atomically inserts quads; returns how many were new.
insert_named_graph_job
Adds a named graph; returns whether it was new.
insert_request
Insert statements for a chunk (bulk loading).
is_empty_job
len_job
materialize_job
Recomputes the OWL 2 RL materialization (quads_inf): discards previous inferences, then runs rule rounds (one atomic request each, i.e. one D1 batch) until a round infers nothing. Returns the number of inferred triples. Rounds are not one transaction: readers may see a partial materialization while it runs.
named_graphs_job
Lists named graphs.
neighbourhood_job
Quads whose subject (or, with incoming, object) is one of nodes, optionally restricted to some predicates and to the default graph: one neighbourhood hop for bounded prefetches.
open_job
Creates the schema, then loads statistics.
optimize_job
Recomputes and reloads statistics.
remove_job
Atomically removes quads; returns how many were present.
remove_named_graph_job
Removes a named graph and its quads; returns whether it existed.
scan_job
quads_for_pattern as a job. graph_name = None matches every graph, default included.
schema_refresh_for
The statements that rebuild the derived schema caches inside a write’s own request: tbox_closure when a schema axiom changed, the shape index when a SHACL triple did.
shape_index_job
Reads the compiled shape index.
stats_job
Loads statistics only.