Expand description
SimpleTripleStore — lightweight Arrow-native triple store.
Wraps ArrowGraphStore with a simplified API that doesn’t require
explicit namespace/layer on every operation.
§Quick Start
use arrow_graph_core::triple_store::SimpleTripleStore;
let mut store = SimpleTripleStore::new();
let id = store.add("Alice", "knows", "Bob", 0.9, "test").unwrap();
assert_eq!(store.count(None, None, None), 1);
let results = store.query(Some("Alice"), None, None).unwrap();
assert_eq!(results.len(), 1);
assert_eq!(results[0].subject, "Alice");
store.remove(&id).unwrap();
assert_eq!(store.count(None, None, None), 0);Structs§
- Simple
Triple Store - Lightweight Arrow-native triple store.
- Store
Stats - Statistics about the store.
- Stored
Triple - A retrieved triple with all metadata.
Functions§
- batches_
to_ stored_ triples - Convert a slice of RecordBatches into a Vec of
StoredTriple. - extract_
stored_ triple - Extract a
StoredTriplefrom a RecordBatch at the given row index.