Fork of https://github.com/oxigraph/oxigraph.git for the purpose of NextGraph project
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
688 B
32 lines
688 B
5 years ago
|
#![deny(
|
||
|
future_incompatible,
|
||
|
nonstandard_style,
|
||
|
rust_2018_idioms,
|
||
|
trivial_casts,
|
||
|
trivial_numeric_casts,
|
||
|
unsafe_code,
|
||
|
unused_qualifications
|
||
|
)]
|
||
|
|
||
|
mod memory_store;
|
||
|
mod model;
|
||
|
mod sled_store;
|
||
|
mod store_utils;
|
||
|
|
||
|
use crate::memory_store::*;
|
||
|
use crate::model::*;
|
||
|
use crate::sled_store::*;
|
||
|
use pyo3::prelude::*;
|
||
|
|
||
|
/// Oxigraph library
|
||
|
#[pymodule]
|
||
|
fn oxigraph(_py: Python<'_>, module: &PyModule) -> PyResult<()> {
|
||
|
module.add_class::<PyNamedNode>()?;
|
||
|
module.add_class::<PyBlankNode>()?;
|
||
|
module.add_class::<PyLiteral>()?;
|
||
|
module.add_class::<PyDefaultGraph>()?;
|
||
|
module.add_class::<PyMemoryStore>()?;
|
||
|
module.add_class::<PySledStore>()?;
|
||
|
Ok(())
|
||
|
}
|