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.
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 spec versions 3.0 and later.
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.
Less stable - it has just been updated to support the redesigned storage interfaces.