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
Comment by Anonymous posted on
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
Comment by Anonymous posted on
Perfect timing for this local Gov project 🙂
Comment by Anonymous posted on
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.
Comment by Anonymous posted on
CKAN provides such a nice REST API, secure or open editing and revisioning, you can see why that's what everyone's choosing.
Comment by phil posted on
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
Comment by Anonymous posted on
through the CKAN web-interface in parrallel to the Drupal site?
Comment by Anonymous posted on
Do you have a plan to add the module on drupal.org? It would be great :).
Comment by Anonymous posted on
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.
Comment by phil posted on
Hi,
More information about the code contributed to drupal.org can be found here:
http://drupal.org/node/892150
Many thanks,
Phil
Comment by Anonymous posted on
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?
Comment by Anonymous posted on
i fully support that request
Comment by Anonymous posted on
Module is now published on drupal.org http://www.drupal.org/project/ckan
Comment by Anonymous posted on
contributed to drupal.org can be found here:
Comment by Anonymous posted on
Sounds very good, are there plans to integrate with WordPress as well as Drupal?
Thanks
Peter Stevens
Comment by Anonymous posted on
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.
Comment by Anonymous posted on
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
Comment by Anonymous posted on
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!
Comment by Anonymous posted on
Hello! Does the usage inside Drupal add functionality in addition to the web-interface CKAN provides?
Thanks
Comment by jacobarnold472 posted on
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
Comment by adam42 posted on
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