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

missing inference (equivalent to bottomObjectProperty) #85

Open
tobiaswjohn opened this issue Oct 7, 2024 · 0 comments
Open

missing inference (equivalent to bottomObjectProperty) #85

tobiaswjohn opened this issue Oct 7, 2024 · 0 comments

Comments

@tobiaswjohn
Copy link

I am using openllet to infer axioms given an ontology and I think there is an axiom missing in some cases. I am not 100% sure if the axiom should be inferred, but HermiT does infer the "missing" equivalence axiom. Here is a minimal example for reproduction:
ontology:

@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<r> rdfs:range <B> .   
<r> rdfs:range <C> . 
<B> owl:disjointWith <C> .    

call from program:

OWLOntology ont = loadTurtle(ontFile);
OWLReasoner openllet = OpenlletReasonerFactory.getInstance().createReasoner(ont);

List<InferredAxiomGenerator<? extends OWLAxiom>> gens = new ArrayList<>();
gens.add( new InferredEquivalentObjectPropertyAxiomGenerator());

InferredOntologyGenerator iog = new InferredOntologyGenerator(openllet, gens);
OWLOntology infOnt = manager.createOntology();
iog.fillOntology(ont.getOWLOntologyManager().getOWLDataFactory(), infOnt);

Openllet does not infer any axiom, but the following should be inferred:

EquivalentObjectProperties(<r> owl:bottomObjectProperty)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant