Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close

Tools for generating RDF from CKAN instances

See the Installation section below for installation instructions

Usage is driven by a configuration file that can be created with the command

$ paster make-config ckanrdf myconfig.ini

You can then edit myconfig.ini to suit your needs. Once configured RDF can be generated from a CKAN instance using any serialisation supported by RDFLib for any package in the remote catalogue.

For example,

$ paster ckanrdf -o - -d myconfig.ini wordnet

with an unmodified, default configuration should generate the triples for the wordnet package in N3 format.

Installation

We use pip for installation and recommend the use of virtualenv. Make sure pip and virtualenv are installed using your standard system installation tools or easy install

First download the source package, possibly from the mercurial repository:

$ hg clone http://bitbucket.org/ww/ckanrdf/

(optional) Create a virtualenv and activate it:

$ virtualenv /some/where/ckanrdf $ . /some/where/ckanrdf/bin/activate

Install the dependencies with pip

$ pip install -r pip-requirements.txt

Alternatively you can install with setuptools using

$ python setup.py install

However mind that if you are using setuptools you have to make sure to have RDFLib installed before ckanrdf will work as it is not mentioned in setuptools dependency list due to some issues with the development branch. Version 2.4.2 of RDFLib is fine.

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.