pub struct QueryEngine<'a> { /* private fields */ }Expand description
Query handle over a classified ontology taxonomy.
Implementations§
Source§impl<'a> QueryEngine<'a>
impl<'a> QueryEngine<'a>
pub fn new(ontology: &'a Ontology, taxonomy: &'a Taxonomy) -> Self
pub fn direct_subclasses(&self, class: EntityId) -> Result<Vec<EntityId>>
pub fn direct_superclasses(&self, class: EntityId) -> Result<Vec<EntityId>>
pub fn is_subsumed(&self, sub: EntityId, sup: EntityId) -> Result<bool>
pub fn equivalent_classes( &self, class: EntityId, ) -> Result<Option<Vec<EntityId>>>
pub fn unsatisfiable_classes(&self) -> Vec<EntityId>
pub fn lookup(&self, iri: &str) -> Option<EntityId>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for QueryEngine<'a>
impl<'a> RefUnwindSafe for QueryEngine<'a>
impl<'a> Send for QueryEngine<'a>
impl<'a> Sync for QueryEngine<'a>
impl<'a> Unpin for QueryEngine<'a>
impl<'a> UnsafeUnpin for QueryEngine<'a>
impl<'a> UnwindSafe for QueryEngine<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more