An extension for storing file with Apache Jena
Project description
ckanext-fuseki
Extension creates a new tab in the dataset view that enables you to upload selected resources to a connected jena fuseki triple store.
Requirements
Needs a running instance of jena fuseki, see for example docker-compose file in optional folder. Point at it through env variables. Also needed is an api-token for an account with the admin privileges to make the background job work on private datasets and resources.
- Apache Jena and Fuseki server need to be running.
- A sparklis web app for querying the dataset, see optional folder for a container deployment of jena fuseki and sparklis.
Purpose
ckanext-fuseki is an extension for enabling the semantic aspect of CKAN with Apache Jena.
This extension provides an ability to let users store a set of semantic resource (e.g. rdf, ttl, owl) in Apache Jena and perform SPARQL semantic queries.
Notes:
Compatibility with core CKAN versions:
| CKAN version | Compatible? |
|---|---|
| 2.9 and earlier | not tested |
| 2.10 | yes |
| 2.11 | yes |
Installation
To install the extension:
- Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
- Use pip to install package
pip install ckanext-fuseki
-
Add
fusekito theckan.pluginssetting in your CKAN config file (by default the config file is located at/etc/ckan/default/ckan.ini). -
Restart CKAN. For example, if you've deployed CKAN with Apache on Ubuntu:
sudo service apache2 reload
Config settings
FUSEKI_CKAN_TOKEN=${CKAN_API_TOKEN}
CKANINI__CKANEXT__FUSEKI__URL = http://<fuseki_host>:<fuseki_port>/
CKANINI__CKANEXT__FUSEKI__USERNAME = <admin_user>
CKANINI__CKANEXT__FUSEKI__PASSWORD = *****
or ckan.ini parameters.
ckan.jena.fuseki.url = http://<fuseki_host>:<fuseki_port>/
ckan.jena.fuseki.username = <admin_user>
ckan.jena.fuseki.password = *****
If no Api Token is given, only public resources can be uploaded to the triple store!
You can set the default formats to preselected for upload by setting the formats,
CKANINI__CKANEXT__FUSEKI__FORMATS = 'json turtle text/turtle n3 nt hext trig longturtle xml json-ld ld+json'
else it will react to the listed formats by default
if a sparklis web app is available, you can set
CKANINI__CKANEXT__FUSEKI__SPARKLIS__URL = http://<sparklis_host>:<sparklis_port>/
the query button will redirect to sparklis instead.
Acknowledgements
This project's work is based on a fork of the repo etri-odp/ckanext-jena, and we like to thank the authors of that project for sharing their work. It was supported by Institute for Information & communications Technology Promotion (IITP) grant funded by the Korea government (MSIT) (No.2017-00253, Development of an Advanced Open Data Distribution Platform based on International Standards)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ckanext_fuseki-1.0.7.tar.gz.
File metadata
- Download URL: ckanext_fuseki-1.0.7.tar.gz
- Upload date:
- Size: 174.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ada3dcdc20c3205f4eed7b5fdeeca0408f2e924209702059c324cb3f82307aa
|
|
| MD5 |
491de08f296eaac497ac06b472db12be
|
|
| BLAKE2b-256 |
e87d5acb70412cb2ca67612d28c34a5c321b386eb4c49095aaec19f9d43c516c
|
Provenance
The following attestation bundles were made for ckanext_fuseki-1.0.7.tar.gz:
Publisher:
pypi.yml on Mat-O-Lab/ckanext-fuseki
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ckanext_fuseki-1.0.7.tar.gz -
Subject digest:
7ada3dcdc20c3205f4eed7b5fdeeca0408f2e924209702059c324cb3f82307aa - Sigstore transparency entry: 954466859
- Sigstore integration time:
-
Permalink:
Mat-O-Lab/ckanext-fuseki@11dde6c57b9041a49d5ac8ad338801e6d236c280 -
Branch / Tag:
refs/tags/v1.0.7 - Owner: https://github.com/Mat-O-Lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@11dde6c57b9041a49d5ac8ad338801e6d236c280 -
Trigger Event:
release
-
Statement type:
File details
Details for the file ckanext_fuseki-1.0.7-py3-none-any.whl.
File metadata
- Download URL: ckanext_fuseki-1.0.7-py3-none-any.whl
- Upload date:
- Size: 51.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ab82dbcab43f74cda079dcb481ee60d9f30937cde052676b8ce268201ef914b
|
|
| MD5 |
21bfcb6cec1e10fb2662a1fe545b6b6a
|
|
| BLAKE2b-256 |
9bc0ffcfe171c37f34dc044b5b473fc1bb89f6434fc2e66119ff892c67361567
|
Provenance
The following attestation bundles were made for ckanext_fuseki-1.0.7-py3-none-any.whl:
Publisher:
pypi.yml on Mat-O-Lab/ckanext-fuseki
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ckanext_fuseki-1.0.7-py3-none-any.whl -
Subject digest:
3ab82dbcab43f74cda079dcb481ee60d9f30937cde052676b8ce268201ef914b - Sigstore transparency entry: 954466864
- Sigstore integration time:
-
Permalink:
Mat-O-Lab/ckanext-fuseki@11dde6c57b9041a49d5ac8ad338801e6d236c280 -
Branch / Tag:
refs/tags/v1.0.7 - Owner: https://github.com/Mat-O-Lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@11dde6c57b9041a49d5ac8ad338801e6d236c280 -
Trigger Event:
release
-
Statement type: