This is a CKAN extension that provides SPARQL querying capabilities for datasets hosted on Redlink using the data preview feature of CKAN.
The SPARQL interface is based on Squebi.
Install the extension as usual, in your activated virtualenv:
pip install -e "git+https://github.com/redlink-gmbh/ckanext-redlink.git#egg=ckanext-redlink"
If you want to jump straight away to the end result, just add the plugin to your CKAN configuration file:
ckan.plugins = redlink
Add add your Redlink application key to your CKAN configuration file:
[DEFAULT]
redlink.app.key = <your-redlink-application-key>
It is recommended though that you follow the individual steps as described in the next section.
Get the id of the dataset located in my.redlink.io / datasets / dataset page.
In CKAN, configure a dataset and add a resource.
In the resource settings, set the dataset id in the Redlink Dataset field and the default SPARQL query in the SPARQL.
If you’re unsure which SPARQL query to set, you can use this general all-purpose one:
SELECT * WHERE {
?subject ?property ?object
} LIMIT 10