Expand description
A Valkey (fka Redis) storage adapter for RDF.rs, a Rust framework for RDF knowledge graphs.
§Examples
use rdf_model::SAMPLE_QUAD;
use rdf_store::{Store, WriteTransaction};
use rdf_store_valkey::{ValkeyStore, ValkeyTransaction};
let mut store = ValkeyStore::open("redis://localhost:6379")?;
let mut tx = store.write().await?;
tx.insert(SAMPLE_QUAD).await?;
tx.commit().await?;Structs§
- Store
Options - Valkey
Graph Key - A graph key for fetching a graph from Valkey.
- Valkey
Quad - A quad statement (S, P, O, C) in Valkey.
- Valkey
Store - A quad store backed by a Valkey database.
- Valkey
Term - A term that can be stored in Valkey.
- Valkey
Transaction - A transaction for reading and writing statements in Valkey.
- Valkey
Triple - A triple statement (S, P, O) in Valkey.
- Valkey
Triple Id - A triple ID used to identify a triple in Valkey.
- Valkey
Triple Key - A triple key for fetching a triple from Valkey.
- Valkey
Triple Pattern - A triple statement pattern for matching triples in Valkey.
Enums§
- Valkey
Error - An error when interacting with a Valkey store.
Constants§
- DEFAULT_
URL - The default localhost connection URL for Valkey.
Traits§
- Read
Transaction - A read-only (R/O) transaction on a [
Store]. - Store
- A store of statements that supports R/O and R/W transactions.
- Write
Transaction - A read-write (R/W) transaction on a [
Store].