Expand description
oxilite: an Oxigraph-compatible RDF database and SPARQL engine that uses SQLite as its storage engine.
The module layout mirrors Oxigraph (model, io, sparql, store), so code written
for oxigraph::store::Store works with oxilite::store::Store after changing the crate
name. AsyncStore offers the same API over async backends such as Cloudflare D1.
use oxilite::model::*;
use oxilite::sparql::QueryResults;
use oxilite::store::Store;
let store = Store::new()?;
let ex = NamedNodeRef::new("http://example.com")?;
store.insert(QuadRef::new(ex, ex, ex, GraphNameRef::DefaultGraph))?;
if let QueryResults::Solutions(mut solutions) = store.query("SELECT ?s WHERE { ?s ?p ?o }")? {
assert_eq!(solutions.next().unwrap()?.get("s"), Some(&ex.into_owned().into()));
}Re-exports§
pub use oxilite_core as core;
Modules§
- blocking
- The same
Storeasstore::Store(blocking API). - functions
- Host functions: application code callable from SPARQL, Cypher and Datalog
(
Store::register_function). - io
- RDF parsers and serializers (re-export of
oxrdfio, likeoxigraph::io). - model
- RDF data model (re-export of
oxrdf, likeoxigraph::model). - rusqlite
- The in-process SQLite backend (bundled SQLite, UDFs).
- schema
- The schema registry: ontologies and shapes graphs declared as such in the system graph
<oxilite:schema>, which graphs they apply to, and the compiled shape index they feed. - sparql
- SPARQL types (like
oxigraph::sparql). - store
- The blocking store, a drop-in replacement for
oxigraph::store::Store. - vector
- Vector indexes over embedding literals and nearest-neighbour search (
Store::create_vector_index,Store::vector_search; backends with vector functions: Turso). - version
- Optional versioning: the store clock, the immutable change log and time travel (see
StoreOptions::versioning,Store::set_versioning,QueryOptions::as_of).
Structs§
- Async
Store - An RDF dataset in a SQLite-compatible engine reached asynchronously.
- Capabilities
- What a backend can do. The compiler adapts SQL generation to it.
- Query
Options - Per-query options.
- Registered
Graph - A registry entry.
- Registration
- What is recorded about a registered graph, besides its name and role.
- Store
Options - Options chosen when a store is created.
Enums§
- Error
- Errors raised by oxilite.
Traits§
- Async
Backend - A backend that runs requests asynchronously (D1, network engines).
- Sync
Backend - A backend that runs requests synchronously.
Type Aliases§
- Result
- Result alias used across oxilite.