Skip to main content

Crate oxide_graph

Crate oxide_graph 

Source
Expand description

§oxide-graph — Semantic Knowledge Graph

In-memory typed property graph used by Rust Oxide to fuse data from oxide-mirror (structured API rows), oxide-browser-sh (web extractions), and any other module that emits facts. The graph stays pure-Rust + dependency-free so it works in tests and embedded contexts; the same shape can later back onto a remote Neo4j / Dgraph cluster via an alternate GraphStore implementation.

Layout:

  • graphNode, Edge, in-memory InMemoryGraph with id-keyed storage, label / property indices, and undirected lookup.
  • queryNodeQuery, EdgeQuery, traversal primitives.
  • ingest — build helpers that translate mirrored records into nodes and follow JSON references to seed edges.
  • kernelGraphModule wires the graph onto the oxide-k message bus.

Re-exports§

pub use error::GraphError;
pub use error::Result;
pub use graph::Edge;
pub use graph::EdgeId;
pub use graph::GraphStore;
pub use graph::InMemoryGraph;
pub use graph::Node;
pub use graph::NodeId;
pub use ingest::ingest_record;
pub use ingest::RecordRef;
pub use kernel::GraphModule;
pub use query::EdgeQuery;
pub use query::NodeQuery;

Modules§

error
Error type for the graph layer.
graph
Node / Edge types and the InMemoryGraph store.
ingest
Ingestion helpers — turn external records into nodes + edges.
kernel
oxide-k bus integration for the graph.
query
Query primitives.