File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
src/spdx_tools/spdx3/writer/json_ld Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -5,16 +5,17 @@ Process to produce context file and a serialization example:
551 . Run
66
77 ``` sh
8- spec-parser --gen-md --gen-refs --gen-rdf ../ spdx-3-model/model
8+ python spec-parser/main.py spdx-3-model/model parser_output
99 ```
1010
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 )
11+ - spdx-3-model (main ; where v3.0.1 development happens )
12+ - spec-parser (main)
1313
14- 2. Convert the generated ` spec-parser/md_generated/model.ttl` to a json-ld file using < https://frogcat.github.io/ttl2jsonld/demo/> .
15- 3. Convert owl to context using ` convert_spdx_owl_to_jsonld_context(" SPDX_OWL.json" )` .
16- 4. Place the generated ` context.json` in ` spdx_tools/spdx3/writer/jsonld/` .
17- 5. To generate the jsonld from the testfile run
14+ 2. Convert the generated ` parser_output/rdf/spdx-model.ttl` to a JSON-LD file
15+ using < https://frogcat.github.io/ttl2jsonld/demo/> .
16+ 3. Convert OWL to context using ` owl_to_context.py` .
17+ 4. Place the generated ` context.json` in ` src/spdx_tools/spdx3/writer/json_ld/` .
18+ 5. To generate the JSON-LD from the test file, run:
1819
1920 ` ` ` sh
2021 pyspdxtools3 -i ./tests/spdx/data/SPDXJSONExample-v2.3.spdx.json -o example_with_context
You can’t perform that action at this time.
0 commit comments