https://github.com/citiususc/jsonschema2shacl
A Python library that creates SHACL shapes from JSON Schema
https://github.com/citiususc/jsonschema2shacl
jsonschema knowledge-graph python shacl
Last synced: 2 months ago
JSON representation
A Python library that creates SHACL shapes from JSON Schema
- Host: GitHub
- URL: https://github.com/citiususc/jsonschema2shacl
- Owner: citiususc
- License: apache-2.0
- Created: 2023-11-24T15:30:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-19T16:29:44.000Z (about 1 year ago)
- Last Synced: 2025-09-06T11:55:20.584Z (8 months ago)
- Topics: jsonschema, knowledge-graph, python, shacl
- Language: Python
- Homepage:
- Size: 92.8 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Citation: CITATION.cff
Awesome Lists containing this project
README
# JSONSchema2SHACL
The repository contains the source code for extracting and generating SHACL shapes from JSONSchema
## Installation:
```
pip install jsonschema2shacl
```
## Execution from CLI
To execute from command line run the following:
```bash
python3 -m jsonschema2shacl path_to_input_jsonschema.json
```
## Execution as a library
If you want to include the module in your implementation:
```python
import jsonschema2shacl
json_converter = JsonSchemaToShacl()
json_converter.translate(schema)
```
## Authors
- [David Chaves Fraga](mailto:david.chaves@usc.es)
- Óscar Suárez Montes