-
Notifications
You must be signed in to change notification settings - Fork 53
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
Files managed in OBO format have replaced by values as CURIE strings #642
Comments
Any chance we could fix the OBO parser to recognise a CURIE value in a OBO files would then still use CURIEs, but they would automatically become IRIs upon transformation into any other format, without requiring any special processing at the ODK level. |
I've been keeping some notes on things we could clean up in the OBO parser. I would love if there were a syntactic difference between CURIEs and full IRIs so that either could be used, and a way to define prefixes. Maybe some interested folks could join a working group to create a revision. |
@balhoff Not sure I understand why we would need a “syntactic difference between CURIs and full IRIs“? Doesn’t the |
I need to go back and look at some of the specific cases, but the OBO parser makes some wrong assumptions in various situations. In every other OWL format a full IRI is surrounded by |
Also—there is no way to define non-OBO namespace CURIEs, which is pretty limiting. |
I think in the interest of the future, it would be great to collect all obo-format problems together in some issue and organise a hackathon to fix the parsers, but in the interim, I would still like to implement a method to hack this. As I will now introduce formal contexts to each ontology repos (which contain prefix maps), my idea was to add a python script that reads the context and the intermediate ontology, replaces all prefixes that are known according to the context drop the rest with a warning. |
Do we want to fix the parsers or the format? To be clear, I was talking about the parser, but I read @balhoff ’s comments above as if he would like a new version of the OBO format. |
I think its mostly about fixing the parser, but I think you need to add prefix maps to be able to curate non-OBO curies, for example in the replaced by section. Not sure of OBO format has that.. |
I believe it does: the OBO Flat File Format specification describes a The owlapi’s OBO parser recognises that tag but doesn’t seem to do anything with it. I suspect that if we used the mappings declared in |
I don’t think there is anything left for the ODK to do here? The OWLAPI OBO parser does expand CURIEs found in @matentzn Anything else you wanted to be done as part of this issue? |
Nope, this is all we needed! Thanks for cleaning out! |
We should try and make sure they are correctly rewritten to URIs before moving out. Maybe use the new intermediate call #639
see monarch-initiative/mondo#2636
The text was updated successfully, but these errors were encountered: