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.6.tar.gz (38.9 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.6-py3-none-any.whl (40.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ckanext_fuseki-1.0.6.tar.gz
  • Upload date:
  • Size: 38.9 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.6.tar.gz
Algorithm Hash digest
SHA256 e48ce4213448d3a2cfac66e8344f5312f118cf3edba04f53b1ac4046f1dc2ee4
MD5 cd0fde20ca87d9b2c1a36d6d4b80a535
BLAKE2b-256 458759bd4453896ffb16f960f7af1821e638092f13c83199b1f3939ce14cd46e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: ckanext_fuseki-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 40.8 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d739e267c30d5d787a30ee5459bac72104177bfefbef473a8afcc0c347089cc1
MD5 28cd8b525a4f32b563a0b9de387ca7aa
BLAKE2b-256 e8cd5f879dcc3bc3b6a04d82f3db67e03415ba82f1b15e191ae3a4999e944268

See more details on using hashes here.

Provenance

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