Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Civic Hacking
       Luigi Montanez
luigi@sunlightfoundation.com
Question? @LuigiMontanez
Open Source + Open Data
           =
  Better Government


                Question? @LuigiMontanez
High Quality Raw Data




               Question? @LuigiMontanez
High Quality Raw Data
✴   First: Raw data in JSON, XML, or CSV




                                 Question? @LuigiMontan...
High Quality Raw Data
✴   First: Raw data in JSON, XML, or CSV
✴   Second: RESTful APIs in JSON or XML




               ...
High Quality Raw Data
✴   First: Raw data in JSON, XML, or CSV
✴   Second: RESTful APIs in JSON or XML
✴   Third: Nothing ...
How We Use MongoDB




             Question? @LuigiMontanez
How We Use MongoDB
✴   RESTful JSON APIs




                        Question? @LuigiMontanez
How We Use MongoDB
✴   RESTful JSON APIs
✴   Results from Scraping




                            Question? @LuigiMontanez
Drumbone
{legislator: {
   in_office: true,
   title: "Rep",
   nickname: "",
   district: "9",
   bioguide_id: "L000551",
   govtr...
?sections=last_name,first_name,state,earmarks


{legislator: {
   last_name: "Lee",
   state: "CA",
   first_name: "Barbara"...
?sections=last_name,first_name,state,earmarks.total_amount,earmarks.total_number




    {legislator: {
       last_name: "...
50 State
 Project
Thanks!
sunlightlabs.com
@LuigiMontanez



               Question? @LuigiMontanez
Civic Hacking @ MongoNYC
Civic Hacking @ MongoNYC
Civic Hacking @ MongoNYC
Civic Hacking @ MongoNYC
Civic Hacking @ MongoNYC
Civic Hacking @ MongoNYC
Civic Hacking @ MongoNYC
Civic Hacking @ MongoNYC
Civic Hacking @ MongoNYC
Civic Hacking @ MongoNYC
Upcoming SlideShare
Loading in …5
×

Civic Hacking @ MongoNYC

2,567 views

Published on

A little bit about Sunlight Labs and how we use MongoDB.

Published in: Technology, News & Politics
  • Hi there! Get Your Professional Job-Winning Resume Here - Check our website! http://bit.ly/resumpro
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Civic Hacking @ MongoNYC

  1. 1. Civic Hacking Luigi Montanez luigi@sunlightfoundation.com
  2. 2. Question? @LuigiMontanez
  3. 3. Open Source + Open Data = Better Government Question? @LuigiMontanez
  4. 4. High Quality Raw Data Question? @LuigiMontanez
  5. 5. High Quality Raw Data ✴ First: Raw data in JSON, XML, or CSV Question? @LuigiMontanez
  6. 6. High Quality Raw Data ✴ First: Raw data in JSON, XML, or CSV ✴ Second: RESTful APIs in JSON or XML Question? @LuigiMontanez
  7. 7. High Quality Raw Data ✴ First: Raw data in JSON, XML, or CSV ✴ Second: RESTful APIs in JSON or XML ✴ Third: Nothing really... Question? @LuigiMontanez
  8. 8. How We Use MongoDB Question? @LuigiMontanez
  9. 9. How We Use MongoDB ✴ RESTful JSON APIs Question? @LuigiMontanez
  10. 10. How We Use MongoDB ✴ RESTful JSON APIs ✴ Results from Scraping Question? @LuigiMontanez
  11. 11. Drumbone
  12. 12. {legislator: { in_office: true, title: "Rep", nickname: "", district: "9", bioguide_id: "L000551", govtrack_id: "400237", phone: "202-225-2661", website: "http://lee.house.gov/index.html", twitter_id: "", last_name: "Lee", name_suffix: "", last_updated: "2010/04/13 00:00:14 +0000", party: "D", chamber: "house", state: "CA", youtube_url: "http://www.youtube.com/RepLee", first_name: "Barbara", gender: "F", congress_office: "2444 Rayburn House Office Building", earmarks: { average_number: 20, total_amount: 10000000, average_amount: 22994535, total_number: 28, last_updated: "2010-03-18", fiscal_year: 2010, } ... }
  13. 13. ?sections=last_name,first_name,state,earmarks {legislator: { last_name: "Lee", state: "CA", first_name: "Barbara", earmarks: { average_number: 20, total_amount: 10000000, average_amount: 22994535, total_number: 28, last_updated: "2010-03-18", fiscal_year: 2010, } }
  14. 14. ?sections=last_name,first_name,state,earmarks.total_amount,earmarks.total_number {legislator: { last_name: "Lee", state: "CA", first_name: "Barbara", earmarks: { total_amount: 10000000, total_number: 28 } }
  15. 15. 50 State Project
  16. 16. Thanks! sunlightlabs.com @LuigiMontanez Question? @LuigiMontanez

×