Getting started
Requirements
Section titled “Requirements”- Python 3.10 or later
- uv for dependency management
Installation
Section titled “Installation”Clone the repository:
git clone https://github.com/skg-if/shacl-extractor.gitcd shacl-extractorInstall dependencies:
uv syncIf you want to run the integration tests against the SKG-IF ontology, clone with submodules instead:
git clone --recurse-submodules --remote-submodules https://github.com/skg-if/shacl-extractor.gitQuick start
Section titled “Quick start”Point the extractor at an ontology file and choose where to write the output:
uv run extractor my-ontology.owl shapes.ttlThe tool parses every owl:Class in the input whose dc:description contains property annotations, then writes a SHACL shapes graph in Turtle format.
For a full breakdown of what the annotations look like and how they map to SHACL, see Annotation syntax.