theodi / git-data-viewer

A viewer for Open Data sets stored in git repositories. In progress.
http://git-viewer.labs.theodi.org/
MIT License
22 stars 1 forks source link

Support for gists? #18

Closed psychemedia closed 11 years ago

psychemedia commented 11 years ago

How about previews of multifiles in a gist?

eg accepting a URL in the previewer along the lines of: https://gist.github.com/psychemedia/5633865

(note - the json file hasnlt been validated so this package may be broken!)

Floppy commented 11 years ago

Mm, good point. It might already work given a valid datapackage if you enter the git clone URL (https://gist.github.com/5633865.git), though it might try to do some github-specific things that it shouldn't. Worth a go!

Floppy commented 11 years ago

http://git-viewer.labs.theodi.org/repositories/https%3A%2F%2Fgist.github.com%2F5633865.git explodes at the moment, but I think that might be caused by the same bug that means bitbucket doesn't work either. I think I got a bit overzealous with the host autodetection.

psychemedia commented 11 years ago

It seems that there is a datapackage.json generator that make a stab at generating datapackage.json files. I posted a suggestion that this could be extended to wrap multifile gists: https://github.com/okfn/data.okfn.org/issues/47 thinking that it would then be possible to just paste a gist URL into the data viewer, for example, allow the data viewer to call an API service to autogenerate the datapackage.json, and then use that for display purposes?

Floppy commented 11 years ago

Interesting; I know @rgrp was interested in a datapackage generator, didn't know someone had had a crack at it already. Hmmm...

Floppy commented 11 years ago

This does indeed work, once I fixed the other bug. See http://git-viewer.labs.theodi.org/repositories/https%3A%2F%2Fgist.github.com%2F5633865.git for the hotness.

Floppy commented 11 years ago

Moved the suggestion for autogeneration to #20.