arrow_graph_git/compat.rs
1//! Compatibility types for Namespace and Layer.
2//!
3//! `arrow-graph-core` uses string-based namespace keys and `Option<u8>` layers.
4//! This module provides typed wrappers that make the arrow-git API ergonomic
5//! while remaining compatible with any namespace scheme.
6
7/// Default namespace partitions (matching the common knowledge graph pattern).
8pub const DEFAULT_NAMESPACES: &[&str] = &["world", "work", "code", "research", "self"];
9
10/// Convenience re-export of the core store types using string-based namespaces.
11pub use arrow_graph_core::{ArrowGraphStore, CausalNode, QuerySpec, StoreError, Triple};
12
13/// Create an ArrowGraphStore with the default namespace set.
14pub fn default_store() -> ArrowGraphStore {
15 ArrowGraphStore::new(DEFAULT_NAMESPACES)
16}