You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/03/27 15:02:34 UTC
[commons-rdf] branch master updated: Fix build by fixing Javadoc on Java 17.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rdf.git
The following commit(s) were added to refs/heads/master by this push:
new 9aa5d22 Fix build by fixing Javadoc on Java 17.
9aa5d22 is described below
commit 9aa5d2254948a9c0167d00985fc1c07b79b3d867
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Mar 27 08:02:31 2022 -0700
Fix build by fixing Javadoc on Java 17.
Javadoc TODOs placeholder left behind.
---
.../java/org/apache/commons/rdf/api/Graph.java | 23 +++++-
.../org/apache/commons/rdf/api/RDFTermFactory.java | 34 +++++++++
.../commons/rdf/simple/DatasetGraphView.java | 9 +++
.../java/org/apache/commons/rdf/simple/Types.java | 82 +++++++++++-----------
.../rdf/simple/experimental/AbstractRDFParser.java | 7 ++
.../rdf/simple/experimental/RDFParseException.java | 27 +++++++
pom.xml | 2 +-
7 files changed, 139 insertions(+), 45 deletions(-)
diff --git a/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/Graph.java b/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/Graph.java
index cc10d63..9d3e674 100644
--- a/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/Graph.java
+++ b/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/Graph.java
@@ -83,12 +83,15 @@ public interface Graph extends AutoCloseable, GraphLike<Triple> {
* <p>
* For example, this would close any open file and network streams and free
* database locks held by the Graph implementation.
+ * </p>
* <p>
* The behavior of the other Graph methods are undefined after closing the
* graph.
+ * </p>
* <p>
* Implementations might not need {@link #close()}, hence the default
* implementation does nothing.
+ * </p>
*/
@Override
default void close() throws Exception {
@@ -126,6 +129,7 @@ public interface Graph extends AutoCloseable, GraphLike<Triple> {
* <p>
* The count of a set does not include duplicates, consistent with the
* {@link Triple#equals(Object)} equals method for each {@link Triple}.
+ * </p>
*
* @return The number of triples in the graph
*/
@@ -137,13 +141,16 @@ public interface Graph extends AutoCloseable, GraphLike<Triple> {
* <p>
* The iteration does not contain any duplicate triples, as determined by
* the {@link Triple#equals(Object)} method for each {@link Triple}.
+ * </p>
* <p>
* The behavior of the {@link Stream} is not specified if
* {@link #add(Triple)}, {@link #remove(Triple)} or {@link #clear()} are
* called on the {@link Graph} before it terminates.
+ * </p>
* <p>
* Implementations may throw {@link ConcurrentModificationException} from
* Stream methods if they detect a conflict while the Stream is active.
+ * </p>
*
* @since 0.3.0-incubating
* @return A {@link Stream} over all of the triples in the graph
@@ -156,14 +163,16 @@ public interface Graph extends AutoCloseable, GraphLike<Triple> {
* <p>
* The iteration does not contain any duplicate triples, as determined by
* the {@link Triple#equals(Object)} method for each {@link Triple}.
+ * </p>
* <p>
* The behavior of the {@link Stream} is not specified if
* {@link #add(Triple)}, {@link #remove(Triple)} or {@link #clear()} are
* called on the {@link Graph} before it terminates.
+ * </p>
* <p>
* Implementations may throw {@link ConcurrentModificationException} from
* Stream methods if they detect a conflict while the Stream is active.
- * <p>
+ * </p>
*
* @since 0.3.0-incubating
* @param subject
@@ -217,17 +226,19 @@ public interface Graph extends AutoCloseable, GraphLike<Triple> {
* Gets an Iterable for iterating over all triples in the graph.
* <p>
* This method is meant to be used with a Java for-each loop, e.g.:
- *
+ * </p>
* <pre>
* for (Triple t : graph.iterate()) {
* System.out.println(t);
* }
* </pre>
*
+ * <p>
* The behavior of the iterator is not specified if {@link #add(Triple)},
* {@link #remove(Triple)} or {@link #clear()}, are called on the
* {@link Graph} before it terminates. It is undefined if the returned
* {@link Iterator} supports the {@link Iterator#remove()} method.
+ * </p>
* <p>
* Implementations may throw {@link ConcurrentModificationException} from
* Iterator methods if they detect a concurrency conflict while the Iterator
@@ -236,9 +247,11 @@ public interface Graph extends AutoCloseable, GraphLike<Triple> {
* The {@link Iterable#iterator()} must only be called once, that is the
* Iterable must only be iterated over once. A {@link IllegalStateException}
* may be thrown on attempt to reuse the Iterable.
+ * </p>
* <p>
* The default implementation of this method will call {@link #stream()} to return
* its {@link Stream#iterator()}.
+ * </p>
*
* @return A {@link Iterable} that returns {@link Iterator} over all of the
* triples in the graph
@@ -259,7 +272,7 @@ public interface Graph extends AutoCloseable, GraphLike<Triple> {
* the pattern.
* <p>
* This method is meant to be used with a Java for-each loop, e.g.:
- *
+ * </p>
* <pre>
* IRI alice = factory.createIRI("http://example.com/alice");
* IRI knows = factory.createIRI("http://xmlns.com/foaf/0.1/");
@@ -272,18 +285,22 @@ public interface Graph extends AutoCloseable, GraphLike<Triple> {
* {@link #remove(Triple)} or {@link #clear()}, are called on the
* {@link Graph} before it terminates. It is undefined if the returned
* {@link Iterator} supports the {@link Iterator#remove()} method.
+ * </p>
* <p>
* Implementations may throw {@link ConcurrentModificationException} from
* Iterator methods if they detect a concurrency conflict while the Iterator
* is active.
+ * </p>
* <p>
* The {@link Iterable#iterator()} must only be called once, that is the
* Iterable must only be iterated over once. A {@link IllegalStateException}
* may be thrown on attempt to reuse the Iterable.
+ * </p>
* <p>
* The default implementation of this method will call
* {@link #stream(BlankNodeOrIRI, IRI, RDFTerm)} to return its
* {@link Stream#iterator()}.
+ * </p>
*
* @param subject
* The triple subject (null is a wildcard)
diff --git a/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/RDFTermFactory.java b/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/RDFTermFactory.java
index ebefeba..f4c8577 100644
--- a/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/RDFTermFactory.java
+++ b/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/RDFTermFactory.java
@@ -28,36 +28,70 @@ package org.apache.commons.rdf.api;
@Deprecated
public interface RDFTermFactory {
+ /**
+ * @return By default, throws UnsupportedOperationException
+ */
default BlankNode createBlankNode() throws UnsupportedOperationException {
throw new UnsupportedOperationException("createBlankNode() not supported");
}
+ /**
+ * @param name TODO
+ * @return By default, throws UnsupportedOperationException
+ */
default BlankNode createBlankNode(final String name) throws UnsupportedOperationException {
throw new UnsupportedOperationException("createBlankNode(String) not supported");
}
+ /**
+ * @return By default, throws UnsupportedOperationException
+ */
default Graph createGraph() throws UnsupportedOperationException {
throw new UnsupportedOperationException("createGraph() not supported");
}
+ /**
+ * @param iri TODO
+ * @return TODO
+ */
default IRI createIRI(final String iri) throws IllegalArgumentException, UnsupportedOperationException {
throw new UnsupportedOperationException("createIRI(String) not supported");
}
+ /**
+ * @param lexicalForm TODO
+ * @return TODO
+ */
default Literal createLiteral(final String lexicalForm) throws IllegalArgumentException, UnsupportedOperationException {
throw new UnsupportedOperationException("createLiteral(String) not supported");
}
+ /**
+ * @param lexicalForm TODO
+ * @param dataType TODO
+ * @return TODO
+ */
default Literal createLiteral(final String lexicalForm, final IRI dataType)
throws IllegalArgumentException, UnsupportedOperationException {
throw new UnsupportedOperationException("createLiteral(String) not supported");
}
+ /**
+ * @param lexicalForm TODO
+ * @param languageTag TODO
+ * @return TODO
+ */
default Literal createLiteral(final String lexicalForm, final String languageTag)
throws IllegalArgumentException, UnsupportedOperationException {
throw new UnsupportedOperationException("createLiteral(String,String) not supported");
}
+ /**
+ * @param subject TODO
+ * @param predicate TODO
+ * @param object TODO
+ * @return TODO
+ */
default Triple createTriple(final BlankNodeOrIRI subject, final IRI predicate, final RDFTerm object)
throws IllegalArgumentException, UnsupportedOperationException {
throw new UnsupportedOperationException("createTriple(BlankNodeOrIRI,IRI,RDFTerm) not supported");
diff --git a/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/DatasetGraphView.java b/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/DatasetGraphView.java
index d56b01d..e4f860c 100644
--- a/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/DatasetGraphView.java
+++ b/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/DatasetGraphView.java
@@ -56,12 +56,21 @@ public class DatasetGraphView implements Graph {
private final BlankNodeOrIRI namedGraph;
private final Dataset dataset;
+ /**
+ * Constructs a new instance.
+ * @param dataset TODO
+ */
public DatasetGraphView(final Dataset dataset) {
this.dataset = dataset;
this.namedGraph = null;
this.unionGraph = true;
}
+ /**
+ * Constructs a new instance.
+ * @param dataset TODO
+ * @param namedGraph TODO
+ */
public DatasetGraphView(final Dataset dataset, final BlankNodeOrIRI namedGraph) {
this.dataset = dataset;
this.namedGraph = namedGraph;
diff --git a/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/Types.java b/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/Types.java
index 308de71..650c2e1 100644
--- a/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/Types.java
+++ b/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/Types.java
@@ -30,17 +30,17 @@ import java.util.Set;
public final class Types implements IRI, SimpleRDF.SimpleRDFTerm {
/**
- * <tt>http://www.w3.org/1999/02/22-rdf-syntax-ns#HTML</tt>
+ * {@code http://www.w3.org/1999/02/22-rdf-syntax-ns#HTML}
*/
public static final Types RDF_HTML = new Types("http://www.w3.org/1999/02/22-rdf-syntax-ns#HTML");
/**
- * <tt>http://www.w3.org/1999/02/22-rdf-syntax-ns#langString</tt>
+ * {@code http://www.w3.org/1999/02/22-rdf-syntax-ns#langString}
*/
public static final Types RDF_LANGSTRING = new Types("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString");
/**
- * <tt>http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral</tt>
+ * {@code http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral}
*
* @deprecated Not used in RDF-1.1
*/
@@ -48,192 +48,192 @@ public final class Types implements IRI, SimpleRDF.SimpleRDFTerm {
public static final Types RDF_PLAINLITERAL = new Types("http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral");
/**
- * <tt>http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral</tt>
+ * {@code http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral}
*/
public static final Types RDF_XMLLITERAL = new Types("http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#anyURI</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#anyURI}
*/
public static final Types XSD_ANYURI = new Types("http://www.w3.org/2001/XMLSchema#anyURI");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#base64Binary</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#base64Binary}
*/
public static final Types XSD_BASE64BINARY = new Types("http://www.w3.org/2001/XMLSchema#base64Binary");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#boolean</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#boolean}
*/
public static final Types XSD_BOOLEAN = new Types("http://www.w3.org/2001/XMLSchema#boolean");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#byte</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#byte}
*/
public static final Types XSD_BYTE = new Types("http://www.w3.org/2001/XMLSchema#byte");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#date</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#date}
*/
public static final Types XSD_DATE = new Types("http://www.w3.org/2001/XMLSchema#date");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#dateTime</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#dateTime}
*/
public static final Types XSD_DATETIME = new Types("http://www.w3.org/2001/XMLSchema#dateTime");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#dayTimeDuration</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#dayTimeDuration}
*/
public static final Types XSD_DAYTIMEDURATION = new Types("http://www.w3.org/2001/XMLSchema#dayTimeDuration");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#decimal</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#decimal}
*/
public static final Types XSD_DECIMAL = new Types("http://www.w3.org/2001/XMLSchema#decimal");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#double</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#double}
*/
public static final Types XSD_DOUBLE = new Types("http://www.w3.org/2001/XMLSchema#double");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#duration</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#duration}
*/
public static final Types XSD_DURATION = new Types("http://www.w3.org/2001/XMLSchema#duration");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#float</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#float}
*/
public static final Types XSD_FLOAT = new Types("http://www.w3.org/2001/XMLSchema#float");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#gDay</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#gDay}
*/
public static final Types XSD_GDAY = new Types("http://www.w3.org/2001/XMLSchema#gDay");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#gMonth</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#gMonth}
*/
public static final Types XSD_GMONTH = new Types("http://www.w3.org/2001/XMLSchema#gMonth");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#gMonthDay</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#gMonthDay}
*/
public static final Types XSD_GMONTHDAY = new Types("http://www.w3.org/2001/XMLSchema#gMonthDay");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#gYear</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#gYear}
*/
public static final Types XSD_GYEAR = new Types("http://www.w3.org/2001/XMLSchema#gYear");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#gYearMonth</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#gYearMonth}
*/
public static final Types XSD_GYEARMONTH = new Types("http://www.w3.org/2001/XMLSchema#gYearMonth");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#hexBinary</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#hexBinary}
*/
public static final Types XSD_HEXBINARY = new Types("http://www.w3.org/2001/XMLSchema#hexBinary");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#int</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#int}
*/
public static final Types XSD_INT = new Types("http://www.w3.org/2001/XMLSchema#int");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#integer</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#integer}
*/
public static final Types XSD_INTEGER = new Types("http://www.w3.org/2001/XMLSchema#integer");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#language</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#language}
*/
public static final Types XSD_LANGUAGE = new Types("http://www.w3.org/2001/XMLSchema#language");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#long</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#long}
*/
public static final Types XSD_LONG = new Types("http://www.w3.org/2001/XMLSchema#long");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#Name</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#Name}
*/
public static final Types XSD_NAME = new Types("http://www.w3.org/2001/XMLSchema#Name");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#NCName</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#NCName}
*/
public static final Types XSD_NCNAME = new Types("http://www.w3.org/2001/XMLSchema#NCName");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#negativeInteger</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#negativeInteger}
*/
public static final Types XSD_NEGATIVEINTEGER = new Types("http://www.w3.org/2001/XMLSchema#negativeInteger");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#NMTOKEN</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#NMTOKEN}
*/
public static final Types XSD_NMTOKEN = new Types("http://www.w3.org/2001/XMLSchema#NMTOKEN");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#nonNegativeInteger</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#nonNegativeInteger}
*/
public static final Types XSD_NONNEGATIVEINTEGER = new Types("http://www.w3.org/2001/XMLSchema#nonNegativeInteger");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#nonPositiveInteger</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#nonPositiveInteger}
*/
public static final Types XSD_NONPOSITIVEINTEGER = new Types("http://www.w3.org/2001/XMLSchema#nonPositiveInteger");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#normalizedString</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#normalizedString}
*/
public static final Types XSD_NORMALIZEDSTRING = new Types("http://www.w3.org/2001/XMLSchema#normalizedString");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#positiveInteger</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#positiveInteger}
*/
public static final Types XSD_POSITIVEINTEGER = new Types("http://www.w3.org/2001/XMLSchema#positiveInteger");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#short</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#short}
*/
public static final Types XSD_SHORT = new Types("http://www.w3.org/2001/XMLSchema#short");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#string</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#string}
*/
public static final Types XSD_STRING = new Types("http://www.w3.org/2001/XMLSchema#string");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#time</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#time}
*/
public static final Types XSD_TIME = new Types("http://www.w3.org/2001/XMLSchema#time");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#token</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#token}
*/
public static final Types XSD_TOKEN = new Types("http://www.w3.org/2001/XMLSchema#token");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#unsignedByte</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#unsignedByte}
*/
public static final Types XSD_UNSIGNEDBYTE = new Types("http://www.w3.org/2001/XMLSchema#unsignedByte");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#unsignedInt</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#unsignedInt}
*/
public static final Types XSD_UNSIGNEDINT = new Types("http://www.w3.org/2001/XMLSchema#unsignedInt");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#unsignedLong</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#unsignedLong}
*/
public static final Types XSD_UNSIGNEDLONG = new Types("http://www.w3.org/2001/XMLSchema#unsignedLong");
/**
- * <tt>http://www.w3.org/2001/XMLSchema#unsignedShort</tt>
+ * {@code http://www.w3.org/2001/XMLSchema#unsignedShort}
*/
public static final Types XSD_UNSIGNEDSHORT = new Types("http://www.w3.org/2001/XMLSchema#unsignedShort");
diff --git a/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.java b/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.java
index d802852..a066330 100644
--- a/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.java
+++ b/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.java
@@ -58,6 +58,9 @@ import org.apache.commons.rdf.simple.SimpleRDF;
*/
public abstract class AbstractRDFParser<T extends AbstractRDFParser<T>> implements RDFParser, Cloneable {
+ /**
+ * Commons RDF thread group.
+ */
public static final ThreadGroup threadGroup = new ThreadGroup("Commons RDF parsers");
private static final ExecutorService threadpool = Executors.newCachedThreadPool(r -> new Thread(threadGroup, r));
@@ -224,6 +227,10 @@ public abstract class AbstractRDFParser<T extends AbstractRDFParser<T>> implemen
}
}
+ /**
+ * Returns this.
+ * @return this.
+ */
@SuppressWarnings("unchecked")
protected T asT() {
return (T) this;
diff --git a/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/experimental/RDFParseException.java b/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/experimental/RDFParseException.java
index 124c288..881717c 100644
--- a/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/experimental/RDFParseException.java
+++ b/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/experimental/RDFParseException.java
@@ -20,29 +20,56 @@ package org.apache.commons.rdf.simple.experimental;
import org.apache.commons.rdf.experimental.RDFParser;
+/**
+ * A form of Exception for Apache Commons RDF.
+ */
public class RDFParseException extends Exception {
private static final long serialVersionUID = 5427752643780702976L;
private final RDFParser builder;
+ /**
+ * Constructs a new instance.
+ * @param builder TODO
+ */
public RDFParseException(final RDFParser builder) {
this.builder = builder;
}
+ /**
+ * Constructs a new instance.
+ * @param builder TODO
+ * @param message TODO
+ * @param cause TODO
+ */
public RDFParseException(final RDFParser builder, final String message, final Throwable cause) {
super(message, cause);
this.builder = builder;
}
+ /**
+ * Constructs a new instance.
+ * @param builder TODO
+ * @param message TODO
+ */
public RDFParseException(final RDFParser builder, final String message) {
super(message);
this.builder = builder;
}
+ /**
+ * Constructs a new instance.
+ * @param builder TODO
+ * @param cause TODO
+ */
public RDFParseException(final RDFParser builder, final Throwable cause) {
super(cause);
this.builder = builder;
}
+ /**
+ * Gets the builder.
+ * @return the builder.
+ */
public RDFParser getRDFParserBuilder() {
return builder;
}
diff --git a/pom.xml b/pom.xml
index 867c4c1..55adb55 100644
--- a/pom.xml
+++ b/pom.xml
@@ -336,7 +336,7 @@
<link>${commons.javadoc.java.link}</link>
<link>https://jena.apache.org/documentation/javadoc/jena/</link>
<link>https://jena.apache.org/documentation/javadoc/arq/</link>
- <link>http://docs.rdf4j.org/javadoc/2.2/</link>
+ <link>https://rdf4j.org/javadoc/2.5.4//</link>
</links>
</configuration>
</plugin>