Community Data Science Workshops (Spring 2015)/Day 2 Projects/Socrata: Difference between revisions

From CommunityData
(working on day 3 curriculum)
Line 41: Line 41:


=== Resources ===
=== Resources ===
* [https://www.hurl.it API Sandbox]
* About Google Fusion tables: https://support.google.com/fusiontables/answer/2571232
* [http://web6.seattle.gov/mnm/ API-powered app]
* Google Fusion Tables mapmaking tutorial: https://support.google.com/fusiontables/answer/2527132?hl=en&topic=2573107&ctx=topic
[http://dev.socrata.com/consumers/getting-started.html API resources]
* API sandbox tool: https://www.hurl.it
*[http://dev.socrata.com/docs/filtering.html filtering results]
* API-powered app: http://web6.seattle.gov/mnm/
*[http://dev.socrata.com/docs/datatypes/timestamp.html dealing with timestamps]
* Socrata API help resources: http://dev.socrata.com/consumers/getting-started.html
*[http://dev.socrata.com/docs/queries.html writing API queries]
:* filtering results: http://dev.socrata.com/docs/filtering.html
:* dealing with timestamps: http://dev.socrata.com/docs/datatypes/timestamp.html
:* writing API queries: http://dev.socrata.com/docs/queries.html


;Datasets
;Data.seattle.gov datasets with lat/long or street addresses
*[https://data.seattle.gov/Community/Seattle-Cultural-Space-Inventory/vsxr-aydq Seattle Cultural Space Inventory]
*[https://data.seattle.gov/Community/Seattle-Cultural-Space-Inventory/vsxr-aydq Seattle Cultural Space Inventory]
*[https://data.seattle.gov/Transportation/MTS-Trail-west-of-I-90-Bridge/u38e-ybnc MTS trail bike/ped traffic]
*[https://data.seattle.gov/Transportation/MTS-Trail-west-of-I-90-Bridge/u38e-ybnc MTS trail bike/ped traffic]
Line 55: Line 57:
*[https://data.seattle.gov/Public-Safety/Seattle-Police-Department-911-Incident-Response/3k2p-39jp SPD 911 incident respose]
*[https://data.seattle.gov/Public-Safety/Seattle-Police-Department-911-Incident-Response/3k2p-39jp SPD 911 incident respose]


;Videos
;Instructional videos
* https://data.seattle.gov/videos
* https://data.seattle.gov/videos
* https://www.youtube.com/watch?v=YlKzXTrTLOQ
* https://www.youtube.com/watch?v=YlKzXTrTLOQ

Revision as of 02:27, 9 May 2015

Socrata-square-color.png
SeattleGovLogoHome.png

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.

Goals

  • 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

Click here to download the Socrata scripts

If you are confused by these steps, go back and refresh your memory with the Day 0 setup and tutorial and Day 0 tutorial

(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

Example questions

Other example questions
  • 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?
  • How many shoplifting calls has SPD responded to this month so far?

Resources

Data.seattle.gov datasets with lat/long or street addresses
Instructional videos
Other Socrata sites