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

Integrate DOI-based retrieval functions for selected data repositories #100

Closed
nuest opened this issue Dec 3, 2020 · 4 comments
Closed
Assignees
Labels
enhancement New feature or request

Comments

@nuest
Copy link
Member

nuest commented Dec 3, 2020

Zenodo, OSF, Figshare, Pangaea, ...

We need those functions for the survey anyway #57

@nuest nuest added the enhancement New feature or request label Dec 3, 2020
@nuest
Copy link
Member Author

nuest commented Dec 3, 2020

Extract the DOI to download functions from repo2docker into own lib and then base both tools on that.

@nuest
Copy link
Member Author

nuest commented Mar 19, 2021

Contentproviders: https://github.com/jupyterhub/repo2docker/tree/master/repo2docker/contentproviders

DOI to URL: https://github.com/jupyterhub/repo2docker/blob/master/repo2docker/contentproviders/zenodo.py#L46

Fetch code for Zenodo: https://github.com/jupyterhub/repo2docker/blob/master/repo2docker/contentproviders/zenodo.py#L53


# first
geoextent -b -t --output path/to/my.gpkg \
    https://zenodo.org/record/3528062

# second
geoextent -b -t --output path/to/my.gpkg \
    https://doi.org/10.5281/zenodo.3528062

# bonus
geoextent -b -t --output path/to/my.gpkg \
    10.5281/zenodo.3528062 \
    10.5281/zenodo.1234567

@nuest
Copy link
Member Author

nuest commented Mar 19, 2021

@nuest
Copy link
Member Author

nuest commented Apr 21, 2021

#125 implements this for Zenodo. Other content providers are added to the development queue at #126 #127 #128 #129 #130 #131

@nuest nuest closed this as completed Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants