SPDX Java RDF Store
March 13, 2026 ยท View on GitHub
This Java library implements an RDF store supported SPDX spec version 2.3 and earlier implementing the SPDX Java Library Storage Interface using an underlying RDF store.
Code quality badges
Using the Library
This library is intended to be used in conjunction with the SPDX Java Library.
Simply create a new instance of RdfStore(documentNamespace) and reference it as your storage. The documentNamespace is the namespace used for the store.
Note that this version of the RDF library only supports a single document namespace and DOES NOT support SPDX spec versions 3.0 and later.
Serializing and Deserializing RDF Formats
This library supports the ISerializableModelStore interface for serializing and deserializing RDF files and data stores.
The format is specified by calling the setOutputFormat(OutputFormat outputFormat) method.
OutputFormat must be one of RDF/XML-ABBREV (default), RDF/XML, N-TRIPLET, or TURTLE.
A convenience method public String loadModelFromFile(String fileNameOrUrl, boolean overwrite) can be used to load the model from a file or URL.
API Documentation
- Released API documentation (as released on Maven Central)
- Development API documentation (updated with each GitHub change)
Development Status
Reasonably stable.