Expand description
Embedded RDF datasets, SPARQL, persistence, and streaming I/O for Rust.
Oxiland provides a safe application facade powered by Oxigraph. RDF term types are re-exported so callers can move data into and out of the broader Oxigraph ecosystem without adapters. Redland workflow mappings are retained as an evidence-scoped migration surface without copying manual-memory ownership rules into Rust (ADR-004).
§Module layout (1.0 naming freeze intent — ADR-020)
Stable public modules: terms, io, storage, utility, plus root
re-exports such as Model, World, Query, Update, and Error.
Breaking renames after 0.6 require an ADR and CHANGELOG entry.
§Quick start
use oxiland::terms::{self, Literal, Triple};
use oxiland::{Model, Query, QueryResults};
let model = Model::new()?;
model.add(Triple::new(
terms::named_node("https://example.com/alice")?,
terms::named_node("https://example.com/name")?,
Literal::new_simple_literal("Alice"),
))?;
assert!(matches!(
Query::new("ASK { ?s ?p ?o }").execute(&model)?,
QueryResults::Boolean(true)
));Re-exports§
pub use storage::OpenOptions;pub use storage::StorageBackend;pub use storage::StorageCapabilities;
Modules§
- io
- Streaming RDF parsing and serialization.
- sparql
- Oxigraph SPARQL primitives for advanced use cases.
- storage
- Storage backends, open options, and capability reporting (0.4).
- terms
- RDF term, triple, quad, and graph-name types used by Oxiland.
- utility
- URI, digest, Unicode, namespace, and vocabulary helpers (0.5).
Structs§
- LogRecord
- One log record delivered to handlers.
- Model
- An RDF graph model backed by an Oxigraph store.
- Model
Transaction - Mutator available inside
Model::transaction. - Parse
Error - Structured RDF parse failure.
- Query
- A SPARQL query configured before execution (ADR-009).
- Statement
Matches - Streaming matches produced by
Model::find. - Statement
Pattern - A partial triple pattern, equivalent to Redland’s statement matching API.
- Update
- A SPARQL Update operation configured before execution (ADR-009).
- World
- Process-level configuration, feature registry, and logging (ADR-014).
Enums§
- Error
- Errors produced by Oxiland.
- Feature
Value - A Redland-style feature value.
- LogFacility
- Logical log facility (ADR-014).
- LogLevel
- Log severity for
Worldlogging (ADR-014). - Query
Results - Results returned by a SPARQL query (ADR-010).
- Results
Format - Closed set of SPARQL Query Results formats (ADR-011).
Functions§
- serialize_
graph_ results_ to_ writer - Serializes CONSTRUCT/DESCRIBE
QueryResults::Graphwith an RDFSerializer. - serialize_
query_ results_ to_ string - Serializes ASK or SELECT
QueryResultsto a UTF-8 string. - serialize_
query_ results_ to_ writer - Serializes ASK or SELECT
QueryResultsto a writer.
Type Aliases§
- Result
- Result type used throughout Oxiland.