ange3 / open-data-maker

make it easy to turn a lot of potentially large csv files into easily accessible open data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Open Data Maker

Build Status

The goal of this project is to make it easy to turn a lot of potentially large csv files into open data via an API and the ability for people to download smaller csv files with a subset of the data.

Preliminary research suggests that open data users (journalists and others) actually know how to work with spreadsheets really well, but a lot of the data sets that we have in government are huge.

The first version of this project will allow us to host a website for an agency with a specific set of csv files, which are deployed with the app. This will allows us to deploy more quickly since there will be a lower risk security profile than if an agency could upload the CSV files (which might be a nice longer term feature).

Install and Run the App (as a developer)

See our Installation Guide

How this works

By default, data will be loaded from /sample-data

  • cities100.csv - dataset of 100 most populous cities in the US
  • data.yaml - configuration for
    • how columns are mapped to fields in json output
    • index name city-data
    • api endpoint name cities

When you run the app (after rake import), you can query the dataset via json API, like: /cities?name=Chicago

To use your own data, you can set a different directory with

export DATA_PATH='./data'
  1. Put csv files into /data
  2. Import files from /data: rake import 1.1 there can be multiple files (must end in .csv) 1.1 optional data.yaml file that specifies column -> field mapping, index and API endpoint
  3. api endpoint to get the data /api?name=value

Help Wanted

  1. Try out importing multiple data sets with different endpoints and data.yaml configuration
  2. Take a look at our open issues and our Contribution Guide

More Info

Here's how it might look in the future:

overview of data types, prompt to download data, create a custom data set, or look at API docs

Download all the data or make choices to create a csv with a subset

About

make it easy to turn a lot of potentially large csv files into easily accessible open data

License:Other


Languages

Language:Ruby 97.0%Language:Shell 2.8%Language:JavaScript 0.1%Language:Liquid 0.1%