Skip to content

Commit e4e3267

Browse files
committed
feat: deprecate rdf4j, jena, solid modules; deprecate RDFSource and NonRDFSource
Mark the public types in these modules as deprecated for removal in 3.0.
1 parent 118253f commit e4e3267

36 files changed

Lines changed: 114 additions & 0 deletions

‎api/src/main/java/com/inrupt/client/NonRDFSource.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@
3030
* A base class for non-RDF-bearing resources.
3131
*
3232
* <p>This class can be used as a basis for object mapping with the high-level client operations.
33+
*
34+
* @deprecated This class will be removed in version 3.0.
3335
*/
36+
@Deprecated(since = "2.1.0", forRemoval = true)
3437
public class NonRDFSource implements Resource {
3538

3639
private final URI identifier;

‎api/src/main/java/com/inrupt/client/RDFSource.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@
4040
* A base class for RDF-based resource mapping.
4141
*
4242
* <p>This class can be used as a basis for object mapping with higher-level client applications.
43+
*
44+
* @deprecated This class will be removed in version 3.0.
4345
*/
46+
@Deprecated(since = "2.1.0", forRemoval = true)
4447
public class RDFSource extends WrapperDataset implements Resource {
4548

4649
/**

‎jena/src/main/java/com/inrupt/client/jena/JenaBodyHandlers.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@
3939

4040
/**
4141
* {@link Response.BodyHandler} implementations for use with Jena types.
42+
*
43+
* @deprecated This module will be removed in version 3.0.
4244
*/
45+
@Deprecated(since = "2.1.0", forRemoval = true)
4346
public final class JenaBodyHandlers {
4447

4548
private static final String CONTENT_TYPE = "Content-Type";

‎jena/src/main/java/com/inrupt/client/jena/JenaBodyPublishers.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@
3232

3333
/**
3434
* {@link Request.BodyPublisher} implementations for use with Jena types.
35+
*
36+
* @deprecated This module will be removed in version 3.0.
3537
*/
38+
@Deprecated(since = "2.1.0", forRemoval = true)
3639
public final class JenaBodyPublishers {
3740

3841
/**

‎jena/src/main/java/com/inrupt/client/jena/JenaService.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@
3838

3939
/**
4040
* An {@link RdfService} that uses the Jena library.
41+
*
42+
* @deprecated This module will be removed in version 3.0.
4143
*/
44+
@Deprecated(since = "2.1.0", forRemoval = true)
4245
public class JenaService implements RdfService {
4346

4447
private static final String UNSUPPORTED_SYNTAX = "Unsupported syntax: ";

‎jena/src/main/java/com/inrupt/client/jena/package-info.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,7 @@
8282
8383
System.out.println("HTTP status code: " + response.statusCode());
8484
* }</pre>
85+
*
86+
* <p><strong>Deprecated:</strong> This module will be removed in version 3.0.
8587
*/
8688
package com.inrupt.client.jena;

‎rdf4j/src/main/java/com/inrupt/client/rdf4j/RDF4JBodyHandlers.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@
3838

3939
/**
4040
* {@link Response.BodyHandler} implementations for use with RDF4J types.
41+
*
42+
* @deprecated This module will be removed in version 3.0.
4143
*/
44+
@Deprecated(since = "2.1.0", forRemoval = true)
4245
public final class RDF4JBodyHandlers {
4346

4447
/**

‎rdf4j/src/main/java/com/inrupt/client/rdf4j/RDF4JBodyPublishers.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@
3333

3434
/**
3535
* {@link Request.BodyPublisher} implementations for use with RDF4J types.
36+
*
37+
* @deprecated This module will be removed in version 3.0.
3638
*/
39+
@Deprecated(since = "2.1.0", forRemoval = true)
3740
public final class RDF4JBodyPublishers {
3841
/**
3942
* Serialize a RDF4J Model as an HTTP request body.

‎rdf4j/src/main/java/com/inrupt/client/rdf4j/RDF4JService.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@
4848

4949
/**
5050
* An {@link RdfService} that uses the RDF4J library.
51+
*
52+
* @deprecated This module will be removed in version 3.0.
5153
*/
54+
@Deprecated(since = "2.1.0", forRemoval = true)
5255
public class RDF4JService implements RdfService {
5356

5457
private static final Map<RDFSyntax, RDFFormat> SYNTAX_TO_FORMAT = buildSyntaxMapping();

‎rdf4j/src/main/java/com/inrupt/client/rdf4j/package-info.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,7 @@
8181
8282
System.out.println("HTTP status code: " + response.statusCode());
8383
* }</pre>
84+
*
85+
* <p><strong>Deprecated:</strong> This module will be removed in version 3.0.
8486
*/
8587
package com.inrupt.client.rdf4j;

0 commit comments

Comments
 (0)