The repository contains the source code for extracting and generating SHACL shapes from JSONSchema
pip install jsonschema2shacl
To execute from command line run the following:
python3 -m jsonschema2shacl path_to_input_jsonschema.json
If you want to include the module in your implementation:
import jsonschema2shacl
json_converter = JsonSchemaToShacl()
json_converter.translate(schema)
- David Chaves Fraga
- Óscar Suárez Montes