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

Incorrect inference of IrreflexiveObjectProperty #92

Open
tobiaswjohn opened this issue Dec 6, 2024 · 0 comments
Open

Incorrect inference of IrreflexiveObjectProperty #92

tobiaswjohn opened this issue Dec 6, 2024 · 0 comments

Comments

@tobiaswjohn
Copy link

I am using Openllet to compute inferred axioms and I discovered an incorrect inference. Here is a minimal example.

  • Ontology in functional syntax:
Prefix(:=<http://www.example.org/reasonerTester#>)

Ontology (
	Declaration(Class(:A))
	Declaration(ObjectProperty(:p))
	Declaration(ObjectProperty(:q))
	Declaration(ObjectProperty(:r))
	
	SubClassOf(  
	    ObjectHasSelf(:q) 
	    ObjectSomeValuesFrom(:r :A)
	)
	
	SubObjectPropertyOf(  
	    :p 
	    :q
	)
)
  • The problem:
    Openllet infers the axiom IrreflexiveObjectProperty(:p), which is not entailed by the ontology. I also cross checked using HermiT, which does not infer this axiom.

  • For reproduction, here is the call from my program using OWL API:

OWLOntologyDocumentSource source = new FileDocumentSource(ontFile, new FunctionalSyntaxDocumentFormat());
OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
ont = manager.loadOntologyFromOntologyDocument(source);
OWLReasoner openllet = OpenlletReasonerFactory.getInstance().createReasoner(ont);

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

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

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