RDF.rs: PostgreSQL Store
A PostgreSQL storage adapter for RDF.rs, a Rust framework for RDF knowledge graphs.
[!TIP] 🚧 We are building in public. This is presently under heavy construction.
[Features] | [Prerequisites] | [Installation] | [Examples] | [Reference] | [Development]
✨ Features
- Implements a scalable, high-performance RDF quad store backed by PostgreSQL.
- Built on async Rust using lazily-evaluated streams throughout.
- 100% pure and safe Rust with minimal dependencies and no bloat.
- Supports opting out of any feature using comprehensive feature flags.
- Adheres to the Rust API Guidelines in its naming conventions.
- Cuts red tape: 100% free and unencumbered public domain software.
🛠️ Prerequisites
- Rust 1.85+ (2024 edition)
⬇️ Installation
Installation via Cargo
Installation in Cargo.toml
Enable all default features:
[]
= { = "0.3" }
Enable only specific features:
[]
= { = "0.3", = false, = ["tls"] }
👉 Examples
Importing the Library
use ;
Connecting to the Store
let mut store = open.await?;
Mutating the Store
let mut tx = store.write.await?;
tx.remove.await?;
tx.insert.await?;
tx.commit.await?; // ...or:
//tx.rollback().await?;
Accessing the Store
let tx = store.read.await?;
tx.r#match
.for_each
.await;
📚 Reference
👨💻 Development