-
Notifications
You must be signed in to change notification settings - Fork 206
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
Create our own OBO Dashboard badge #1739
Comments
You can actually stick pretty arbitrary stuff into badges with https://shields.io, even coming from a JSON endpoint Getting from a listE.g., I have a YAML file on the OBO Community report that I can turn a part of into a badge with
Creates: Note the query Getting from a dict
Note the query |
Thanks @cthoyt that would be super cool. Anyone wanting to pick this up would be greatly appreciated! |
Some inspiration maybe be taken from here: |
Assuming we work from the YAML results file available on https://raw.githubusercontent.com/OBOFoundry/obo-nor.github.io/master/dashboard/dashboard-results.yml, a URL like the following:
would give you a badge like this for the The URL looks awful because many characters need to be URL-encoded, but it can be broken down in the following parameters:
The left-side label of the badge
In the To have a badge for another ontology, change Use
The link to the YAML file. Of note, the |
I just realised that the OBO Dashboard already publishes per-ontology YAML files. We can then use slightly simpler URLs, such as this one for example for FBbt:
It is slightly simpler because we no longer need complex JSONpath syntax to select the correct value in the input file; to generate a badge for a different ontology, just replace |
Thank you so much for looking into it. Shame about the colour: I tried this: https://github.com/matentzn/badges/blob/main/bfo/dashboard.json But I cant get it to work. This is clearly according to the json schema you suggest, but it keeps giving me "unparseable json" (this is when I decided it was more productive to dispair than to move on). @cthoyt suggested this could be due to somehow github not providing the correct mimetype or something? |
I think we will go your way in the end; I would have liked something more "motivational" to get people to say: LETS FIX, I want this GREEEEN :D |
For the "unparseable JSON" bit: check that GitHub is returning the actual JSON file when using that URL, and not some HTML. You might need to use "raw.githubusercontent.com" to force GitHub to do that. |
Thank you sooo much @gouttegd and @cthoyt for helping me sort this out - this was a long standing issue for me and dear to my heart. I think the first draft is done. There are two badges, OBO QC and OBO Dashboard score: See here for an example how I envision this for NORs (top of the page): I will announce this more widely tomorrow (for general ontologies). |
#1739 Co-authored-by: Erik Whiting <[email protected]>
I would like to propose our own OBO dashboard badge which we can serve as part of an OBO dashboard run. Does anyone have any experience with creating GitHub badges? We still have not decided how compute the overall OBO score (OBOFoundry/OBO-Dashboard#26), but as a simple first pass I would like a badge for those passing the dashboard in their entirety..
The text was updated successfully, but these errors were encountered: