ckan / ideas

[DEPRECATED] Use the main CKAN repo Discussions instead:
https://github.com/ckan/ckan/discussions
40 stars 2 forks source link

CKAN Data Explorer - base component that allows you to pull in & explore data from any (DataStored) dataset in a CKAN instance #13

Open rufuspollock opened 10 years ago

rufuspollock commented 10 years ago

CKAN Extension to create a Data Explorer dashboard.

Live at: /explorer

rufuspollock commented 10 years ago

In progress at https://github.com/rgrp/ckan-explorer

rufuspollock commented 10 years ago

OK, now have sql querying support :-)

Key code is very simple: https://github.com/rgrp/ckan-explorer/blob/master/js/app.js#L88-L121

Here's a nice screenshot where i'm doing a group by to see the largest expenditure in the Adur District spending on demo.ckan.org ...

 SELECT "Supplier", SUM("Amount") FROM "04127ad5-77e5-4a08-9f40-12d3c383e460" GROUP BY ("Supplier") ORDER BY SUM("Amount") DESC;

image

adamamyl commented 10 years ago

does this support JOINs? (I've not seen a deviation from @yesthatjwz's "regexp quip" wrt JOINs, not regexp)

rufuspollock commented 10 years ago

@adamamyl I believe it does - i'll need to get some example data up to show it though ...

davidread commented 10 years ago

Great stuff!

rufuspollock commented 9 years ago

@adamamyl I have examples with JOINs - https://gist.github.com/rgrp/0b24589bd3293234917b