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.0b4.tar.gz (22.8 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.0b4-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tap2shacl-1.0.0b4.tar.gz
  • Upload date:
  • Size: 22.8 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.0b4.tar.gz
Algorithm Hash digest
SHA256 60c04661ea782f5a59e90ca81ce5633fba1d06122da0c6e0ae43581faa4a4384
MD5 d5399378281ba77105b2f2fc7c8f9a74
BLAKE2b-256 119f8d131c1342b96dbbdb2c63b1c4866df7de10a2d5a8f02f5435f8253b9748

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tap2shacl-1.0.0b4-py3-none-any.whl
  • Upload date:
  • Size: 23.3 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.0b4-py3-none-any.whl
Algorithm Hash digest
SHA256 54ca7952b8c8f36e1251ad3d4c544aa071d378bc6e0ac4a07472218a073b1e8f
MD5 f0e84efa548b757af77861a5168b267e
BLAKE2b-256 cb91d8b679b69b79e68ba6d204dc9d2c08a3c3eb3bf37809d2e3663ed0e12f56

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