JPEWdev / shacl2code

Convert SHACL model to code bindings
MIT License
2 stars 4 forks source link

Schema generation is using "@id" instead of "spdxId" #27

Closed goneall closed 2 months ago

goneall commented 2 months ago

This is based on generating using the latest spec-parser and model files.

See the files in issue #26 for the inputs and output for shacl2code.

I also noticed that the CI generated schema file also has the "@id"s: https://github.com/spdx/spdx-spec/blob/gh-pages/v3.0.1-draft/model/schema.json

goneall commented 2 months ago

For reference, below is a schema file I fixed-up to validate correctly:

schema-3.0.1-corrected.json.txt

goneall commented 2 months ago

This is solved by including the required annotation file: https://spdx.github.io/spdx-spec/v3.0.1-draft/model/jsonld-annotations.ttl