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

Add uri_format to obo #913

Merged
merged 4 commits into from Jul 25, 2023
Merged

Add uri_format to obo #913

merged 4 commits into from Jul 25, 2023

Conversation

matentzn
Copy link
Collaborator

@matentzn matentzn commented Jul 19, 2023

Closes #910

Oops you already did it in #911 -> Not sure if you care about the additional content or just drop it.

@@ -68117,6 +68117,7 @@
"fairsharing": "FAIRsharing.847069"
},
"name": "Open Biological and Biomedical Ontologies",
"pattern": "^[A-Za-z][A-Za-z_0-9]+$",
Copy link
Member

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

Copy link
Collaborator Author

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?

Copy link
Member

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"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!

@cthoyt cthoyt mentioned this pull request Jul 25, 2023
@cthoyt cthoyt changed the title Add uri_format and pattern to obo prefix in bioregistry.json Add uri_format to obo Jul 25, 2023
@codecov
Copy link

codecov bot commented Jul 25, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (63b08fa) 40.86% compared to head (566ad54) 40.86%.

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           
Files Changed Coverage Δ
src/bioregistry/version.py 68.42% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cthoyt cthoyt merged commit 074f325 into biopragmatics:main Jul 25, 2023
9 checks passed
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

Successfully merging this pull request may close these issues.

Add uri prefix to obo namespace
2 participants