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 check fails when using language tags #90

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

Consistency check fails when using language tags #90

tobiaswjohn opened this issue Dec 6, 2024 · 0 comments

Comments

@tobiaswjohn
Copy link

I am using Openllet to decide if an ontology is consistent and found a case where the decision is not correct. Here is a minimal example.

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

Ontology (
	Declaration(DataProperty(:dp))
	FunctionalDataProperty(:dp)
	
	EquivalentClasses(
	    owl:Thing
	    DataHasValue(:dp "s1"@en) 	
	    DataHasValue(:dp "s2") 
	)
)

  • The problem:
    Openllet infers that the ontology is consistent, although it is not. It seems to be some problem with how the language tags are treated, because removing the language tag of "s1" leads to openllet computing the correct result.

  • 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);

openllet.isConsistent()
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