[ckan-discuss] "url" fields in API responses for datasets

Thomas Levine _ at thomaslevine.com
Fri Jan 10 15:38:32 UTC 2014


Ross Jones gave me an account. Thanks!

Here's the difference, in case anyone is curious.
https://github.com/tlevine/open-data/blob/master/reports/dead-links-check_ckan_api.json

On Fri, Jan 10, 2014 at 02:02:37PM +0000, Thomas Levine wrote:
> Or, could anyone give me an account on a CKAN site
> where I can try using the FileStore and see how resources
> are displayed?
> 
> On Fri, Jan 10, 2014 at 04:53:32AM +0000, Thomas Levine wrote:
> > One more thing!
> > 
> > (How) can I tell whether a resource is coming from the FileStore,
> > rather than from an ordinary file on the internet?
> > 
> > On Tue, Dec 24, 2013 at 11:43:14AM +0000, Rufus Pollock wrote:
> > > Root level URL is better described as "homepage" (it was borrowed from
> > > python packages url which is usually the home page of the project).
> > > 
> > > The urls you want are the resource urls.
> > > 
> > > Rufus
> > > 
> > > 
> > > On 24 December 2013 00:57, Thomas Levine <_ at thomaslevine.com> wrote:
> > > 
> > > > I want to download datasets from CKAN.
> > > >
> > > > The API gives me two fields that might be the appropriate one. Here are
> > > > the relevant parts of the API response.
> > > >
> > > > {"url":..., "resources":[{ "url":... },...]}
> > > >
> > > > The resources seem to be sorted chronologically, so the url of the last
> > > > resource might make sense to use.
> > > >
> > > > On the other hand, maybe the url field in the root is the right one.
> > > >
> > > > The resources list might be empty, and the root url field may be null.
> > > > Also, these two versions of url aren't necessarily the same.
> > > >
> > > > What does the root-level url represent?
> > > >
> > > > Thanks
> > > >
> > > > Tom
> > > > _______________________________________________
> > > > ckan-discuss mailing list
> > > > ckan-discuss at lists.okfn.org
> > > > https://lists.okfn.org/mailman/listinfo/ckan-discuss
> > > > Unsubscribe: https://lists.okfn.org/mailman/options/ckan-discuss
> > > >
> > > >
> > > 
> > > 
> > > -- 
> > > 
> > > 
> > > *Rufus PollockFounder and Executive Director | skype: rufuspollock |
> > > @rufuspollock <https://twitter.com/rufuspollock>The Open Knowledge
> > > Foundation <http://okfn.org/>Empowering through Open
> > > Knowledgehttp://okfn.org/ <http://okfn.org/> | @okfn
> > > <http://twitter.com/OKFN> | OKF on Facebook
> > > <https://www.facebook.com/OKFNetwork> |  Blog <http://blog.okfn.org/>  |
> > >  Newsletter <http://okfn.org/about/newsletter>*
> > _______________________________________________
> > ckan-discuss mailing list
> > ckan-discuss at lists.okfn.org
> > https://lists.okfn.org/mailman/listinfo/ckan-discuss
> > Unsubscribe: https://lists.okfn.org/mailman/options/ckan-discuss
> _______________________________________________
> ckan-discuss mailing list
> ckan-discuss at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-discuss
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-discuss


More information about the ckan-discuss mailing list