Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistency checking #16

Closed
Demirrr opened this issue Nov 8, 2023 · 3 comments
Closed

Consistency checking #16

Demirrr opened this issue Nov 8, 2023 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@Demirrr
Copy link

Demirrr commented Nov 8, 2023

Dear all,

thank you for DeepOnto.

I was wondering whether there is an example code for consistency checking, e.g.

from deeponto.onto import Ontology
onto = Ontology("path_to_ontology.owl", "hermit")
assert onto.consistent()
@Lawhy Lawhy self-assigned this Nov 10, 2023
@Lawhy
Copy link
Collaborator

Lawhy commented Nov 10, 2023

Hi @Demirrr, for checking the consistency of an ontology, you can use onto.reasoner.owl_reasoner.isConsistent() for now. owl_reasoner is an instance of OWLReasoner in the OWLAPI.

But I will make a check_consistency() method to encapsulate this feature latter.

@Demirrr
Copy link
Author

Demirrr commented Nov 10, 2023

Cheers!

@Lawhy Lawhy added the question Further information is requested label Nov 10, 2023
@Lawhy
Copy link
Collaborator

Lawhy commented Nov 13, 2023

Add feature at 4940b23.

@Lawhy Lawhy closed this as completed Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants