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