Skip to main content

Crate waratah

Crate waratah 

Source
Expand description

Waratah CLI: cluster orchestrator, RDF import, and local SPARQL tools.

waratah start brings up the cluster on localhost: hexastore partitions S, P, O and the string-registry run as child processes, and this process becomes the stateless compute node behind an RDF4J HTTP facade. It daemonizes itself by default (logs under {data_dir}/logs, or the working directory for the memory backend); --foreground keeps it attached to the terminal. waratah standalone opens those storage bricks in this process instead of spawning children (no gRPC) and always runs in the foreground.

waratah import streams an RDF file into RocksDB. Default spawns S/P/O + registry, loads over gRPC, then flushes (and optionally compacts). --offline writes in-process; --connect attaches to a running cluster.

waratah explain prints a SPARQL query as parse-only SSE, Sparopt SSE/SPARQL, or a lowered plan (no cluster required).

waratah compact flushes and full-range-compacts targets of an existing data-dir in-process, so rewritten SSTs pick up the current tuning (registry block size, stats collectors) without a re-import.

ModulesΒ§

affinity πŸ”’
Serve-process CPU affinity control (WARATAH_SERVE_CORES).
blob πŸ”’
waratah blob: maintenance of the registry’s content-addressed blob store under {data_dir}/{repository}/blobs.
catalog πŸ”’
Rebuild the S-axis named-graph catalog from existing SPOG data.
compact πŸ”’
waratah compact: offline flush + full-range compaction of an existing RocksDB data-dir.
config_dir πŸ”’
Config directory resolution for the waratah CLI (XDG conventions).
daemon πŸ”’
Daemonization for waratah start (spawn-self detached).
dev πŸ”’
Local cluster orchestrator: S, P, O, string-registry, and compute.
error πŸ”’
Typed errors for the dev orchestrator CLI.
geo πŸ”’
waratah geo rebuild-index: recompute O-axis S2 postings from blobs.
geo_upgrade πŸ”’
The cluster geo index upgrade/rebuild driver (the RPC shell of waratah_geo::rebuild’s core): takes the partition lease, streams geo terms via prefix-filtered head scans, upgrades orphaned typed literals (ReplaceQuads across all three axes at a swap ts derived from the walked data β€” 1 + the max ts under the discovery prefixes), covers the now-homogeneously-native store, and finishes β€” refreshing the lease per batch so a slow walk is never taken over. Startup blocks on this; a failure leaves the epoch unstamped (the untrusted gate keeps queries correct via the residual path), and a crashed driver’s stale lease is force-takeable by the next attempt.
import πŸ”’
Bulk RDF import: online (RPC) or offline (in-process RocksDB).
notebook πŸ”’
Notebook sidecar session owned by waratah start.
shutdown πŸ”’
ctrl-c / SIGTERM shutdown flag for waratah start.
standalone πŸ”’
In-process S/P/O + registry adapters for the waratah standalone command.
temporal πŸ”’
Offline temporal index maintenance (waratah temporal rebuild-index).
text πŸ”’
waratah text CLI: offline rebuild and status of the O-axis text index.

StructsΒ§

BlobVerifyArgs πŸ”’
CatalogRebuildArgs πŸ”’
Cli πŸ”’
Distributed RDF quadstore β€” CLI.
CompactArgs πŸ”’
ExplainArgs πŸ”’
GeoCensusArgs πŸ”’
GeoCovererArgs
Process coverer configuration from CLI flags (v1: per-process; the cluster-uniform invariant is documented in ARCH.md Β§6).
GeoRebuildArgs πŸ”’
ImportArgs πŸ”’
ServeArgs πŸ”’
Flags shared by waratah start and waratah standalone: everything about serving queries. The spawn-only flags (--config, --bin-dir) live on StartArgs alone β€” the in-process standalone command has no children to address or binaries to locate.
StandaloneArgs πŸ”’
waratah standalone: the same engines opened in-process, always foreground.
StartArgs πŸ”’
waratah start: the spawned-process cluster (gRPC between compute and S/P/O + registry), daemonized by default.
StopArgs πŸ”’
TemporalRebuildArgs πŸ”’
TextRebuildArgs πŸ”’
TextStatusArgs πŸ”’

EnumsΒ§

BlobCommands πŸ”’
CatalogCommands πŸ”’
Commands πŸ”’
DescribeModeArg πŸ”’
ExplainFormatArg πŸ”’
GeoCommands πŸ”’
TemporalCommands πŸ”’
TextCommands πŸ”’

StaticsΒ§

GLOBAL πŸ”’

FunctionsΒ§

ai_options πŸ”’
Resolve the AI services options: CLI flag over {config-dir}/ai.toml over the disabled default. Enabled via --with-ai OR [ai] enabled = true in ai.toml. When the document declares no upstreams, the zen upstream is preconfigured (grevillea dev works out of the box, BYOK).
explain_query πŸ”’
import_options πŸ”’
main πŸ”’
notebooks_options πŸ”’
Resolve the notebook-service options: CLI flags over {config-dir}/notebooks.toml over data-dir-derived defaults. Enabled via --with-notebooks OR enabled = true in notebooks.toml.
parse_densify_step πŸ”’
Parse --geo-densify-step: a non-negative degree value (floored at waratah_geo::MIN_DENSIFY_STEP_DEG), or the words false/0 (disable densification) / true (the default step).
run πŸ”’
serve_options πŸ”’
Build DevOptions from the shared serve flags.
standalone_command πŸ”’
waratah standalone: the in-process engines, always foreground.
start_command πŸ”’
waratah start: validate the invocation synchronously (so usage errors surface before anything is backgrounded), then either run in the foreground or hand the cluster to the daemon machinery.
text_options πŸ”’
Resolve the text plugin config: --with-text OR enabled = true in {config-dir}/text.toml. The file also carries the analyzer and seed length; the flag alone takes the defaults. A parse/validate failure is a deployment error (fail fast, before any engine exists).