File tree Expand file tree Collapse file tree 1 file changed +16
-14
lines changed
src/spdx_tools/spdx3/writer/json_ld Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Original file line number Diff line number Diff line change 1- ### Workflow
1+ # Workflow
22
33Process to produce context file and a serialization example:
44
5- 1 . Run
6- ```
7- spec-parser --gen-md --gen-refs --gen-rdf ../spdx-3-model/model
8- ```
9- - spdx-3-model (commit: 6cb4316, last commit where spec-parser is able to run) <br >
10- - spec-parser (main with commits from PR 44, 45)
5+ 1 . Run
116
12- 2 . Convert the generated ` spec-parser/md_generated/model.ttl ` to a json-ld file using https://frogcat.github.io/ttl2jsonld/demo/ .
7+ ``` sh
8+ spec-parser --gen-md --gen-refs --gen-rdf ../spdx-3-model/model
9+ ```
10+
11+ - spdx-3-model (commit: 6cb4316, last commit where spec-parser is able to run)
12+ - spec-parser (main with commits from PR 44, 45)
13+
14+ 2. Convert the generated ` spec-parser/md_generated/model.ttl` to a json-ld file using < https://frogcat.github.io/ttl2jsonld/demo/> .
13153. Convert owl to context using ` convert_spdx_owl_to_jsonld_context(" SPDX_OWL.json" )` .
14164. Place the generated ` context.json` in ` spdx_tools/spdx3/writer/jsonld/` .
15175. To generate the jsonld from the testfile run
16- ```
17- pyspdxtools3 -i ./tests/spdx/data/SPDXJSONExample-v2.3.spdx.json -o example_with_context
18- ```
1918
19+ ` ` ` sh
20+ pyspdxtools3 -i ./tests/spdx/data/SPDXJSONExample-v2.3.spdx.json -o example_with_context
21+ ` ` `
2022
21- ### Manually
23+ # # Manually
2224
25+ # # Known limitations
2326
24- ### Known limitations
2527- Validation of enums does not work
2628- Additional keys seem to be ignored in validation
27- - inherited properties aren't validated
29+ - Inherited properties aren' t validated
You can’t perform that action at this time.
0 commit comments