Skip to main content

Module layout

Module layout 

Source
Expand description

On-disk directory layout under a cluster --data-dir.

--data-dir is the cluster root. Every repository gets its own store subtree and a sibling ingest staging tree:

{data_dir}/{repository}/s          hexastore S (SPOG, SOPG, named_graphs_catalog)
{data_dir}/{repository}/p          hexastore P
{data_dir}/{repository}/o          hexastore O
{data_dir}/{repository}/registry   string registry
{data_dir}/{repository}/registry.sst-staging
                                   offline-import registry SST runs
{data_dir}/ingest/{repository}/    HTTP / operator staging files
{data_dir}/notebooks/              jupyter Contents root (--with-notebooks)
{data_dir}/notebooks-runtime/      generated sidecar config + jupyter runtime files
{data_dir}/notebooks-venv/         auto-provisioned pinned Python environment

The MVP repository id is always MAIN_REPOSITORY_ID ("main"). HTTP ingest joins the {repository_id} path segment onto --ingest-dir (default {data_dir}/ingest) so a later catalog can add more repositories without moving the s/p/o/registry folders. The query library joins the same segment onto --queries-dir (no default; waratah_api/src/query_library.rs).

Repository ids reach both join helpers only after the HTTP layer checked them against the repository catalog, so path traversal through {repository_id} is impossible today; a future multi-repo catalog must keep that gate (or add a charset check here) before these helpers see client-supplied ids.

Constants§

BLOB_DIR_NAME
Directory name of the content-addressed blob store under a repository (registry-process files, not a RocksDB CF).
BLOB_INDEX_DIR_NAME
Directory name of the blob store’s RocksDB index under blobs/.
BLOB_SEGMENTS_DIR_NAME
Directory name of the append-only blob segment files under blobs/.
INGEST_DIR_NAME
Directory name under --data-dir that holds per-repository ingest trees.
MAIN_REPOSITORY_ID
MVP / default repository id used in on-disk paths and HTTP URLs.
NOTEBOOKS_DIR_NAME
Directory name of the notebook Contents root under --data-dir.
NOTEBOOKS_RUNTIME_DIR_NAME
Directory name of the notebook sidecar runtime files under --data-dir.

Functions§

blob_index_dir
RocksDB index directory under a blob store root.
blob_segments_dir
Append-only segment directory under a blob store root.
blob_store_dir
Blob store root for repository: {data_dir}/{repository}/blobs.
hexastore_data_dir
Hexastore axis RocksDB: {data_dir}/{repository}/{axis}.
ingest_root_dir
Parent of per-repository ingest trees.
ingest_staging_dir
Staging directory for one repository: {ingest_root}/{repository}.
notebooks_root_dir
Contents-API root for the notebook service (--with-notebooks).
notebooks_runtime_dir
Sidecar runtime dir: the generated config (which carries the token) and jupyter runtime files (kernel connection JSONs, cookie secret).
notebooks_venv_dir
Auto-provisioned Python venv root for the notebook sidecar.
queries_repo_dir
Per-repository query-library directory: {queries_root}/{repository}.
registry_data_dir
String-registry RocksDB: {data_dir}/{repository}/registry.
registry_sst_staging_dir
Offline-import registry SST runs beside the registry directory.
repository_store_dir
{data_dir}/{repository} — RocksDB stores for one repository.
text_index_dir_beside
The text plugin’s Tantivy directory beside a hexastore directory: {data_dir}/{repository}/o → {data_dir}/{repository}/o-text-index.