PyReasoner¶
- class pyhornedowl.reasoning.PyReasoner¶
Bases:
object- flush() None¶
Flushes pending changes to the reasoner. This invalidates any cached results and updates the reasoner with the current state of the ontology.
- get_disjoint_classes(cmp: ClassExpression | IRI | str) set[Class]¶
Returns the set of classes asserted or inferred to be disjoint with the given class expression.
- get_equivalent_classes(cmp: ClassExpression | IRI | str) set[Class]¶
Returns the set of classes asserted or inferred to be equivalent to given the class expression.
- get_name() str¶
Returns the name of the reasoner.
- get_subclasses(cmp: ClassExpression | IRI | str) set[Class]¶
Returns the set of asserted and inferred subclasses for the given class expression.
- get_superclasses(cmp: ClassExpression | IRI | str) set[Class]¶
Returns the set of asserted and inferred superclasses for the given class expression.
- get_version() str¶
Returns the version of the reasoner.
- is_consistent() bool¶
Checks if the ontology is consistent.
- is_satifisable(cmp: ClassExpression | IRI | str) bool¶
Checks if the given class expression is satisfiable.