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
Add uri_format to obo
#913
Conversation
@@ -68117,6 +68117,7 @@ | |||
"fairsharing": "FAIRsharing.847069" | |||
}, | |||
"name": "Open Biological and Biomedical Ontologies", | |||
"pattern": "^[A-Za-z][A-Za-z_0-9]+$", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so can you give some examples of what is actually valid in this URI space since ther aare actually a lot of things tat get put here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I contemplated that again. I thought this should be a fall-through identifier pattern for everything apart from the gravest violations like leading numbers, punctuation etc (for the case when using bioregistry to validate a curie). But now I am thinking that this may not be enough for example if we want to put ontology purls into CURIE syntax: obo:mondo/mondo-base.owl
.
Maybe there is no point in documenting a pattern? I always thought it was for validation purposes, and therefore useful, but maybe that's not what it is for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the pattern is for validation, but if we put a pattern that's too strict then we will get upset. Bioregistry has a slot for multiple correct example IDs as well as some example incorrect IDs so we can sanity check the pattern. If you make a list of a couple we can test this pattern, otherwise if it's too much work then this one might not be worth bothering
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"pattern": "^[A-Za-z][A-Za-z_0-9]+$", |
I have no meaningful picture of the entire space of possible values - so lets drop it for now and re-introduce it if it becomes needed. Thanks for holding hands!
obo
prefix in bioregistry.jsonobo
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #913 +/- ##
=======================================
Coverage 40.86% 40.86%
=======================================
Files 135 135
Lines 7803 7803
Branches 1809 1809
=======================================
Hits 3189 3189
Misses 4418 4418
Partials 196 196
☔ View full report in Codecov by Sentry. |
Closes #910
Oops you already did it in #911 -> Not sure if you care about the additional content or just drop it.