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

TranslationException error when normalizing ontology. #7

Open
ferzcam opened this issue Jul 17, 2022 · 0 comments
Open

TranslationException error when normalizing ontology. #7

ferzcam opened this issue Jul 17, 2022 · 0 comments

Comments

@ferzcam
Copy link

ferzcam commented Jul 17, 2022

Hello. I have tried to normalize the ontology found here but I get this error:

de.tudresden.inf.lat.jcel.owlapi.translator.TranslationException: de.tudresden.inf.lat.jcel.owlapi.translator.TranslationException: Object cannot be translated: 'ObjectUnionOf(<http://purl.obolibrary.org/obo/UBERON_0001299> <http://purl.obolibrary.org/obo/UBERON_0006653>)'.

I also have a modified version of the previous ontology that can be downloaded from here. In this case I get this error:

de.tudresden.inf.lat.jcel.owlapi.translator.de.tudresden.inf.lat.jcel.owlapi.translator.TranslationException: de.tudresden.inf.lat.jcel.owlapi.translator.TranslationException: The translation map is incomplete. Item id was not found: 'https://github.com/obophenotype/uberon/wiki/Inferring-part-of-relationships'

This is. my code:

from de.tudresden.inf.lat.jcel.owlapi.main import JcelReasoner
from org.semanticweb.owlapi.apibinding import OWLManager

ont_manager = OWLManager.createOWLOntologyManager()
ontology = ont_manager.loadOntologyFromOntologyDocument(java.io.File("ontology_path"))
jreasoner = JcelReasoner(ontology, False)

The code is written in Python but I am using JPype to interface with Java.
Would you please help me to figure out what is happening?

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