CKAN Sparql Interface Extension
Note: The ckanext-sparql extension was tested using Virtuoso sparql instances such as http://semantic.ckan.net/sparql.
- Version: 1.01
- Status: Development
- CKAN Version: >= 2.*
Description
This is a simple extension, but may be useful for someone that wants to include a Sparql Interface Editor in their CKAN instances. The idea is based on the Sparql Editor of the LODUM project from the University of Munsters Open Data initiative (http://data.uni-muenster.de/php/sparql/).
Requirements
The extension uses:
- CodeMirror for the code editor in the browser (http://codemirror.net/)
- May be extended to use SPARQLWrapper (http://sparql-wrapper.sourceforge.net/) library - SPARQL Endpoint interface to Python
Installation
$ cd /usr/lib/ckan/default/src
$ git clone https://github.com/georgepm/ckanext-sparql.git
$ cd ckanext-sparql/
$ sudo python setup.py develop
Add it in your configuration file:
ckan.plugins = sparql_interface ..... (other plugins...)
Reload Apache:
$ sudo service apache2 reload
USE
Go to: http://[Custom URL]/sparql
Queries work in: http://[Custom URL]/query?query=
To send code through http to the sparql interface: http://[Custom URL]/sparql?view_code=
CONFIGURATION
In your ckan.ini file set:
ckanext.sparql.endpoint_url = <your default endpoint url> (defaults to http://dbpedia.org/sparql)
ckanext.sparql.hide_endpoint_url = (true | false) (defaults to false)
Changelog
Example
- http://data.upf.edu/sparql