Giter Site home page Giter Site logo

Comments (8)

ignazio1977 avatar ignazio1977 commented on July 17, 2024

Hi, we need an example of the different triples you see (and the ontology, or an ontology that reproduces the issue).

from hermit-reasoner.

annagrotius avatar annagrotius commented on July 17, 2024

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)?

ontology.txt

differing_triples.txt

shared_triples.txt

from hermit-reasoner.

ignazio1977 avatar ignazio1977 commented on July 17, 2024

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.

from hermit-reasoner.

ignazio1977 avatar ignazio1977 commented on July 17, 2024

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 used_with is symmetric and has domain set to the intersection of Cutlery and Plate, and its domain is Food. I'm not sure if symmetry is intended here, as it makes Food equivalent to the intersection of Cutlery and Plate, which are apparently disjoint (all subclasses of Cutlery seem declared disjoint with Plate).

used_with is inferred to be equivalent to bottom property, and so is spread_on - I assume from the relations between domains and ranges for these properties. Many other properties are inferred to be equivalent to these, it seems (I haven't analysed the whole of the files). This would end up making many classes unsatisfiable. I'm wondering if the ontology is working as intended or if these are bugs in its design.

from hermit-reasoner.

annagrotius avatar annagrotius commented on July 17, 2024

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.

from hermit-reasoner.

annagrotius avatar annagrotius commented on July 17, 2024

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?

from hermit-reasoner.

ignazio1977 avatar ignazio1977 commented on July 17, 2024

That's a question for the owlready team, I can't answer it.

from hermit-reasoner.

ignazio1977 avatar ignazio1977 commented on July 17, 2024

Don't copy over the ontology declarations, create a new one. Only copy the axioms.

from hermit-reasoner.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.