Expand description
A MongoDB 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_mongo::{MongoStore, MongoTransaction};
let mut store = MongoStore::open("mongodb://localhost:27017/test").await?;
let mut tx = store.write().await?;
tx.insert(SAMPLE_QUAD).await?;
tx.commit().await?;Structs§
- Mongo
Store - A quad store backed by a MongoDB database.
- Mongo
Transaction - A transaction for reading and writing statements in MongoDB.
- Mongo
Triple - A triple statement (S, P, O) stored as a MongoDB document.
- Mongo
Triple Id - A triple ID used to identify a triple in MongoDB.
- Store
Options
Enums§
- Mongo
Error - An error when interacting with a MongoDB store.
Constants§
- DEFAULT_
URL - The default localhost connection URL for MongoDB.
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].