www.raisedeyebrow.com

     @colincalnan
    @raisedeyebrow

colin@raisedeyebrow.com
Utilizing
Open Government
Data using Drupal
Utilizing
Open Government
Data using Drupal
…or, integrating CKAN and OGDI with Drupal
Colin Calnan
Colin Calnan
     • Computer Scientist
Colin Calnan
     • Computer Scientist
     • then Musician...
Colin Calnan
     • Computer Scientist
     • then Musician...
     • then Designer...
Colin Calnan
     • Computer Scientist
     • then Musician...
     • then Designer...
     • then Webmaster...
Colin Calnan
     • Computer Scientist
     • then Musician...
     • then Designer...
     • then Webmaster...
     • then Drupal
       Themer...
What’s the Story?
David Eaves
Open Government Activist
       eaves.ca
What’s the Idea?
Flags courtesy of dynamicgreens.com
Flags courtesy of dynamicgreens.com
data.gov




Flags courtesy of dynamicgreens.com
data.gov




Flags courtesy of dynamicgreens.com
data.gov


                   data.gov.uk




Flags courtesy of dynamicgreens.com
data.gov


                   data.gov.uk




Flags courtesy of dynamicgreens.com
data.gov


                   data.gov.uk



                                      data.?



Flags courtesy of dynamicgreens.com
Why Open Data?
How?
Rufus Pollock
Director of the Open Knowledge Foundation
                  okfn.org
Nik Garkusha
Microsoft Canada Openness Lab
           port25.ca
CKAN
Comprehensive Knowledge Archive Network
CKAN
Comprehensive Knowledge Archive Network



  • Cataloguing system for datasets
CKAN
Comprehensive Knowledge Archive Network



  • Cataloguing system for datasets
  • Open-Source, written in Python
CKAN
Comprehensive Knowledge Archive Network



  • Cataloguing system for datasets
  • Open-Source, written in Python
  • Full JSON-based API
CKAN
Comprehensive Knowledge Archive Network



  • Cataloguing system for datasets
  • Open-Source, written in Python
  • Full JSON-based API
  • http://ca.ckan.net
Drupal
Why use Drupal?




    Photo courtesy of ralphbijker on Flickr
Why use Drupal?

• Open Source




         Photo courtesy of ralphbijker on Flickr
Why use Drupal?

• Open Source
• Extensible Framework




         Photo courtesy of ralphbijker on Flickr
Why use Drupal?

• Open Source
• Extensible Framework
• Visual Presentation Layer




          Photo courtesy of ralphbijker on Flickr
Why use Drupal?

• Open Source
• Extensible Framework
• Visual Presentation Layer
• Really short timeline



           Photo courtesy of ralphbijker on Flickr
Sean Burlington
Drupal Developer on data.gov.uk
       practicalweb.co.uk
OGDI
Open Government Data Initiative
OGDI
Open Government Data Initiative

• Windows Azure platform
OGDI
Open Government Data Initiative

• Windows Azure platform
• Cloud based collection of software
  assets
OGDI
Open Government Data Initiative

• Windows Azure platform
• Cloud based collection of software
  assets
• Repository for Government Data
OGDI
Open Government Data Initiative

• Windows Azure platform
• Cloud based collection of software
  assets
• Repository for Government Data
• Imported via desktop application
OGDI
Open Government Data Initiative

• Windows Azure platform
• Cloud based collection of software
  assets
• Repository for Government Data
• Imported via desktop application
• OData/Atom/JSON API
So what’s the big deal?
So what’s the big deal?


  • Download and install Drupal
So what’s the big deal?


  • Download and install Drupal
  • Install 2 contrib modules (plus CCK)
How does it work?
     CKAN Module
How does it work?
             CKAN Module

• REST API
How does it work?
             CKAN Module

• REST API
• Create Nodes in Drupal from CKAN
  Packages
How does it work?
             CKAN Module

• REST API
• Create Nodes in Drupal from CKAN
  Packages
• Drupal caches everything
How does it work?
             CKAN Module

• REST API
• Create Nodes in Drupal from CKAN
  Packages
• Drupal caches everything
• Listings use pager query
How does it work?
             CKAN Module

• REST API
• Create Nodes in Drupal from CKAN
  Packages
• Drupal caches everything
• Listings use pager query
• Chart uses Google Charts
How does it work?
     OGDI Module
How does it work?
              OGDI Module


• CCK Field
How does it work?
              OGDI Module


• CCK Field
• Merges Entity Data with Table Data!
How does it work?
              OGDI Module


• CCK Field
• Merges Entity Data with Table Data!
• DataTables jQuery Plugin
 http://datatables.net
How does it work?
              OGDI Module


• CCK Field
• Merges Entity Data with Table Data!
• DataTables jQuery Plugin
 http://datatables.net

• Bing Maps
What can you do?
What can you do?
• Submit Conent
  Liberate a dataset at http://
  datadotgc.ca
What can you do?
• Submit Conent
  Liberate a dataset at http://
  datadotgc.ca
• Review the OGDI module on d.o
  http://drupal.org/node/863054
What can you do?
• Submit Conent
  Liberate a dataset at http://
  datadotgc.ca
• Review the OGDI module on d.o
  http://drupal.org/node/863054
• Contribute to the OGDI module
  http://ogdifield.codeplex.com/
What can you do?
• Submit Conent
  Liberate a dataset at http://
  datadotgc.ca
• Review the OGDI module on d.o
  http://drupal.org/node/863054
• Contribute to the OGDI module
  http://ogdifield.codeplex.com/
• Build your own data portal
Next Steps?
Next Steps?
• CKAN API v2
Next Steps?
• CKAN API v2
• OGDI API v2
Next Steps?
• CKAN API v2
• OGDI API v2
• Pluggable Mapping
Next Steps?
• CKAN API v2
• OGDI API v2
• Pluggable Mapping
• Proper pagination for OGDI
  integration
Next Steps?
• CKAN API v2
• OGDI API v2
• Pluggable Mapping
• Proper pagination for OGDI
  integration
• OGDI caching
Has it worked?
Other Drupal based Open Data
         initiatives
Other Drupal based Open Data
         initiatives
           Stumble Safely
               Development Seed
     http://outsideindc.com/stumblesafely
Other Drupal based Open Data
         initiatives
Other Drupal based Open Data
         initiatives
            Vantrash
        Luke Closs & Kevin Jones
           http://vantrash.ca
Other Drupal based Open Data
         initiatives




Open Data & Beautiful Maps - 14:05 - Room C300
Other Drupal based Open Data
         initiatives
                     Water!
           Tylor Sherman (Affinity Bridge)
           http://water.tylorsherman.com
            http://vimeo.com/6602291




Open Data & Beautiful Maps - 14:05 - Room C300
Key Players and
  thanks to..
Key Players and
      thanks to..
• Nik Garkusha
• Vlad
  Vinogradsky
• all the OGDI
  team at
  Microsoft
Key Players and
      thanks to..
                 • Rufus Pollock
• Nik Garkusha
                 • David Read
• Vlad
  Vinogradsky    • Friedrich Lindenberg
• all the OGDI   • Sean Burlington
  team at        • Jonathan Gray
  Microsoft
                 • all the CKAN/OKFN
                   team
Please keep in touch.
  www.raisedeyebrow.com

       @colincalnan
      @raisedeyebrow

  colin@raisedeyebrow.com

Utilizing Open Government Data Using Drupal