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.5.tar.gz (34.2 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.5-py3-none-any.whl (34.9 kB view details)

Uploaded Python 3

File details

Details for the file ckanext_fuseki-1.0.5.tar.gz.

File metadata

  • Download URL: ckanext_fuseki-1.0.5.tar.gz
  • Upload date:
  • Size: 34.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ckanext_fuseki-1.0.5.tar.gz
Algorithm Hash digest
SHA256 f09a3c81e136c27630cbc88fa530aec4fd0a241320cb6273eac1b38bb5c91632
MD5 7c2f25225fc328db42fa9e09c52b3382
BLAKE2b-256 bc6f656a2543733b96255d49dd88c68f129df606cef8d247f739d6257d6c63d8

See more details on using hashes here.

Provenance

The following attestation bundles were made for ckanext_fuseki-1.0.5.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.5-py3-none-any.whl.

File metadata

  • Download URL: ckanext_fuseki-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 34.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ckanext_fuseki-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3647aae9cdfabc1bdd2970fcadd2f11e63369f21d213e834053c098a046b6de6
MD5 e7c0192a2c58a25c58117f8733182746
BLAKE2b-256 573bfcc4f3f617445e56c2a52b3e4e127f0f627c2b787fc516897d136db3da44

See more details on using hashes here.

Provenance

The following attestation bundles were made for ckanext_fuseki-1.0.5-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