diff --git a/README.md b/README.md index 572a9afc..b27d331c 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,15 @@ The available language bindings can be viewed by running: shacl2code list ``` +### Generating the JSON Schema file + +`shacl2code` can generate a JSON schema with the following command: +```shell +shacl2code generate -i spdx-model.json-ld -u spdx-context.jsonld https://spdx.org/rdf/3.0.1/spdx-context.jsonld jsonschema -o json-schema-3.0.1.json +``` + +Note that the spdx-context.jsonld file should match the model described in the spdx-model.json-ld file. + ## Developing Developing on `shacl2code` is best done using a virtual environment. You can