Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Badges for each data package in a GitHub repository #285

Open
Stephen-Gates opened this issue Jan 16, 2018 · 3 comments
Open

Badges for each data package in a GitHub repository #285

Stephen-Gates opened this issue Jan 16, 2018 · 3 comments

Comments

@Stephen-Gates
Copy link
Contributor

I'm making a repository containing many data packages in separate directories. I would like to validate each package individually and award badges to each data package and show it in the data package README.md.

When I add the repo to goodtables.io, it correctly detects that there are two data packages but only awards one badge: goodtables.io

Is there a way to have one repo, many data packages, each with there own badge?

It would be really helpful for the reboot of https://github.com/frictionlessdata/example-data-packages

@vitorbaptista
Copy link
Contributor

That's an interesting suggestion. Maybe we could allow something like badge.svg?path=my_data/datapackage.json to get a badge specific to some file.

It should be relatively simple for individual files, but I'm not sure how complicated it would be for datapackages, what UI changes it would require, and how useful it is for our users in general. Do you know of anyone publishing multiple datasets in a single repository, apart from these sample datapackage sets?

@Stephen-Gates
Copy link
Contributor Author

Many of these repositories have multiple datasets - I haven't looked at them all https://discuss.okfn.org/t/anyone-have-links-to-data-in-github-repositories/6369

@Stephen-Gates
Copy link
Contributor Author

For each of the files defined in goodtables.yml create a badge referenced by url, e.g.

  • Source: GitHub
  • User: frictionlessdata
  • Repo: example-data-packages
  • Data: stored in my_data/mydata.csv

Get badge from: https://goodtables.io/badge/github/frictionlessdata/example-data-packages/badge.svg?path=my_data/mydata.csv

For each of the datapackages defined in goodtables.yml create a badge. Using same repo as above,

  • Data Package: stored in my_packaged_data/datapackage.json

Get badge from: https://goodtables.io/badge/github/frictionlessdata/example-data-packages/badge.svg?path=my_packaged_data/datapackage.json

User Interface change would be providing a link to a badge per file or datapackage instead of at the end of the job results

goodtables
source: https://goodtables.io/github/Stephen-Gates/service-locations/jobs/60

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

No branches or pull requests

2 participants