|
1 | 1 | # Spdx-Java-Rdf-Store |
2 | 2 |
|
3 | | -This Java library implements an RDF store supported SPDX spec version 2.3 and earlier implementing the [SPDX Java Library Storage Interface](https://github.com/spdx/Spdx-Java-Library#storage-interface) using an underlying RDF store. |
| 3 | +This Java library implements an RDF store supported [SPDX spec version 2.3][spdx2.3] and earlier implementing the [SPDX Java Library Storage Interface][storage] using an underlying RDF store. |
4 | 4 |
|
5 | | -# Code quality badges |
| 5 | +[spdx2.3]: https://spdx.github.io/spdx-spec/v2.3/ |
| 6 | +[storage]: https://github.com/spdx/Spdx-Java-Library#storage-interface |
6 | 7 |
|
7 | | -| [](https://sonarcloud.io/dashboard?id=spdx-rdf-store) | [](https://sonarcloud.io/dashboard?id=spdx-rdf-store) | [](https://sonarcloud.io/dashboard?id=spdx-rdf-store) | [](https://sonarcloud.io/dashboard?id=spdx-rdf-store) | |
| 8 | +## Code quality badges |
8 | 9 |
|
9 | | -# Using the Library |
| 10 | +[](https://sonarcloud.io/dashboard?id=spdx-rdf-store) |
| 11 | +[](https://sonarcloud.io/dashboard?id=spdx-rdf-store) |
| 12 | +[](https://sonarcloud.io/dashboard?id=spdx-rdf-store) |
| 13 | +[](https://sonarcloud.io/dashboard?id=spdx-rdf-store) |
| 14 | + |
| 15 | +## Using the Library |
10 | 16 |
|
11 | 17 | This library is intended to be used in conjunction with the [SPDX Java Library](https://github.com/spdx/Spdx-Java-Library). |
12 | 18 |
|
13 | 19 | Simply create a new instance of `RdfStore(documentNamespace)` and reference it as your storage. The documentNamespace is the namespace used for the store. |
14 | 20 |
|
15 | | -Note that this version of the RDF library only supports a single document namespace and DOES NOT support spec versions 3.0 and later. |
| 21 | +Note that this version of the RDF library only supports a single document namespace and DOES NOT support [SPDX spec versions 3.0][spdx3.0] and later. |
| 22 | + |
| 23 | +[spdx3.0]: https://spdx.github.io/spdx-spec/v3.0/ |
16 | 24 |
|
17 | | -# Serializing and Deserializing RDF Formats |
| 25 | +## Serializing and Deserializing RDF Formats |
18 | 26 |
|
19 | | -This library supports the `ISerializableModelStore` interface for serializing and deserializing RDF files and data stores. |
| 27 | +This library supports the [`ISerializableModelStore`][ISerializableModelStore] interface for serializing and deserializing RDF files and data stores. |
20 | 28 |
|
21 | 29 | The format is specified by calling the `setOutputFormat(OutputFormat outputFormat)` method. |
22 | 30 |
|
23 | 31 | OutputFormat must be one of RDF/XML-ABBREV (default), RDF/XML, N-TRIPLET, or TURTLE. |
24 | 32 |
|
25 | 33 | A convenience method `public String loadModelFromFile(String fileNameOrUrl, boolean overwrite)` can be used to load the model from a file or URL. |
26 | 34 |
|
27 | | -# Development Status |
| 35 | +[ISerializableModelStore]: https://spdx.github.io/spdx-java-core/org/spdx/storage/ISerializableModelStore.html |
28 | 36 |
|
29 | | -Less stable - it has just been updated to support the redesigned storage interfaces. |
| 37 | +## Development Status |
30 | 38 |
|
| 39 | +Less stable - it has just been updated to support the redesigned storage interfaces. |
0 commit comments