Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Reads a Dublin Core Tabular Application Profile, with some extensions, and converts it to SHACL.

WARNING: beta version, use at own risk.

Installation and use

Always install in a virtual environment (venv).

pip install tap2shacl or install from github.

(venv) $ git clone https://github.com/philbarker/TAP2SHACL
(venv) $ cd TAP2SHACL
(venv) $ pip install -r requirements.txt
(venv) $ ./tap2shacl.py --help

usage: tap2shacl.py [-h] [-c «tap config file name»] [-ns «namespace csv file»] [-a «tap metadata csv file»] [-s «shapes csv file»] -v «tap csv file» [<output file>]

example: path/to/tap2shacl.py tap.csv shacl.ttl

positional arguments:
  <tap csv file>
  <output file> (optional)
options
  -h, --help            show this help message and exit
  -c <tap config file name>, --configFileName <tap config file name>
  -ns <namespace csv file>, --namespaceFileName <namespace csv file>
  -a <tap metadata csv file>, --aboutFileName <tap metadata csv file>
  -s <shapes csv file>, --shapesFileName <shapes csv file>
  -v, --version         show program's version number and exit

If no output file is specified the output is written to the terminal.

Contents

tap2shacl includes several modules that deal with reading and processing the application profile:

  • APClasses Provides python data classes for metadata application profiles, with methods to populate them.
  • TAP2AP uses dctap-python to read a DC TAP (Dublin Core Tabular Application Profile), and some other config files, and converts it to a python application profile (APClasses).
  • AP2SHACL exports the python application profile as SHACL.

Dependencies

Requires dctap 0.4.5(alpha) (github repo) which in turn introduces dependencies, notably ruamel.yaml 0.17.10.

Other dependencies are either from the python standard library (e.g. dataclasses, urllib, csv) or mature external packages (e.g. rdflib).

Metadata

Release files for tap2shacl 1.0.0b6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tap2shacl 1.0.0b6
File Size Uploaded
tap2shacl-1.0.0b6.tar.gz 21.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tap2shacl 1.0.0b6
File Interpreter ABI Platform
tap2shacl-1.0.0b6-py3-none-any.whl Python 3 none any Details

Total release size: 46.0 kB

Release files / tap2shacl-1.0.0b6.tar.gz

Download URL tap2shacl-1.0.0b6.tar.gz
Size 21.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d219c5afaab9e2702c6aab3b2dfd4024d70552c90208ed3e961d31325ec488cb
BLAKE2b-256 checksum
How to use checksums
bec124e2317b2b1abfc13890f39b2ee526091daf0c49d794c463ab7137574232
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / tap2shacl-1.0.0b6-py3-none-any.whl

Download URL tap2shacl-1.0.0b6-py3-none-any.whl
Size 24.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed38da57f8e27a05385c70d05d6cb7c32f8127b7438cac88f655ecb2e5929e81
BLAKE2b-256 checksum
How to use checksums
653243729eee42d025dccbac39b195039121e9dfe04f432c8629be8029d28449
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page