https://data.blog.gov.uk/2010/08/20/data-gov-uk-releases-open-source-code/

Data.gov.uk releases Open Source code

Update 14/9/12: Please note that this module has not been used since 2010. For more information about the more recent data.gov.uk architecture see: http://data.gov.uk/blog/integrating-ckan-and-drupal

As part of the government’s ongoing work around transparency, today we are releasing some of the custom software code we've developed – a CKAN module for Drupal. This is available for anyone to review, use, or modify. We're excited to see how developers and colleagues across the world put this work to good use in their own applications and projects. The code itself is attached to this blog post as a tar.gz file and contains one main package with two sub-packages within. This code release allows content to be synched from CKAN into Drupal. CKAN is the system we use as our “back end” to store information about all the data government has released. Drupal is a system to publish web content, and serves as our “front end” through which people can use to find our datasets and comment on them. The main CKANPackage code creates a Drupal custom content type to represent data in the same way as CKAN. The first sub-package is the CKANImporter which imports packages from CKAN into Drupal and allows this to take place as a one-off batch import or as an update to the latest changes since a specified time. The second sub-package is CKANDatagovuk which correlates fields in CKAN with Drupal hooks. The code release includes comments in the files to assist users with the functionality. You can of course contact us should you have any questions. Please see below to download the code, which we will also be releasing on Drupal.org shortly to allow the community to comment, review and improve it.

20 comments

  1. Anonymous

    What made you decide on importing the CKAN-data into Drupal rather than presenting it natively through the CKAN web-interface in parrallel to the Drupal site? Does the usage inside Drupal add functionality in addition to the web-interface CKAN provides? -- Geir Bækholt

    Link to this comment Reply
    • Anonymous

      Perfect timing for this local Gov project 🙂

      Link to this comment Reply
    • Anonymous

      I would imagine representing CKAN data inside Drupal would offer greater flexibility on how to present the information on the website and how that data is related to non-CKAN information.

      Link to this comment Reply
      • Anonymous

        CKAN provides such a nice REST API, secure or open editing and revisioning, you can see why that's what everyone's choosing.

        Link to this comment Reply
    • phil

      Hi Geir,

      Sorry not to respond to your post sooner.

      In order to create a joined-up user experience across the site functionality, we required a CMS to create a unified presentation layer for site.  Using this unified presentation layer allowed elements such as user comments, ratings etc. to be readily associated to CKAN data packages displayed on the site.  Drupal fulfilled a number of our selection criteria for the CMS, primarily in relation to its extensibility and the extent of it's community support.

      Thanks,

      Phil

      Link to this comment Reply
    • Anonymous

      through the CKAN web-interface in parrallel to the Drupal site?

      Link to this comment Reply
  2. Anonymous

    Do you have a plan to add the module on drupal.org? It would be great :).

    Link to this comment Reply
  3. Anonymous

    Sounds very good, are there plans to integrate with WordPress as well as Drupal?

    Thanks

    Peter Stevens

    Link to this comment Reply
  4. Anonymous

    I see that the developer has been approved for a CVS account, it would be great to see this posted on Drupal.org. It would be interesting to consider whether the module can be integrated with Feeds so that the updates can be managed through that system rather than through Drush.

    Link to this comment Reply
  5. Anonymous

    Also, I would like to help you update this for Drupal 7. If you can upload it to CVS, it will be easy for me to write patches.

    -Lin Clark

    Link to this comment Reply
  6. Anonymous

    Anybody here? Coming from Drupal community I strongly consider to release this CKAN module in drupal.org repository, it's way easier now thanks to a Git migration. If this is not possible (not GPL licence), please consider some other public repo such as Bitbucket or Github. Thanks!

    Link to this comment Reply
  7. Anonymous

    Hello! Does the usage inside Drupal add functionality in addition to the web-interface CKAN provides?

    Thanks

    Link to this comment Reply
  8. jacobarnold472

    Drupal is very impresive for me. I want to use drupal for my site. I have good page rank of my site. I just want to now if I convert my site on drupal than my page rank will be same or it will be effected by this action. Help me plzz

    Link to this comment Reply
  9. adam42

    Hi there

    I want to make a klick-and-test installation of your Drupal 7 profile to be found there >> https://github.com/datagovuk/dgu_d7 ... but when trying to install it, there is a dependency which can't be fulfilled because the module mediafield has been obsolete since Drupal 5.x (?)

    Am I missing out something ?

    And when just looking at your CKAN module (attached to this article) on it own I discover that it is for Drupal 6.x - has it been ported to Drupal 7 or is this the making ?

    Further more: Can I read the specs of your environments CKAN vs./aside Drupal ?

    Cheers

    Adam

    Link to this comment Reply

Leave a comment