reasonable/lib.rs
1//! The `reasonable` package offers a library, binary and Python bindings for performing OWL 2 RL
2//! reasoning on RDF graphs. This package implements the Datalog rules as communicated on the [W3C
3//! OWL2
4//! Profile](https://www.w3.org/TR/owl2-profiles/#Reasoning_in_OWL_2_RL_and_RDF_Graphs_using_Rules)
5//! website.
6mod pyreason;
7use pyo3::prelude::*;
8
9#[pymodule]
10fn reasonable(_py: Python<'_>, module: &Bound<'_, PyModule>) -> PyResult<()> {
11 module.add("__package__", "reasonable")?;
12 module.add("__version__", env!("CARGO_PKG_VERSION"))?;
13 module.add_class::<pyreason::PyReasoner>()?;
14 Ok(())
15}