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 (ReplaceQuadsacross 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 standalonecommand. - temporal π
- Offline temporal index maintenance (
waratah temporal rebuild-index). - text π
waratah textCLI: offline rebuild and status of the O-axis text index.
StructsΒ§
- Blob
Verify πArgs - Catalog
Rebuild πArgs - Cli π
- Distributed RDF quadstore β CLI.
- Compact
Args π - Explain
Args π - GeoCensus
Args π - GeoCoverer
Args - Process coverer configuration from CLI flags (v1: per-process; the cluster-uniform invariant is documented in ARCH.md Β§6).
- GeoRebuild
Args π - Import
Args π - Serve
Args π - Flags shared by
waratah startandwaratah standalone: everything about serving queries. The spawn-only flags (--config,--bin-dir) live onStartArgsalone β the in-process standalone command has no children to address or binaries to locate. - Standalone
Args π waratah standalone: the same engines opened in-process, always foreground.- Start
Args π waratah start: the spawned-process cluster (gRPC between compute and S/P/O + registry), daemonized by default.- Stop
Args π - Temporal
Rebuild πArgs - Text
Rebuild πArgs - Text
Status πArgs
EnumsΒ§
- Blob
Commands π - Catalog
Commands π - Commands π
- Describe
Mode πArg - Explain
Format πArg - GeoCommands π
- Temporal
Commands π - Text
Commands π
StaticsΒ§
- GLOBAL π
FunctionsΒ§
- ai_
options π - Resolve the AI services options: CLI flag over
{config-dir}/ai.tomlover the disabled default. Enabled via--with-aiOR[ai] enabled = trueinai.toml. When the document declares no upstreams, thezenupstream 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.tomlover data-dir-derived defaults. Enabled via--with-notebooksORenabled = trueinnotebooks.toml. - parse_
densify_ πstep - Parse
--geo-densify-step: a non-negative degree value (floored atwaratah_geo::MIN_DENSIFY_STEP_DEG), or the wordsfalse/0(disable densification) /true(the default step). - run π
- serve_
options π - Build
DevOptionsfrom 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-textORenabled = truein{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).