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.

Comments

Rationale

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

 Flag as offensive 

rock

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

 Flag as offensive 

Rationale

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

 Flag as offensive 

I would imagine representing

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.

 Flag as offensive 

CKAN provides such a nice

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

 Flag as offensive 

Huzzah!

Perfect timing for this local Gov project :-)

 Flag as offensive 

Nice!

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

 Flag as offensive 

rock

contributed to drupal.org can be found here:

 Flag as offensive 

A drupal module not on d.o is not a drupal module

Please work with the community and her guidelines and ask for a cvs account and contribute the code on drupal.org

Opensource works with many eyeballs and drupal facilitates this to let all codes be hosted on d.o itself.

Please deploy and maintain the code there.

 Flag as offensive 

data.gov.uk code on drupal.org

Hi,

More information about the code contributed to drupal.org can be found here:

http://drupal.org/node/892150

Many thanks,

Phil

 Flag as offensive 

crown copyright

The project is at the moment not on Drupal.org because of the included Crown copyright. See http://drupal.org/node/892150#comment-3581694

Is it possible for the UK government to release this module without the Crown copyright to the open source Drupal community?

 Flag as offensive 

second

i fully support that request

 Flag as offensive 

module is published

Module is now published on drupal.org http://www.drupal.org/project/ckan

 Flag as offensive 

Sounds very good, are there

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

Thanks

Peter Stevens

 Flag as offensive 

I see that the developer has

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.

 Flag as offensive 

Also, I would like to help

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

 Flag as offensive 

Moving to drupal.org?

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!

 Flag as offensive 

Hello! Does the usage inside Drupal

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

Thanks

 Flag as offensive 

Wants to change cms

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

 Flag as offensive 

Your ckan module is for D 6.x

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

 Flag as offensive