Community Data Science Workshops (Spring 2015)/Day 2 Projects/Socrata
Building a Dataset using the Socrata API and data.seattle.gov
In this project, we will explore a few ways to gather data from data.seattle.gov using the Socrata API. Once we've done that, we will extend this to code to create our own datasets of civic data that we might be able to use to ask and answer questions in the final session.
- Get set up to build datasets with the Socrata API
- Have fun collecting different types of data from data.seattle.gov
- Practice reading and extending other people's code
- Create a few collections of different types of data from Socrata that you can do research with in the final workshop session
Download the Socrata project
[jtmorgan.net/cdsw/april25scripts.zip Click here to download the Socrata scripts]
(Estimated time: 10 minutes)
Topics to cover
- explain Socrata open data platform, exists on other government websites
- navigate to api page and show the documentation, point out examples
- introduce the API sandbox as a tool for building queries
- What Seattle neighborhood has the most art galleries?
- What Seattle neighborhood has the most square feet devoted to arts & culture?
- Which trail gets more bike traffic per month--the Mountain to Sound Trail or the Burke Gilman?
- What day of the week does the Burke Gilman have the most total traffic? What day has the most pedestrian traffic? What time of day has the most southbound traffic, on average?
- filtering results
- dealing with timestamps
- http://dev.socrata.com/docs/queries.html writing API queries]
- Seattle Cultural Space Inventory
- MTS trail bike/ped traffic
- Burke Gilman trail bike/ped traffic
- Road temps in Seattle
- SPD 911 incident respose
- Other Socrata sites