Extension SPARQL Interface


Extension Basics

Title
SPARQL Interface
Name
ckanext-sparql
Type
Public extension
Description
SPARQL Interface for CKAN enabling queries to SPARQL endpoints directly from within CKAN instances.
CKAN versions
Download-Url (zip)
Last commit
10 years ago (2015-05-20 00:07:42)
Url to repo
Category
Data Management & Quality


Background Infos

Description (long)
Show details

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

  • Version: 1.01: Fix Bugs

Example

  • http://data.upf.edu/sparql
Version
1.01
Version release date
2013-11-10
Contact name
georgepm
Contakt email
(not set)
Contact Url
(not set)


Installation Guide

Configuration hints

Configure SPARQL endpoint URL and visibility of endpoint input field in ckan.ini.

Plugins to configure (ckan.ini)
sparql_interface
CKAN Settings (ckan.ini)
# ckanext.sparql.endpoint_url = http://dbpedia.org/sparql
# ckanext.sparql.hide_endpoint_url = false
DB migration to be executed
(not set)
<< back to Extensions