Skip to main content

Translates RML into SHACL

Project description

RML2SHACL

A tool to generate SHACL shapes from RML mapping files for RDF graphs validation.

Installation

  • From PyPi package
pip install rml2shacl
  • From source code:
python -m pip install poetry
poetry update
poetry build

Usage

General usage info:

usage: rml2shacl -i MAPPING_PATH [-o SHACL_PATH] [-logLevel LOGLEVEL] 

positional arguments:
  -i,--MAPPING_PATH <arg>           RML mapping path to be converted into SHACL shapes.

optional arguments:
  -o SHACL_PATH <arg>               SHACL output path 
  -h, --help                        show this help message and exit
  -l, --LOG_LEVEL <arg>             Logging level of this script. Possible values: INFO,DEBUG,WARN

To generate your shacl shapes:

python3 -m rml2shacl -i <path> [-o <path>]

Example:

python3 -m rml2shacl -i mapping.rml.ttl -o ./output/

The generated SHACL shapes will be located in ./output/mapping-shape.ttl

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

rml2shacl-1.0.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

rml2shacl-1.0.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file rml2shacl-1.0.0.tar.gz.

File metadata

  • Download URL: rml2shacl-1.0.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for rml2shacl-1.0.0.tar.gz
Algorithm Hash digest
SHA256 847a1f65bb9a53129198ba54f9e2fcc2db35e07787b88d373ba45d1b1c9d567f
MD5 13d39c105c53c2de406ead99a9362ca1
BLAKE2b-256 ad0e69028968f9bb35d34827b6e12b120d07a9c6c9503d4b0446279d0e62563c

See more details on using hashes here.

Provenance

The following attestation bundles were made for rml2shacl-1.0.0.tar.gz:

Publisher: publish.yml on dtai-kg/RML2SHACL

Attestations:

File details

Details for the file rml2shacl-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: rml2shacl-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for rml2shacl-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d1e1f25b1d30466a597ef88bb1410203c6adf2bcef46104251102f46af74651
MD5 441e6278bae4840d21c3fda04418ed26
BLAKE2b-256 7972c401eaabd1392ba52a4c7fda3bb28a801df26e89dbcb46cad37a0fc5f311

See more details on using hashes here.

Provenance

The following attestation bundles were made for rml2shacl-1.0.0-py3-none-any.whl:

Publisher: publish.yml on dtai-kg/RML2SHACL

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page