-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
hermit reasoner: python vs protege #10
Comments
Hi, we need an example of the different triples you see (and the ontology, or an ontology that reproduces the issue). |
Sure I have atttached the ontology, and a file that has the shared triples and a file that has the differing triples. I assumed that the issue was that the Hermit reasoners were simply reasoning differenlty. Or should they reason the same via both platforms (protege vs the python owlready2 module)? |
Assuming it's the same version of HermiT running in Protege and with owlready2, the inferences will be the same. However there are a number of configuration options that might influence some details. |
The ontology has some peculiarities which may reflect on how the reasoner - and more importantly the APIs around it - might work. First thing I noticed, the ontology file has two ontology declarations, meaning that the parser will have to arbitrarily decide which one is the ontology IRI. This is probably the reason for the differing triple about the ontology. Then, the property
|
Thank you for looking into this! So the reason there are two ontolgy declarations is because I link two ontologies together before reasoning over them. I do this with another script and link the ontologies with one triple that contains a 'owl:equivalentClass predicate', connecting a class from both ontologies. This was done using the Rdflib Graph module in Python. Otherwise, do you recommend another way to go around this? I will look into the other properties defined that you brought up. Bugs are not intended for the design. |
Also, I noticed that the Hermit reasoner I am using is Hermit 1.4.3 (in Protege version 5.5). What version of the Hermit reasoner is used in owlready? |
That's a question for the owlready team, I can't answer it. |
Don't copy over the ontology declarations, create a new one. Only copy the axioms. |
I have created an ontology and then used the Hermit reasoner to infer triples. I used the Hermit reasoner via Protege (after uploading the ontology created through owlready module), and I used the Hermit reasoner with the owlready module over the same ontology file. I receive different inferred triples. Why is this? Thanks!
The text was updated successfully, but these errors were encountered: