Skip to main content

DC TAP to SHACL converter.

Project description

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»] «tap csv file»

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

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

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

tap2shacl-1.0.0b5.tar.gz (23.0 kB view details)

Uploaded Source

Built Distribution

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

tap2shacl-1.0.0b5-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

File details

Details for the file tap2shacl-1.0.0b5.tar.gz.

File metadata

  • Download URL: tap2shacl-1.0.0b5.tar.gz
  • Upload date:
  • Size: 23.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for tap2shacl-1.0.0b5.tar.gz
Algorithm Hash digest
SHA256 132637fd7e09d11df549057036f74999d85471dc83cc3758903cd8a4716b19d5
MD5 566bef96f675819f667857929901aefb
BLAKE2b-256 e0825196882b43145486d61fcec31f9f8f695f7c9808b5739b1ec7d201ba8dd6

See more details on using hashes here.

File details

Details for the file tap2shacl-1.0.0b5-py3-none-any.whl.

File metadata

  • Download URL: tap2shacl-1.0.0b5-py3-none-any.whl
  • Upload date:
  • Size: 23.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for tap2shacl-1.0.0b5-py3-none-any.whl
Algorithm Hash digest
SHA256 bbb557b4f70e4f20d7a7e036cf16232909716d4e77d29571009b25075e980bda
MD5 4c2fe730a4cdaec01de491224efa116c
BLAKE2b-256 b76f44cc43d288cf018fc75ea2a4e620110a38e6b9e453c7c8d21932cc66751d

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