Skip to main content

An extension for storing file with Apache Jena

Project description

Tests

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.

image

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:

  1. Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
  1. Use pip to install package
pip install ckanext-fuseki
  1. Add fuseki to the ckan.plugins setting in your CKAN    config file (by default the config file is located at    /etc/ckan/default/ckan.ini).

  2. 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

ckanext_fuseki-1.0.7.tar.gz (174.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ckanext_fuseki-1.0.7-py3-none-any.whl (51.4 kB view details)

Uploaded Python 3

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

Hashes for ckanext_fuseki-1.0.7.tar.gz
Algorithm Hash digest
SHA256 7ada3dcdc20c3205f4eed7b5fdeeca0408f2e924209702059c324cb3f82307aa
MD5 491de08f296eaac497ac06b472db12be
BLAKE2b-256 e87d5acb70412cb2ca67612d28c34a5c321b386eb4c49095aaec19f9d43c516c

See more details on using hashes here.

Provenance

The following attestation bundles were made for ckanext_fuseki-1.0.7.tar.gz:

Publisher: pypi.yml on Mat-O-Lab/ckanext-fuseki

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for ckanext_fuseki-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 3ab82dbcab43f74cda079dcb481ee60d9f30937cde052676b8ce268201ef914b
MD5 21bfcb6cec1e10fb2662a1fe545b6b6a
BLAKE2b-256 9bc0ffcfe171c37f34dc044b5b473fc1bb89f6434fc2e66119ff892c67361567

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page