OWL-RL icon indicating copy to clipboard operation
OWL-RL copied to clipboard

Add test to demonstrate owl:Axiom interpretations in inferencing

Open ajnelson-nist opened this issue 3 years ago • 5 comments

I've been inspecting owl:Axiom for potential use in a project. (What I'm trying to do is out of scope of this patch series, but the short of it is, I'm trying to almost but not entirely assert a triple, while remaining in OWL 2 DL. Subclassing owl:Axiom looks like it might work, but reviewing the OWL 2 specs has left me spinning. It's not obvious to me whether this is a good idea or an explicit faux pas. If you know one way or the other offhand, I'd appreciate hearing it! Meanwhile, relevant to the RDFLib OWL-RL project, I may have found a bug.)

I am having difficulty finding in the OWL specifications how owl:Axiom is supposed to behave when its described triple is not already asserted(/present) in the graph. Would any of this repository's maintainers be able to help answer some of these questions, encoded in a unit test added in this patch series? (Patch 1 has a commit message providing further detail.)

I appreciate some of this may be out of scope of RL-specific functionality, but it appears from Issues 33 and 35 that this repository is looking to slightly expand its scope beyond RL. Please let me know if there is a better venue for this line of questions.

ajnelson-nist avatar Jan 18 '22 22:01 ajnelson-nist

Also, I'm aware this first version of the unit test fails. I currently think it hits unimplemented functionality in closure construction.

ajnelson-nist avatar Jan 18 '22 22:01 ajnelson-nist

Not an OWL expert, but I always have good luck asking at https://gitter.im/linkeddata/chat - so maybe that helps.

aucampia avatar Jan 19 '22 00:01 aucampia

I've been informed that if an RDF pattern does not match the OWL 2 Web Ontology Language Mapping to RDF Graphs, the RDF document is in OWL FULL. I would like to stay within OWL 2 DL semantics, so I will modify this PR to not step into that extended usage of owl:Axiom.

ajnelson-nist avatar Feb 11 '22 21:02 ajnelson-nist

I've updated the test, but I'm not sure if I placed one of the failure detectors right. An IRI-identified owl:Axiom bumps the graph into OWL 2 FULL. Should the closure raise an Exception on finding it is in OWL 2 FULL?

ajnelson-nist avatar Feb 11 '22 22:02 ajnelson-nist

I will try find some time this week to review this.

aucampia avatar Feb 20 '22 23:02 aucampia