[ckan-discuss] Resource Formats, Mimetypes etc

Egon Willighagen egon.willighagen at gmail.com
Mon Apr 25 08:01:58 BST 2011


On Thu, Apr 21, 2011 at 8:03 PM, Rufus Pollock <rufus.pollock at okfn.org> wrote:
> * Straightforward file extensions formats e.g. 'csv', 'xls'
> * Different 'kinds' of resource (api/file/examples/service) api/sparql, service
> * Nested resources (this is zipped json = zip:json)

I use these three.

> Suggested changes:
>
> 1. Introduce a kind field on Resource which contains api/file/example/
> (rather than having this in format)

OK.

> 2. Introduce mimetype on Resource which is a proper mimetype (and
> should be mimetype of 'outer' object e.g. zipfile for zipped json)
> 3. Format is the 'unparsed' version that is user-provided. Still keeps
> conventions for nested and 'or' resources and its simple approach
> (e.g. can just csv or xls)

Can you give an example of how, for example, zip:n3 would look like in
the new formalism?

:someCKANEntry :resourceMimeType "application/zip" ;
  :format "application/n3" .

Like that?

Egon

-- 
Dr E.L. Willighagen
Postdoctoral Researcher
Institutet för miljömedicin
Karolinska Institutet (http://ki.se/imm)
Homepage: http://egonw.github.com/
LinkedIn: http://se.linkedin.com/in/egonw
Blog: http://chem-bla-ics.blogspot.com/
PubList: http://www.citeulike.org/user/egonw/tag/papers



More information about the ckan-discuss mailing list