Open rufuspollock opened 8 years ago
@mihi-tr wrote in #83:
I do think we'll need to think along the lines of having CORS enabled access for the datasets. Based on the dataset.json format (which allows relative urls) the api should look like
.../dataset/datapackage.json
and then have
.../dataset/path-to-data/filename
for the data files - this way it doesn't matter which package url I got pointed at
Alternatively: modify datapackage.json - this is very ugly IMO
@mihi-tr I don't know if you saw the extensive refactor of this proposal about a month ago. Please look at proposal above. As part of #73 I actually implemented most of the proposal at least for "core" datasets.
Please let me know if addresses your proxy need - and if there can be an even better API (I guess your biggest concern is which are not in core but note i propose a way to handle these - though not yet implemented).
From @mihi-tr on November 30, 2013 19:22
It would (I think). Would need to test this in a practical environment.
@mihi-tr here's an example of current api style: http://data.okfn.org/data/s-and-p-500-companies/r/constituents.csv
Based on convo with @mihi-tr today downgrading priority to one star:
@mihi-tr still be nice to know what exactly should be in that tool ...
Have updated proposal to flesh out the case for general online data packages - which are now think is the priority (given that we plan to not to much cataloging in this site and in this app).
@mihi-tr could you look at the proposal in main part of issue about data packages online and let me know if this solves your requirements
From @rgrp on February 24, 2013 18:26
This issue is about the URL / API structure for accessing data (and metadata) from the data packages.
Current Situation
Proposal
/data/ + /community/ data packages
For /data/ and /community/ data packages:
Formats that we should support would be:
Addressing individual elements
Longer-term we could support addressing individual elements e.g. addressing into rows in a dataset or :
Questions:
i:{number}
Data packages somewhere online
We follow something similar to the other case but instead of data package name in the url we move the data package url to the query string:
Discussion
(Now supported) How do we handle multiple data resources / files?worry about that in the future - so only support first resource for the moment (this is good as it privileges single resource data packages ...)Appendix
Alternatives
Alternatively could be:
Or
Think the former is better ...
Copied from original issue: frictionlessdata/ideas#19