SPDX Java V3 JSON-LD Store
March 13, 2026 ยท View on GitHub
Stores SPDX documents in SPDX version 3 compatible JSON-LD format.
This library utilizes the SPDX Java Library Storage Interface extending the ExtendedSpdxStore which allows for utilizing any underlying store which implements the SPDX Java Library Storage Interface.
Code quality badges
Using the Library
This library is intended to be used in conjunction with the SPDX Java Library.
Create an instance of a store which implements the SPDX Java Library Storage Interface. For example, the InMemSpdxStore is a simple in-memory storage suitable for simple file serializations and deserializations.
Create an instance of JsonLDStore(IModelStore baseStore, boolean pretty) passing in the instance of a store created above along with the format. If true, pretty will produce more human-readable output including indents as well as license expressions rather than full model license details.
Serializing and Deserializing
This library supports the ISerializableModelStore interface for serializing and deserializing files.
API Documentation
- Released API documentation (as released on Maven Central)
- Development API documentation (updated with each GitHub change)
SPDX 3 JSON Documentation
- SPDX model and serializations (part of specification)
- SPDX document mapping to JSON-LD (implementation details)
Development Status
Reasonably stable.