Skip to content

spdx/spdx-java-rdf-store

Repository files navigation

Spdx-Java-Rdf-Store

javadoc

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

Bugs Security Rating Maintainability Rating Technical Debt

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

Development Status

Reasonably stable.

About

SPDX Tools RDF Support Library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages