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

Support Handles more consistently, rather than just DOIs (which are a subset of handles) #1391

Open
pdurbin opened this issue Dec 17, 2024 · 3 comments

Comments

@pdurbin
Copy link
Contributor

pdurbin commented Dec 17, 2024

Proposed change

Support Handles (similar to DOIs)

That is, perhaps something like this should work:

jupyter-repo2docker hdl:11529/10549105

However, I'm not sure if you want https://mybinder.org/v2/dataverse/11529/10549105 to work? 🤔 Right now DOIs are assumed. As a URL https://mybinder.org/v2/hdl:11529/10549105 makes more sense to me.

Alternative options

From the command line, using the full URL works:

jupyter-repo2docker 'https://data.cimmyt.org/dataset.xhtml?persistentId=hdl:11529/10549105'

Who would use this feature?

I'm not 100% sure this feature would be used but last I checked the following Dataverse installations use Handles instead of DOIs

Perhaps some of them would like to use Binder. 🤷

How much effort will adding it take?

Not sure.

Who can do this work?

Someone who knows Python.

@yuvipanda
Copy link
Collaborator

While doing #1390, I realize that our DoiProvider is actually a HandleProvider because doi.org resolves all handles, not just DOIs! So the lift here is not super high.

@yuvipanda yuvipanda changed the title support Handles (similar to DOIs) Support Handles more consistently, rather than just DOIs (which are a subset of handles) Dec 20, 2024
@yuvipanda
Copy link
Collaborator

It's possible that doi.org will possibly not handle non-dois in the future (https://pidforum.org/t/billions-of-records/372/11?u=yuvipanda), but the API provided is also available at https://hdl.handle.net/ which does handle all handles, including DOIs

@yuvipanda
Copy link
Collaborator

Also we already support a subset of handles that exist on dataverse. So while jupyter-repo2docker hdl:11529/10549105 doesn't work, that handle redirects to https://data.cimmyt.org/dataset.xhtml?persistentId=hdl:11529/10549105. And jupyter-repo2docker 'https://data.cimmyt.org/dataset.xhtml?persistentId=hdl:11529/10549105' does work.

So we kinda support handles, but only on accident.

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

2 participants