-
Notifications
You must be signed in to change notification settings - Fork 36
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
Issue with Food Ontology Class Casting #277
Comments
Hi, thanks for reporting this. So the java manchester OWLAPI might have problems reading the latest foodon github release file version, but I'd be surprised if it couldn't read the github root's foodon.owl . Did you try that? I am working on a new release shortly that validates byway of the "apache jena riot" command. If above doesn't work perhaps this will. I should have it up in a day or so. |
Thank you for your quick response! I did try using a previous version of foodon, but that didn't work. It still doesn't work (same error). |
Can you use Apache jena riot to validate? That tool has ability to validate and identify in one swoop any owl file syntax issues via: riot --validate [path to]/foodon.owl If using some other tool, you have to turn on verbose error reporting in your parser if possible to have a chance at diagnosing which part of owl file is triggering this. The OWL API "Exception in thread "main" " isn't enough to go on, and usually its the verbose log line before that hints at what phrase or line couldn't be parsed. Right now with master branch foodon.owl I'm not getting any errors. I just uploaded a version of it with a few tweaks so I'd be dumfounded if you weren't able to load that. |
Thanks for your reply, @ddooley. I can confirm that the current
(assuming that |
I suspect this issue may be an issue with our pipeline's attempting to convert
and this is causing errors, as shown here:
Similarly if I try to do the conversion using
So there may just be an issue that |
Ahh. I run your robot convert command with -vvv and it indicates it can load the ontology, but not save it. We could check with the robot folks about that. Indeed, it is not indicating why it can't save in obo format, but good news is it seems to pass rdf validation such that it can load. |
I see now, perhaps there are some terms with two definitions by accident etc. that would cause error on obo save. We will be implementing ODK soon on the foodon site that should bring some of the obo format specific error reporting into our build pipeline so we can solve that. In the meantime I'd appreciate if you could let us know if your "robot remove" strategy works. |
I'm also seeing this issue with FOODON v2024-02-21 - it does not appear to convert to obojson with ROBOT, and the usual Edit: spoke too soon. This works:
|
Hello! I am having issues loading food ontology (using
owltools
), as documented here: RTXteam/RTX-KG2#300.I'm having trouble tracking down where in the Food Ontology this is occurring, so I wanted to post an issue here, since you might have a better idea of where to look. Here's the specific exception:
Thank you!
The text was updated successfully, but these errors were encountered: