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

How to share a link to a particular dataset? RESTful interface? #2

Open
nealmcb opened this issue Jul 18, 2015 · 2 comments
Open

How to share a link to a particular dataset? RESTful interface? #2

nealmcb opened this issue Jul 18, 2015 · 2 comments

Comments

@nealmcb
Copy link

nealmcb commented Jul 18, 2015

Forgive me for not looking very hard for how this all works, but I hope this is useful.

When I browse to http://datasets.codeneuro.org/ and find a particular dataset, e.g. the one for ahrens lab, direction selectivity, number 1, I see a bit of metadata and a working link to an s3 dataset. But the URL hasn't changed. If I want to share the results of my browsing with someone else, I'd like to get a permanent URL for this page of metadata and links to the the real data.

What is the permanent URL at this site for that dataset? So that e.g. later when the notebook link for it goes life, folks that I've shared the URL with will be able to then get to it.

@freeman-lab
Copy link
Member

Nice idea! I got something simple working here using URL queries and the iron-router plugin for meteor.

If you now go to, for example:
http://datasets.codeneuro.org/dataset?source=svoboda.lab&project=tactile.navigation&name=1

It should take you directly to the app with that data set selected and metadata displayed.

Also added a share button (to display this link having made a selection). And unrelated to this, I added a helper menu on ways of accessing the data.

Play around and see if it's what you had in mind.

@nealmcb
Copy link
Author

nealmcb commented Jul 28, 2015

Thanks - that is very helpful!

I find that for the main objects on a server, cleaner/shorter URLs (e.g.
http://datasets.codeneuro.org/dataset/svoboda.lab/tactile.navigation/1) can be preferable to URLs with query strings, and are typically better indexed by search engines.

I also note that the URL doesn't change while you navigate. That means that just taking a bookmark of the current page doesn't get you back to the current page later, like taking the permalink does. That may require deeper changes in the code, but would reduce confusion.

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

No branches or pull requests

2 participants