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

ontologies not in import closure if owl:imports <iri> does not match <iri> a owl:Ontology #709

Open
tgbugs opened this issue Sep 8, 2017 · 4 comments
Assignees
Labels
Status: Needs Triage Should be the default status for issues that have been acknowledged, but not yet processed.

Comments

@tgbugs
Copy link

tgbugs commented Sep 8, 2017

If the ontology iri (ie <iri> a owl:Ontology) does not match that of the owl:imports <iri> when loading a local copy from a catalog.xml then the ontology will not be included in the import closure and will not be included for reasoning.

To reproduce this git clone https://github.com/SciCrunch/NIF-Ontology.git; cd NIF-Ontology; checkout uri-switch and open NIF-Ontology/ttl/nif.ttl in protege using the Open... option in the file menu.

Viewing the Ontology imports pane in the Active ontology tab of protege will show the imported iri without any additional information. When the reasoner is run any axioms from the mismatched iri cases will not be included. Axioms from the mismatched iri cases will not appear unless you switch to the Show all loaded ontologies option under View.

The work around I use is to patch the import chain of all my ontologies when I want to reason and have the <iri> a owl:Ontology iris in my catalog point to the local copy. See the patch and the catalog I use to fix the issue (note on the usage).

See also #629 (comment)

@gpotdevin
Copy link

I can confirm both the issue and workaround stated above.

@matthewhorridge matthewhorridge added the Status: Needs Triage Should be the default status for issues that have been acknowledged, but not yet processed. label Jan 15, 2019
@malte3d
Copy link

malte3d commented Sep 22, 2023

Can confirm this bug is still present and the workaround stated above still works.

However, based on the research i did for actual solutions to fix the core problem, it is not in Protege itself, but in the way the OWL API library handles the import resolution. So this most likely has to fixed in https://github.com/owlcs/owlapi

@vChavezB
Copy link

vChavezB commented Nov 26, 2023

I am not sure if it entirely the same issue as in #1181 but if yes try appling the patch I provide in #1181 (comment)

@vChavezB
Copy link

issue should be solved with release 5.6.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Should be the default status for issues that have been acknowledged, but not yet processed.
Projects
None yet
Development

No branches or pull requests

6 participants