Skip to content

Commit e7a3424

Browse files
committed
Fix process.md
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
1 parent 907308c commit e7a3424

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed
Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
1-
### Workflow
1+
# Workflow
22

33
Process 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/>.
1315
3. Convert owl to context using `convert_spdx_owl_to_jsonld_context("SPDX_OWL.json")`.
1416
4. Place the generated `context.json` in `spdx_tools/spdx3/writer/jsonld/`.
1517
5. 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

0 commit comments

Comments
 (0)