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

Allow specifying input type in robot convert #1038

Open
cthoyt opened this issue Aug 5, 2022 · 9 comments · May be fixed by #1056
Open

Allow specifying input type in robot convert #1038

cthoyt opened this issue Aug 5, 2022 · 9 comments · May be fixed by #1056

Comments

@cthoyt
Copy link

cthoyt commented Aug 5, 2022

Right now, when I get an error from robot convert, I have to add -vvv to get logs to figure out what is broken in the ontology, but this includes all of the logs from all of the different parsers robot tried. It would be nice to have a --input-format flag that lets me specify exactly what format the input it is, so this iteration through every possible parser type can be avoided and I can more easily get to my relevant logs

E.g., I need to ctrl-f for org.semanticweb.owlapi.oboformat.OBOFormatOWLAPIParser every time I am trying to parse an OBO file, and the names are pretty hard to remember for each of these classes

@matentzn
Copy link
Contributor

matentzn commented Aug 5, 2022

These parsing messages are a nightmare.. I agree, and I would even like to go a bit further and widdle down the error message in the stack trace a bit. I think this is a good idea @cthoyt and should not be too hard to implement.. I wont do it right now, but if pressure mounts on this ticket I might be convinced to do it.

@cmungall
Copy link
Contributor

cmungall commented Aug 9, 2022 via email

@beckyjackson beckyjackson linked a pull request Sep 30, 2022 that will close this issue
5 tasks
@jamesaoverton
Copy link
Member

@cthoyt Can you please look at PR #1056 and let us know if it works for you?

@cthoyt
Copy link
Author

cthoyt commented Oct 1, 2022

Indeed that PR looks like it will get the job done.

@jamesaoverton
Copy link
Member

@cthoyt: @balhoff discovered that the effect of limiting the parsers used is transitive to the imports. I didn't think of that, but it's just the way OWLAPI implements it. So is the feature still useful to you?

@cthoyt
Copy link
Author

cthoyt commented Dec 7, 2022

@jamesaoverton does this mean if there's a mismatch then it will explode? I think it will still be useful to just get the base ontology information.

@jamesaoverton
Copy link
Member

My understanding is that if you ask for RDF/XML then only that parser will be used, for the ontology and all of its imports. So if an import is in Turtle (or whatever) that import will fail to parse.

@cthoyt
Copy link
Author

cthoyt commented Dec 7, 2022

So if the import failing to parse doesn't cause the entire job to break, then this is fine for me.

@cmungall
Copy link
Contributor

cmungall commented Dec 7, 2022

we definitely want this to fail fast - if O1 imports O2 and O2 is not parseable then loading O1 should fail

I think if you want to avoid import closures this needs to be configured separately but this seems like a separate ticket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants