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

Dereferenceable uris for github repositories #2

Open
mielvds opened this issue Jan 31, 2014 · 2 comments
Open

Dereferenceable uris for github repositories #2

mielvds opened this issue Jan 31, 2014 · 2 comments

Comments

@mielvds
Copy link

mielvds commented Jan 31, 2014

When a repo is stored in GitHub, the URI used to identify files can be the native .../raw/... uri, which is dereferenceable. Provide an option to use a URI template for specifying the file (or any other for that matter) uris.

@tdn
Copy link
Contributor

tdn commented Feb 6, 2014

We could implement this, but it would be different for github, gitlab, gitorious, etc. because the /raw feature is a git platform implementation specific feature.

But I can see the value of doing it for github URI's.

@mielvds
Copy link
Author

mielvds commented Mar 27, 2014

Github's popularity justifies this. Another option would be supplying a URI template for the prov:Enttity subject URIs.

For instance:
https://raw.githubusercontent.com/{groupname}/{reponame}/{commit}/{filepath}

The variables groupname, reponame and filepath are filled in by git2prov, so for commit 1c036643ef668ef836f251ead1cdd0835dbfdb3b

https://raw.githubusercontent.com/datasets/country-codes/1c036643ef668ef836f251ead1cdd0835dbfdb3b/data/country-codes.csv

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

No branches or pull requests

3 participants