Skip to content

A Python program that creates SHACL shapes from JSON Schema

License

Notifications You must be signed in to change notification settings

citiususc/jsonschema2shacl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

python3 -m jsonschema2shacl path_to_input_jsonschema.json

Execution as a library

If you want to include the module in your implementation:

import jsonschema2shacl
json_converter = JsonSchemaToShacl()
json_converter.translate(schema)

Authors