Skip to main content

A Python library of common code and CLI apps shared across Kurrawong projects and infrastructure.

Project description

Kurra Python Library

A Python library of RDF data manipulation functions.

This library uses the RDFLib under-the-hood to process RDF data and supplies functions to:

  • upload it to RDF databases - "triplestores" - and query them
  • manipulate it in a few commands - e.g. format conversion

This toolkit provides a command line interface (CLI) for doing all of this as well as presenting its functions in a library that other Python applications can use.

Command Line Interface

kurra uses a Command Line Interface that can be inspected. Once you have installed kurra (see below), you can ask it to tell you want commands it supports with --help, e.g.:

kurra --help

which will return something like:

╭─ Options ───────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ --install-completion Install completion for the current shell. │ │ --show-completion Show completion for the current shell, to copy it or customize the installation. │ │ --help Show this message and exit. │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ──────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ list Get a list of Fuseki datasets │ │ create Create a new Fuseki dataset │ │ query Query a Fuseki database │ │ upload Upload files to a Fuseki dataset. │ │ format Format RDF files using one of several common RDF formats. │ │ version Show the version of the kurra app. │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

You can then run

kurra format --help

or

kurra create --help

etc. to get further help for the particular commands.

Installation

For use as a Python library, simple installation from PIP/Poetry:

pip install kurra
poetry add kurra

Then import it and use in your code, e.g. for the format functions:

from kurra.format import format_file, make_dataset, export_quads

Development

Install the Poetry project and its dependencies.

task install

Format code.

task code

License

BSD-3-Clause license. See LICENSE.

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

kurra-0.6.2.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

kurra-0.6.2-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file kurra-0.6.2.tar.gz.

File metadata

  • Download URL: kurra-0.6.2.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.13.1 Darwin/24.1.0

File hashes

Hashes for kurra-0.6.2.tar.gz
Algorithm Hash digest
SHA256 b3337994a0bb2ea8f4d7d19420f04fd96c9e6190f8d32277ef2d73e1274e6bb9
MD5 a0526b8f18506a845b4af445591bb098
BLAKE2b-256 68127c9f881d1ddbe83e0e593565d340c44622c302748a130069084e11c18658

See more details on using hashes here.

File details

Details for the file kurra-0.6.2-py3-none-any.whl.

File metadata

  • Download URL: kurra-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.13.1 Darwin/24.1.0

File hashes

Hashes for kurra-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7d17defd21005fa4c3779399c79a182badefd410dc43eb05bf31ff78ec3c372f
MD5 620fa09116cbfb270a609db62c99bcb1
BLAKE2b-256 fd39ca1422615a2edfa0db0aa85f1076a9c96c1c09e0079d0fff15a130b43b7e

See more details on using hashes here.

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