Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instructions in README to convert to SPDX 3. #171

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ The following converter tools support spdx format:
* JSON
* XML
* YAML
* JSON-LD (SPDX spec version 3.0)
* JSON-LD (SPDX spec version 3.0.1)

Example to convert a SPDX file from tag to rdf format:

Expand All @@ -55,6 +55,13 @@ The file formats can optionally be provided as the 3rd and 4th parameter for the

java -jar tools-java-2.0.0-Alpha-jar-with-dependencies.jar Convert ../testResources/SPDXTagExample-v2.2.spdx TagToRDF.ttl TAG RDFTTL excludeLicenseDetails

To convert from SPDX 2 to SPDX 3.0.1:
* use the file extension `.jsonld.json` or `.jsonld`;
* or add the options for the from and to file types:
```
java -jar tools-java-2.0.0-Alpha-jar-with-dependencies.jar Convert hello.spdx hello.spdx.json TAG JSONLD
```

## Compare utilities
The following tools can be used to compare one or more SPDX documents:

Expand Down
Loading