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

problem in loading ontologies that have unworking imported ontologies #19

Open
marwa811 opened this issue Oct 24, 2020 · 6 comments
Open

Comments

@marwa811
Copy link

Hello,

Thanks for your effort in such an excellent tool for matching ontologies.
I am using your API in my research and I found an exception happened when I try to load an ontology the have a broken imported link. For example, OBOE-SBC.owl (you can download it from Bioportal), has an imported ontology called "oboe-context.owl" that its IRI doesn't exist anymore. That's why when I use your API I got:
UnloadableImportException: Could not load imported ontology: http://ecoinformatics.org/oboe/oboe.1.0/oboe-context.owl
Could you fix that in your Ontology() class in function openOntology(str,str).

Regards,
Marwa

@marwa811
Copy link
Author

P.S. you can use this code snippet for such task:

OWLOntologyManager manager=OWLManager.createOWLOntologyManager();
OWLOntologyLoaderConfiguration loaderConfig = new OWLOntologyLoaderConfiguration()
.setMissingImportHandlingStrategy(MissingImportHandlingStrategy.SILENT);
IRIDocumentSource source=new IRIDocumentSource(IRI.create("ontology IRI"));
OWLOntology ontology = manager.loadOntologyFromOntologyDocument(source, loaderConfig);

@DanFaria
Copy link
Collaborator

DanFaria commented Nov 3, 2020

Hi @marwa811,

I actually made this very fix two months ago in the dev branch we're working on for complex ontology matching, but forgot to update the master branch and the release.
I will do so ASAP, and get back to you when it is fixed.
Thanks for your appreciation!

Daniel

@marwa811
Copy link
Author

marwa811 commented Feb 23, 2021 via email

@DanFaria
Copy link
Collaborator

Hi Marwa,

Apologies for the delay. I just fixed the issue.
If you were working with the source code, you can just make a new pull of the master branch. If you were working with the binary, please download AML release v3.2.

I would appreciate it if you could confirm that you can load your ontologies with no issues.

Best,

Daniel

@DanFaria DanFaria closed this as completed May 5, 2021
@marwa811
Copy link
Author

Hi Dan
I am sorry for being late to confirm but I was busy with another project. Now I tried the AML release v3.2. to find if the "could not load imported ontology" Exception, but It was not solved, still getting the same exception!!
Any Suggestions to fix it?

Regards,
Marwa

@DanFaria
Copy link
Collaborator

DanFaria commented Jul 1, 2021

Hi Marwa,

I'll look further into it to see if there is an alternative fix.
But for the time being maybe you can consider the workaround of removing the troublesome import statement(s) from the ontology in question.

Best,

Daniel

@DanFaria DanFaria reopened this Jul 1, 2021
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

2 participants