Skip to main content

Crate rdf_store_mongo

Crate rdf_store_mongo 

Source
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§

MongoStore
A quad store backed by a MongoDB database.
MongoTransaction
A transaction for reading and writing statements in MongoDB.
MongoTriple
A triple statement (S, P, O) stored as a MongoDB document.
MongoTripleId
A triple ID used to identify a triple in MongoDB.
StoreOptions

Enums§

MongoError
An error when interacting with a MongoDB store.

Constants§

DEFAULT_URL
The default localhost connection URL for MongoDB.

Traits§

ReadTransaction
A read-only (R/O) transaction on a [Store].
Store
A store of statements that supports R/O and R/W transactions.
WriteTransaction
A read-write (R/W) transaction on a [Store].