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 2024/08/18 19:53:35 UTC
(commons-rdf) branch master updated (9abc90f0 -> 2e069ab7)
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rdf.git
from 9abc90f0 Merge pull request #254 from apache/dependabot/github_actions/github/codeql-action-3.26.2
new 69fc0f88 Fix Checkstyle errors
new c410302d Fix Checkstyle errors
new 1e9bab8f Fix Checkstyle errors
new 068ca66c Fix Checkstyle errors
new 4d982cdd Fix Checkstyle errors
new b2d1be47 Fix Checkstyle error
new 5cc615b2 Fix Checkstyle error
new 304db65b Fix Checkstyle error
new a2beaabe Fix Checkstyle error
new 6540d3af Fix Checkstyle error
new 02384e14 Fix Checkstyle error
new 026dd1a1 Fix Checkstyle error
new 7b35846b Fix Checkstyle error
new 3e3935e7 Fix Checkstyle errors
new f9917c42 Encapsulate
new a7358f37 Fix CheckStyle errors
new 3fda412b Fix CheckStyle errors
new 94ca476d Fix Checkstyle errors
new 2c814853 Fix CheckStyle errors
new c72c8feb Fix Checkstyle error
new b693c19f Fix Checkstyle errors
new 2e069ab7 Add CheckStyle to the default Maven goal
The 22 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
commons-rdf-api/pom.xml | 1 +
.../java/org/apache/commons/rdf/api/RDFTerm.java | 72 +++++++++++-----------
.../org/apache/commons/rdf/api/W3CRDFSyntax.java | 12 +++-
.../commons/rdf/experimental/package-info.java | 2 +-
commons-rdf-examples/pom.xml | 1 +
commons-rdf-integration-tests/pom.xml | 1 +
commons-rdf-jena/pom.xml | 1 +
.../java/org/apache/commons/rdf/jena/JenaRDF.java | 6 +-
.../rdf/jena/experimental/JenaRDFParser.java | 12 ++--
.../rdf/jena/experimental/package-info.java | 2 +-
.../commons/rdf/jena/impl/JenaGraphImpl.java | 2 +-
.../apache/commons/rdf/jena/impl/JenaQuadImpl.java | 2 +-
commons-rdf-jsonld-java/pom.xml | 1 +
.../commons/rdf/jsonldjava/JsonLdGraphLike.java | 2 +-
.../apache/commons/rdf/jsonldjava/JsonLdRDF.java | 2 +-
.../rdf/jsonldjava/experimental/package-info.java | 2 +-
.../commons/rdf/jsonldjava/package-info.java | 2 +-
commons-rdf-rdf4j/pom.xml | 1 +
.../rdf/rdf4j/experimental/RDF4JParser.java | 2 +-
.../rdf/rdf4j/experimental/package-info.java | 2 +-
.../commons/rdf/rdf4j/impl/AbstractRDFTerm.java | 2 +-
.../rdf4j/impl/AbstractRepositoryGraphLike.java | 30 +++++++--
.../commons/rdf/rdf4j/impl/BlankNodeImpl.java | 2 +-
.../rdf/rdf4j/impl/ConvertedStatements.java | 2 +-
.../org/apache/commons/rdf/rdf4j/impl/IRIImpl.java | 2 +-
.../apache/commons/rdf/rdf4j/impl/LiteralImpl.java | 2 +-
.../commons/rdf/rdf4j/impl/ModelGraphImpl.java | 2 +-
.../apache/commons/rdf/rdf4j/impl/QuadImpl.java | 2 +-
.../rdf/rdf4j/impl/RepositoryDatasetImpl.java | 62 +++++++++----------
.../rdf/rdf4j/impl/RepositoryGraphImpl.java | 50 +++++++--------
.../apache/commons/rdf/rdf4j/impl/TripleImpl.java | 2 +-
commons-rdf-simple/pom.xml | 1 +
.../org/apache/commons/rdf/simple/DatasetImpl.java | 2 +-
.../rdf/simple/experimental/RDFParseException.java | 2 +-
.../rdf/simple/experimental/package-info.java | 2 +-
pom.xml | 16 ++++-
src/changes/changes.xml | 3 +
src/conf/checkstyle.xml | 33 ++++------
38 files changed, 190 insertions(+), 155 deletions(-)
(commons-rdf) 09/22: Fix Checkstyle error
Posted by gg...@apache.org.
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
commit a2beaabea6fb082af154ada5b0cb08bb2e27cc83
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Aug 18 15:21:28 2024 -0400
Fix Checkstyle error
NewlineAtEndOfFile: File does not end with a newline
---
.../src/main/java/org/apache/commons/rdf/rdf4j/impl/IRIImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/IRIImpl.java b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/IRIImpl.java
index e2522d6e..d25b6c58 100644
--- a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/IRIImpl.java
+++ b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/IRIImpl.java
@@ -62,4 +62,4 @@ final class IRIImpl extends AbstractRDFTerm<org.eclipse.rdf4j.model.IRI> impleme
return value.toString();
}
-}
\ No newline at end of file
+}
(commons-rdf) 10/22: Fix Checkstyle error
Posted by gg...@apache.org.
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
commit 6540d3aff98a8619001ed5dd20ab37cde030f3f4
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Aug 18 15:21:31 2024 -0400
Fix Checkstyle error
NewlineAtEndOfFile: File does not end with a newline
---
.../src/main/java/org/apache/commons/rdf/rdf4j/impl/LiteralImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/LiteralImpl.java b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/LiteralImpl.java
index 16f3db7c..cf26352c 100644
--- a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/LiteralImpl.java
+++ b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/LiteralImpl.java
@@ -90,4 +90,4 @@ final class LiteralImpl extends AbstractRDFTerm<org.eclipse.rdf4j.model.Literal>
public String toString() {
return ntriplesString();
}
-}
\ No newline at end of file
+}
(commons-rdf) 17/22: Fix CheckStyle errors
Posted by gg...@apache.org.
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
commit 3fda412bd0528c6903194616f1487b6a330330ac
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Aug 18 15:44:36 2024 -0400
Fix CheckStyle errors
UnnecessaryParentheses
---
.../src/main/java/org/apache/commons/rdf/jena/impl/JenaQuadImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/impl/JenaQuadImpl.java b/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/impl/JenaQuadImpl.java
index 1caea2e4..02be7237 100644
--- a/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/impl/JenaQuadImpl.java
+++ b/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/impl/JenaQuadImpl.java
@@ -38,7 +38,7 @@ final class JenaQuadImpl extends AbstractQuadLike<BlankNodeOrIRI, IRI, RDFTerm,
JenaQuadImpl(final org.apache.jena.sparql.core.Quad quad, final UUID salt) {
super(quad, salt);
// Check the conversion
- if ((graphName.isPresent() && !(graphName.get() instanceof BlankNodeOrIRI))
+ if (graphName.isPresent() && !(graphName.get() instanceof BlankNodeOrIRI)
|| !(subject instanceof BlankNodeOrIRI) || !(predicate instanceof IRI)
|| !(object instanceof RDFTerm)) {
throw new ConversionException("Can't adapt generalized quad: " + quad);
(commons-rdf) 16/22: Fix CheckStyle errors
Posted by gg...@apache.org.
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
commit a7358f3777bbe770033f9fbc434ddc2606453238
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Aug 18 15:43:47 2024 -0400
Fix CheckStyle errors
UnnecessaryParentheses
---
.../src/main/java/org/apache/commons/rdf/jena/impl/JenaGraphImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/impl/JenaGraphImpl.java b/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/impl/JenaGraphImpl.java
index ebaba0eb..fc985cda 100644
--- a/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/impl/JenaGraphImpl.java
+++ b/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/impl/JenaGraphImpl.java
@@ -115,7 +115,7 @@ final class JenaGraphImpl implements JenaGraph {
@Override
public void remove(final Triple triple) {
- if ((triple.getObject() instanceof Literal) &&
+ if (triple.getObject() instanceof Literal &&
((Literal) triple.getObject()).getLanguageTag().isPresent()) {
// COMMONSRDF-51: graph.delete(Triple) would be too restrictive
// as it won't delete triples with different lang tag - so
(commons-rdf) 21/22: Fix Checkstyle errors
Posted by gg...@apache.org.
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
commit b693c19f603f7c17598287abbf47b1d7c708b4a9
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Aug 18 15:48:41 2024 -0400
Fix Checkstyle errors
---
.../main/java/org/apache/commons/rdf/jsonldjava/JsonLdGraphLike.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons-rdf-jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdGraphLike.java b/commons-rdf-jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdGraphLike.java
index 65f57aca..59d0210d 100644
--- a/commons-rdf-jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdGraphLike.java
+++ b/commons-rdf-jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdGraphLike.java
@@ -24,12 +24,12 @@ import java.util.UUID;
import java.util.function.Predicate;
import java.util.stream.Stream;
+//NOTE: To avod confusion, don't importing either of the Quad
import org.apache.commons.rdf.api.BlankNodeOrIRI;
import org.apache.commons.rdf.api.GraphLike;
import org.apache.commons.rdf.api.IRI;
import org.apache.commons.rdf.api.Literal;
import org.apache.commons.rdf.api.RDFTerm;
-// NOTE: To avod confusion, don't importing either of the Quad
import org.apache.commons.rdf.api.Triple;
import org.apache.commons.rdf.api.TripleLike;
(commons-rdf) 12/22: Fix Checkstyle error
Posted by gg...@apache.org.
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
commit 026dd1a1f1644d0876d76b04847e5cd3882419c2
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Aug 18 15:21:42 2024 -0400
Fix Checkstyle error
NewlineAtEndOfFile: File does not end with a newline
---
.../src/main/java/org/apache/commons/rdf/rdf4j/impl/QuadImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/QuadImpl.java b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/QuadImpl.java
index 90c1670c..f6bcdbb4 100644
--- a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/QuadImpl.java
+++ b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/QuadImpl.java
@@ -97,4 +97,4 @@ final class QuadImpl implements RDF4JQuad {
public String toString() {
return statement.toString();
}
-}
\ No newline at end of file
+}
(commons-rdf) 22/22: Add CheckStyle to the default Maven goal
Posted by gg...@apache.org.
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
commit 2e069ab704993c61cf763ca577b7f47538898b85
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Aug 18 15:53:17 2024 -0400
Add CheckStyle to the default Maven goal
- Inherit maven-checkstyle-pluginversion from parent POM
- Bump commons-parent from 71 to 73
---
commons-rdf-api/pom.xml | 1 +
commons-rdf-examples/pom.xml | 1 +
commons-rdf-integration-tests/pom.xml | 1 +
commons-rdf-jena/pom.xml | 1 +
commons-rdf-jsonld-java/pom.xml | 1 +
commons-rdf-rdf4j/pom.xml | 1 +
commons-rdf-simple/pom.xml | 1 +
pom.xml | 16 +++++++++++++---
src/changes/changes.xml | 3 +++
src/conf/checkstyle.xml | 33 +++++++++++----------------------
10 files changed, 34 insertions(+), 25 deletions(-)
diff --git a/commons-rdf-api/pom.xml b/commons-rdf-api/pom.xml
index 8059c607..fc42d2dd 100644
--- a/commons-rdf-api/pom.xml
+++ b/commons-rdf-api/pom.xml
@@ -34,6 +34,7 @@
<description>Commons Java API for RDF 1.1</description>
<properties>
+ <commons.parent.dir>${basedir}/..</commons.parent.dir>
<commons.osgi.symbolicName>org.apache.commons.rdf.api</commons.osgi.symbolicName>
<project.build.outputTimestamp>2024-02-01T03:27:02Z</project.build.outputTimestamp>
</properties>
diff --git a/commons-rdf-examples/pom.xml b/commons-rdf-examples/pom.xml
index 57abd6ae..bd98bd67 100644
--- a/commons-rdf-examples/pom.xml
+++ b/commons-rdf-examples/pom.xml
@@ -32,6 +32,7 @@
<version>0.1</version>
<properties>
+ <commons.parent.dir>${basedir}/..</commons.parent.dir>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.outputTimestamp>2024-02-01T03:27:02Z</project.build.outputTimestamp>
diff --git a/commons-rdf-integration-tests/pom.xml b/commons-rdf-integration-tests/pom.xml
index e9e3b0c1..e6052b43 100644
--- a/commons-rdf-integration-tests/pom.xml
+++ b/commons-rdf-integration-tests/pom.xml
@@ -28,6 +28,7 @@
<artifactId>commons-rdf-integration-tests</artifactId>
<name>Commons RDF Integration tests</name>
<properties>
+ <commons.parent.dir>${basedir}/..</commons.parent.dir>
<project.build.outputTimestamp>2024-02-01T03:27:02Z</project.build.outputTimestamp>
</properties>
<dependencies>
diff --git a/commons-rdf-jena/pom.xml b/commons-rdf-jena/pom.xml
index 2edfbf20..4c31ae95 100644
--- a/commons-rdf-jena/pom.xml
+++ b/commons-rdf-jena/pom.xml
@@ -33,6 +33,7 @@
<name>Commons RDF impl: Jena</name>
<description>Apache Jena implementation of Commons RDF API</description>
<properties>
+ <commons.parent.dir>${basedir}/..</commons.parent.dir>
<project.build.outputTimestamp>2024-02-01T03:27:02Z</project.build.outputTimestamp>
</properties>
diff --git a/commons-rdf-jsonld-java/pom.xml b/commons-rdf-jsonld-java/pom.xml
index 44b57fe2..43471678 100644
--- a/commons-rdf-jsonld-java/pom.xml
+++ b/commons-rdf-jsonld-java/pom.xml
@@ -33,6 +33,7 @@
<name>Commons RDF impl: JSON-LD Java</name>
<description>Parser integration of JSON-LD Java</description>
<properties>
+ <commons.parent.dir>${basedir}/..</commons.parent.dir>
<project.build.outputTimestamp>2024-02-01T03:27:02Z</project.build.outputTimestamp>
</properties>
diff --git a/commons-rdf-rdf4j/pom.xml b/commons-rdf-rdf4j/pom.xml
index d4352b4b..a7b81335 100644
--- a/commons-rdf-rdf4j/pom.xml
+++ b/commons-rdf-rdf4j/pom.xml
@@ -33,6 +33,7 @@
<name>Commons RDF impl: RDF4j</name>
<description>Eclipse RDF4j implementation of Commons RDF API</description>
<properties>
+ <commons.parent.dir>${basedir}/..</commons.parent.dir>
<project.build.outputTimestamp>2024-02-01T03:27:02Z</project.build.outputTimestamp>
</properties>
diff --git a/commons-rdf-simple/pom.xml b/commons-rdf-simple/pom.xml
index 873ef014..bd80e4b9 100644
--- a/commons-rdf-simple/pom.xml
+++ b/commons-rdf-simple/pom.xml
@@ -40,6 +40,7 @@
</site>
</distributionManagement>
<properties>
+ <commons.parent.dir>${basedir}/..</commons.parent.dir>
<project.build.outputTimestamp>2024-02-01T03:27:02Z</project.build.outputTimestamp>
</properties>
diff --git a/pom.xml b/pom.xml
index 376b72f6..108a02e0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.apache.commons</groupId>
<artifactId>commons-parent</artifactId>
- <version>71</version>
+ <version>73</version>
</parent>
<artifactId>commons-rdf-parent</artifactId>
@@ -43,6 +43,7 @@
<maven.compiler.target>11</maven.compiler.target>
<project.build.encoding>UTF-8</project.build.encoding>
<project.build.outputTimestamp>2024-02-01T03:27:02Z</project.build.outputTimestamp>
+ <commons.parent.dir>${basedir}</commons.parent.dir>
<commons.encoding>UTF-8</commons.encoding>
<commons.componentid>rdf</commons.componentid>
<commons.module.name>org.apache.commons.rdf</commons.module.name>
@@ -288,7 +289,7 @@
</dependencies>
<build>
- <defaultGoal>clean verify javadoc:javadoc</defaultGoal>
+ <defaultGoal>clean verify checkstyle:check javadoc:javadoc</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -509,6 +510,16 @@
</excludes>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <configuration>
+ <configLocation>${commons.parent.dir}/src/conf/checkstyle.xml</configLocation>
+ <propertyExpansion>config_loc=${commons.parent.dir}/src/conf/</propertyExpansion>
+ <enableRulesSummary>false</enableRulesSummary>
+ <suppressionsLocation>${commons.parent.dir}/src/conf/checkstyle-suppressions.xml</suppressionsLocation>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>
</build>
@@ -539,7 +550,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
- <version>3.2.0</version>
<configuration>
<configLocation>${project.basedir}/src/conf/checkstyle.xml</configLocation>
<!-- Needed to define config_loc -->
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 7f339640..a3f16846 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -85,6 +85,9 @@
<action type="update" dev="ggregory" due-to="Gary Gregory">
Bump Java from 8 to 11.
</action>
+ <action type="update" dev="ggregory" due-to="Gary Gregory">
+ Bump commons-parent from 71 to 73.
+ </action>
</release>
<release version="0.5.0" date="2017-11-19" description="Minor feature and bug fix release.">
<action type="fix" issue="COMMONSRDF-47">
diff --git a/src/conf/checkstyle.xml b/src/conf/checkstyle.xml
index d03ca51e..7fc18e7d 100644
--- a/src/conf/checkstyle.xml
+++ b/src/conf/checkstyle.xml
@@ -51,14 +51,11 @@ limitations under the License.
<property name="fileExtensions" value="java" />
<property name="severity" value="warning" />
</module>
+ <module name="LineLength">
+ <property name="max" value="160"/>
+ </module>
<module name="TreeWalker">
- <property name="cacheFile" value="target/cachefile" />
- <!--
- -->
- <module name="LineLength">
- <property name="max" value="160"/>
- </module>
<!-- Checks for Naming Conventions. -->
<!-- See http://checkstyle.sf.net/config_naming.html -->
@@ -173,31 +170,23 @@ limitations under the License.
<module name="UpperEll"/>
<!-- Required for SuppressionCommentFilter below -->
- <module name="FileContentsHolder"/>
<module name="ImportOrder">
<property name="option" value="top"/>
<property name="groups" value="java,javax,org"/>
<property name="ordered" value="true"/>
<property name="separated" value="true"/>
</module>
-
- </module>
-
- <module name="SuppressionCommentFilter"/>
-
- <module name="SuppressionFilter">
- <!-- config_loc is used by Eclipse plugin -->
- <property name="file" value="${config_loc}/src/conf/checkstyle-suppressions.xml"/>
- </module>
-
- <!--
+ <module name="SuppressionCommentFilter"/>
+ <!--
Allow comment to suppress checkstyle for a single line
e.g. // CHECKSTYLE IGNORE MagicNumber
- -->
- <module name="SuppressWithNearbyCommentFilter">
- <property name="commentFormat" value="CHECKSTYLE IGNORE (\w+)"/>
- <property name="checkFormat" value="$1"/>
+ -->
+ <module name="SuppressWithNearbyCommentFilter">
+ <property name="commentFormat" value="CHECKSTYLE IGNORE (\w+)"/>
+ <property name="checkFormat" value="$1"/>
+ </module>
</module>
+
<!-- @author tags are deprecated -->
<module name="RegexpSingleline">
<property name="format" value="^\s+\*\s+@author\s" />
(commons-rdf) 05/22: Fix Checkstyle errors
Posted by gg...@apache.org.
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
commit 4d982cdd676c25efc79143c6136408fd9f70c39d
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Aug 18 15:19:03 2024 -0400
Fix Checkstyle errors
---
.../org/apache/commons/rdf/simple/experimental/RDFParseException.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 1a8a5120..16de9738 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
@@ -73,4 +73,4 @@ public class RDFParseException extends Exception {
public RDFParser getRDFParserBuilder() {
return builder;
}
-}
\ No newline at end of file
+}
(commons-rdf) 18/22: Fix Checkstyle errors
Posted by gg...@apache.org.
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
commit 94ca476d366cd82eebc9a1b15bfcb55ced3b565e
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Aug 18 15:46:07 2024 -0400
Fix Checkstyle errors
No tabs
---
.../apache/commons/rdf/jena/experimental/JenaRDFParser.java | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/experimental/JenaRDFParser.java b/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/experimental/JenaRDFParser.java
index 16f361d8..8154d2fc 100644
--- a/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/experimental/JenaRDFParser.java
+++ b/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/experimental/JenaRDFParser.java
@@ -72,12 +72,12 @@ public class JenaRDFParser extends AbstractRDFParser<JenaRDFParser> {
final String baseStr = getBase().map(IRI::getIRIString).orElse(null);
if (getSourceIri().isPresent()) {
- RDFParser.source(getSourceIri().get().toString()).base(baseStr).lang(lang).parse(dest);
- } else if (getSourceFile().isPresent()) {
- try (InputStream s = Files.newInputStream(getSourceFile().get())) {
- RDFParser.source(s).base(baseStr).lang(lang).parse(dest);
- }
- } else {
+ RDFParser.source(getSourceIri().get().toString()).base(baseStr).lang(lang).parse(dest);
+ } else if (getSourceFile().isPresent()) {
+ try (InputStream s = Files.newInputStream(getSourceFile().get())) {
+ RDFParser.source(s).base(baseStr).lang(lang).parse(dest);
+ }
+ } else {
RDFParser.source(getSourceInputStream().get()).base(baseStr).lang(lang).parse(dest);
}
}
(commons-rdf) 11/22: Fix Checkstyle error
Posted by gg...@apache.org.
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
commit 02384e146b399696efdf0ef10f3aac7847918260
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Aug 18 15:21:37 2024 -0400
Fix Checkstyle error
NewlineAtEndOfFile: File does not end with a newline
---
.../src/main/java/org/apache/commons/rdf/rdf4j/impl/ModelGraphImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/ModelGraphImpl.java b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/ModelGraphImpl.java
index 54246101..8480831c 100644
--- a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/ModelGraphImpl.java
+++ b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/ModelGraphImpl.java
@@ -150,4 +150,4 @@ final class ModelGraphImpl implements RDF4JGraph {
.parallelStream().map(rdf4jTermFactory::asTriple);
}
-}
\ No newline at end of file
+}
(commons-rdf) 13/22: Fix Checkstyle error
Posted by gg...@apache.org.
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
commit 7b35846b42f67c1f0f0ad5e7686a2a4ab5db1a2a
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Aug 18 15:21:46 2024 -0400
Fix Checkstyle error
NewlineAtEndOfFile: File does not end with a newline
---
.../src/main/java/org/apache/commons/rdf/rdf4j/impl/TripleImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/TripleImpl.java b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/TripleImpl.java
index c59e4cad..eb147f9f 100644
--- a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/TripleImpl.java
+++ b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/TripleImpl.java
@@ -75,4 +75,4 @@ final class TripleImpl implements RDF4JTriple {
public String toString() {
return statement.toString();
}
-}
\ No newline at end of file
+}
(commons-rdf) 19/22: Fix CheckStyle errors
Posted by gg...@apache.org.
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
commit 2c814853e2fe233905e0b765d0e5dae3fb125cb3
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Aug 18 15:46:48 2024 -0400
Fix CheckStyle errors
UnnecessaryParentheses
---
.../src/main/java/org/apache/commons/rdf/jena/JenaRDF.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/JenaRDF.java b/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/JenaRDF.java
index 11e63d83..f9ecd65a 100644
--- a/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/JenaRDF.java
+++ b/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/JenaRDF.java
@@ -110,9 +110,9 @@ public final class JenaRDF implements RDF {
// No need to convert, just wrap
return ((JenaRDF) factory).asQuad(quad);
}
- final BlankNodeOrIRI graphName = (BlankNodeOrIRI) (asRDFTerm(factory, quad.getGraph()));
- final BlankNodeOrIRI subject = (BlankNodeOrIRI) (asRDFTerm(factory, quad.getSubject()));
- final IRI predicate = (IRI) (asRDFTerm(factory, quad.getPredicate()));
+ final BlankNodeOrIRI graphName = (BlankNodeOrIRI) asRDFTerm(factory, quad.getGraph());
+ final BlankNodeOrIRI subject = (BlankNodeOrIRI) asRDFTerm(factory, quad.getSubject());
+ final IRI predicate = (IRI) asRDFTerm(factory, quad.getPredicate());
final RDFTerm object = asRDFTerm(factory, quad.getObject());
return factory.createQuad(graphName, subject, predicate, object);
}
(commons-rdf) 06/22: Fix Checkstyle error
Posted by gg...@apache.org.
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
commit b2d1be4764f2d3bf8f781468d8252981cd2a10ae
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Aug 18 15:21:16 2024 -0400
Fix Checkstyle error
NewlineAtEndOfFile: File does not end with a newline
---
.../main/java/org/apache/commons/rdf/rdf4j/impl/AbstractRDFTerm.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/AbstractRDFTerm.java b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/AbstractRDFTerm.java
index ea847b0f..934ccef8 100644
--- a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/AbstractRDFTerm.java
+++ b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/AbstractRDFTerm.java
@@ -31,4 +31,4 @@ abstract class AbstractRDFTerm<T extends Value> implements RDF4JTerm {
public T asValue() {
return value;
}
-}
\ No newline at end of file
+}
(commons-rdf) 15/22: Encapsulate
Posted by gg...@apache.org.
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
commit f9917c42c3141535489580add817e5fbd8985524
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Aug 18 15:42:19 2024 -0400
Encapsulate
Fix CheckStyle errors
---
.../rdf4j/impl/AbstractRepositoryGraphLike.java | 30 +++++++++--
.../rdf/rdf4j/impl/RepositoryDatasetImpl.java | 62 +++++++++++-----------
.../rdf/rdf4j/impl/RepositoryGraphImpl.java | 50 ++++++++---------
3 files changed, 81 insertions(+), 61 deletions(-)
diff --git a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/AbstractRepositoryGraphLike.java b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/AbstractRepositoryGraphLike.java
index c1db01b8..4d8378ef 100644
--- a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/AbstractRepositoryGraphLike.java
+++ b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/AbstractRepositoryGraphLike.java
@@ -30,11 +30,11 @@ import org.eclipse.rdf4j.repository.RepositoryConnection;
abstract class AbstractRepositoryGraphLike<T extends TripleLike> implements RDF4JGraphLike<T> {
- protected final Repository repository;
- protected final boolean includeInferred;
- protected final boolean handleInitAndShutdown;
- protected final RDF4J rdf4jTermFactory;
- protected final UUID salt;
+ private final Repository repository;
+ private final boolean includeInferred;
+ private final boolean handleInitAndShutdown;
+ private final RDF4J rdf4jTermFactory;
+ private final UUID salt;
AbstractRepositoryGraphLike(final Repository repository, final UUID salt, final boolean handleInitAndShutdown,
final boolean includeInferred) {
@@ -69,8 +69,28 @@ abstract class AbstractRepositoryGraphLike<T extends TripleLike> implements RDF4
// down
}
+ protected boolean getHandleInitAndShutdown() {
+ return handleInitAndShutdown;
+ }
+
+ protected boolean getIncludeInferred() {
+ return includeInferred;
+ }
+
+ protected RDF4J getRdf4jTermFactory() {
+ return rdf4jTermFactory;
+ }
+
+ protected Repository getRepository() {
+ return repository;
+ }
+
protected RepositoryConnection getRepositoryConnection() {
return repository.getConnection();
}
+ protected UUID getSalt() {
+ return salt;
+ }
+
}
diff --git a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/RepositoryDatasetImpl.java b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/RepositoryDatasetImpl.java
index 35a3aefe..affd7eab 100644
--- a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/RepositoryDatasetImpl.java
+++ b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/RepositoryDatasetImpl.java
@@ -46,10 +46,10 @@ final class RepositoryDatasetImpl extends AbstractRepositoryGraphLike<Quad> impl
@Override
public void add(final BlankNodeOrIRI graphName, final BlankNodeOrIRI subject, final IRI predicate, final RDFTerm object) {
- final Resource context = (Resource) rdf4jTermFactory.asValue(graphName);
- final Resource subj = (Resource) rdf4jTermFactory.asValue(subject);
- final org.eclipse.rdf4j.model.IRI pred = (org.eclipse.rdf4j.model.IRI) rdf4jTermFactory.asValue(predicate);
- final Value obj = rdf4jTermFactory.asValue(object);
+ final Resource context = (Resource) getRdf4jTermFactory().asValue(graphName);
+ final Resource subj = (Resource) getRdf4jTermFactory().asValue(subject);
+ final org.eclipse.rdf4j.model.IRI pred = (org.eclipse.rdf4j.model.IRI) getRdf4jTermFactory().asValue(predicate);
+ final Value obj = getRdf4jTermFactory().asValue(object);
try (RepositoryConnection conn = getRepositoryConnection()) {
conn.add(subj, pred, obj, context);
conn.commit();
@@ -58,7 +58,7 @@ final class RepositoryDatasetImpl extends AbstractRepositoryGraphLike<Quad> impl
@Override
public void add(final Quad tripleLike) {
- final Statement statement = rdf4jTermFactory.asStatement(tripleLike);
+ final Statement statement = getRdf4jTermFactory().asStatement(tripleLike);
try (RepositoryConnection conn = getRepositoryConnection()) {
conn.add(statement);
conn.commit();
@@ -72,7 +72,7 @@ final class RepositoryDatasetImpl extends AbstractRepositoryGraphLike<Quad> impl
contexts = new Resource[0];
} else {
final BlankNodeOrIRI g = graphName.orElse(null);
- final Resource context = (Resource) rdf4jTermFactory.asValue(g);
+ final Resource context = (Resource) getRdf4jTermFactory().asValue(g);
contexts = new Resource[] { context };
}
return contexts;
@@ -80,7 +80,7 @@ final class RepositoryDatasetImpl extends AbstractRepositoryGraphLike<Quad> impl
@Override
protected RDF4JQuad asTripleLike(final Statement s) {
- return rdf4jTermFactory.asQuad(s);
+ return getRdf4jTermFactory().asQuad(s);
}
@Override
@@ -93,20 +93,20 @@ final class RepositoryDatasetImpl extends AbstractRepositoryGraphLike<Quad> impl
@Override
public boolean contains(final Optional<BlankNodeOrIRI> graphName, final BlankNodeOrIRI subject, final IRI predicate, final RDFTerm object) {
- final Resource subj = (Resource) rdf4jTermFactory.asValue(subject);
- final org.eclipse.rdf4j.model.IRI pred = (org.eclipse.rdf4j.model.IRI) rdf4jTermFactory.asValue(predicate);
- final Value obj = rdf4jTermFactory.asValue(object);
+ final Resource subj = (Resource) getRdf4jTermFactory().asValue(subject);
+ final org.eclipse.rdf4j.model.IRI pred = (org.eclipse.rdf4j.model.IRI) getRdf4jTermFactory().asValue(predicate);
+ final Value obj = getRdf4jTermFactory().asValue(object);
final Resource[] contexts = asContexts(graphName);
try (RepositoryConnection conn = getRepositoryConnection()) {
- return conn.hasStatement(subj, pred, obj, includeInferred, contexts);
+ return conn.hasStatement(subj, pred, obj, getIncludeInferred(), contexts);
}
}
@Override
public boolean contains(final Quad tripleLike) {
- final Statement statement = rdf4jTermFactory.asStatement(tripleLike);
+ final Statement statement = getRdf4jTermFactory().asStatement(tripleLike);
try (RepositoryConnection conn = getRepositoryConnection()) {
- return conn.hasStatement(statement, includeInferred);
+ return conn.hasStatement(statement, getIncludeInferred());
}
}
@@ -115,23 +115,23 @@ final class RepositoryDatasetImpl extends AbstractRepositoryGraphLike<Quad> impl
// default context only
// NOTE: We carry over the 'salt' as the graph's BlankNode should be
// equal to our BlankNodes
- return new RepositoryGraphImpl(repository, salt, false, includeInferred, (Resource) null);
+ return new RepositoryGraphImpl(getRepository(), getSalt(), false, getIncludeInferred(), (Resource) null);
}
@Override
public Optional<Graph> getGraph(final BlankNodeOrIRI graphName) {
// NOTE: May be null to indicate default context
- final Resource context = (Resource) rdf4jTermFactory.asValue(graphName);
+ final Resource context = (Resource) getRdf4jTermFactory().asValue(graphName);
// NOTE: We carry over the 'salt' as the graph's BlankNode should be
// equal to our BlankNodes
- return Optional.of(new RepositoryGraphImpl(repository, salt, false, includeInferred, context));
+ return Optional.of(new RepositoryGraphImpl(getRepository(), getSalt(), false, getIncludeInferred(), context));
}
@Override
public Stream<BlankNodeOrIRI> getGraphNames() {
final RepositoryConnection conn = getRepositoryConnection();
final RepositoryResult<Resource> contexts = conn.getContextIDs();
- return Iterations.stream(contexts).map(g -> (BlankNodeOrIRI) rdf4jTermFactory.asRDFTerm(g))
+ return Iterations.stream(contexts).map(g -> (BlankNodeOrIRI) getRdf4jTermFactory().asRDFTerm(g))
.onClose(conn::close);
}
@@ -144,18 +144,18 @@ final class RepositoryDatasetImpl extends AbstractRepositoryGraphLike<Quad> impl
public ClosableIterable<Quad> iterate(final Optional<BlankNodeOrIRI> graphName, final BlankNodeOrIRI subject, final IRI predicate,
final RDFTerm object) throws ConcurrentModificationException, IllegalStateException {
final Resource[] contexts = asContexts(graphName);
- final Resource subj = (Resource) rdf4jTermFactory.asValue(subject);
- final org.eclipse.rdf4j.model.IRI pred = (org.eclipse.rdf4j.model.IRI) rdf4jTermFactory.asValue(predicate);
- final Value obj = rdf4jTermFactory.asValue(object);
- return new ConvertedStatements<>(this::getRepositoryConnection, rdf4jTermFactory::asQuad, subj, pred, obj,
+ final Resource subj = (Resource) getRdf4jTermFactory().asValue(subject);
+ final org.eclipse.rdf4j.model.IRI pred = (org.eclipse.rdf4j.model.IRI) getRdf4jTermFactory().asValue(predicate);
+ final Value obj = getRdf4jTermFactory().asValue(object);
+ return new ConvertedStatements<>(this::getRepositoryConnection, getRdf4jTermFactory()::asQuad, subj, pred, obj,
contexts);
}
@Override
public void remove(final Optional<BlankNodeOrIRI> graphName, final BlankNodeOrIRI subject, final IRI predicate, final RDFTerm object) {
- final Resource subj = (Resource) rdf4jTermFactory.asValue(subject);
- final org.eclipse.rdf4j.model.IRI pred = (org.eclipse.rdf4j.model.IRI) rdf4jTermFactory.asValue(predicate);
- final Value obj = rdf4jTermFactory.asValue(object);
+ final Resource subj = (Resource) getRdf4jTermFactory().asValue(subject);
+ final org.eclipse.rdf4j.model.IRI pred = (org.eclipse.rdf4j.model.IRI) getRdf4jTermFactory().asValue(predicate);
+ final Value obj = getRdf4jTermFactory().asValue(object);
final Resource[] contexts = asContexts(graphName);
try (RepositoryConnection conn = getRepositoryConnection()) {
@@ -166,7 +166,7 @@ final class RepositoryDatasetImpl extends AbstractRepositoryGraphLike<Quad> impl
@Override
public void remove(final Quad tripleLike) {
- final Statement statement = rdf4jTermFactory.asStatement(tripleLike);
+ final Statement statement = getRdf4jTermFactory().asStatement(tripleLike);
try (RepositoryConnection conn = getRepositoryConnection()) {
conn.remove(statement);
conn.commit();
@@ -175,7 +175,7 @@ final class RepositoryDatasetImpl extends AbstractRepositoryGraphLike<Quad> impl
@Override
public long size() {
- if (includeInferred) {
+ if (getIncludeInferred()) {
// We'll need to count them all
return stream().count();
}
@@ -193,9 +193,9 @@ final class RepositoryDatasetImpl extends AbstractRepositoryGraphLike<Quad> impl
@Override
public Stream<RDF4JQuad> stream(final Optional<BlankNodeOrIRI> graphName, final BlankNodeOrIRI subject, final IRI predicate,
final RDFTerm object) {
- final Resource subj = (Resource) rdf4jTermFactory.asValue(subject);
- final org.eclipse.rdf4j.model.IRI pred = (org.eclipse.rdf4j.model.IRI) rdf4jTermFactory.asValue(predicate);
- final Value obj = rdf4jTermFactory.asValue(object);
+ final Resource subj = (Resource) getRdf4jTermFactory().asValue(subject);
+ final org.eclipse.rdf4j.model.IRI pred = (org.eclipse.rdf4j.model.IRI) getRdf4jTermFactory().asValue(predicate);
+ final Value obj = getRdf4jTermFactory().asValue(object);
final Resource[] contexts = asContexts(graphName);
// NOTE: We can't do the usual try..with closing of the
@@ -204,10 +204,10 @@ final class RepositoryDatasetImpl extends AbstractRepositoryGraphLike<Quad> impl
final RepositoryConnection conn = getRepositoryConnection();
Stream<RDF4JQuad> stream = null;
try {
- final RepositoryResult<Statement> statements = conn.getStatements(subj, pred, obj, includeInferred, contexts);
+ final RepositoryResult<Statement> statements = conn.getStatements(subj, pred, obj, getIncludeInferred(), contexts);
// NOTE: Iterations.stream should close RepositoryResult as long as
// our caller closes the stream
- stream = Iterations.stream(statements).map(rdf4jTermFactory::asQuad);
+ stream = Iterations.stream(statements).map(getRdf4jTermFactory()::asQuad);
} finally {
if (stream == null) {
// Some exception before we made the stream, close connection
diff --git a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/RepositoryGraphImpl.java b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/RepositoryGraphImpl.java
index d7ccaaa7..05824482 100644
--- a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/RepositoryGraphImpl.java
+++ b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/RepositoryGraphImpl.java
@@ -53,9 +53,9 @@ final class RepositoryGraphImpl extends AbstractRepositoryGraphLike<Triple> impl
@Override
public void add(final BlankNodeOrIRI subject, final IRI predicate, final RDFTerm object) {
- final Resource subj = (Resource) rdf4jTermFactory.asValue(subject);
- final org.eclipse.rdf4j.model.IRI pred = (org.eclipse.rdf4j.model.IRI) rdf4jTermFactory.asValue(predicate);
- final Value obj = rdf4jTermFactory.asValue(object);
+ final Resource subj = (Resource) getRdf4jTermFactory().asValue(subject);
+ final org.eclipse.rdf4j.model.IRI pred = (org.eclipse.rdf4j.model.IRI) getRdf4jTermFactory().asValue(predicate);
+ final Value obj = getRdf4jTermFactory().asValue(object);
try (RepositoryConnection conn = getRepositoryConnection()) {
conn.add(subj, pred, obj, contextMask);
conn.commit();
@@ -64,7 +64,7 @@ final class RepositoryGraphImpl extends AbstractRepositoryGraphLike<Triple> impl
@Override
public void add(final Triple tripleLike) {
- final Statement statement = rdf4jTermFactory.asStatement(tripleLike);
+ final Statement statement = getRdf4jTermFactory().asStatement(tripleLike);
try (RepositoryConnection conn = getRepositoryConnection()) {
conn.add(statement, contextMask);
conn.commit();
@@ -73,7 +73,7 @@ final class RepositoryGraphImpl extends AbstractRepositoryGraphLike<Triple> impl
@Override
protected RDF4JTriple asTripleLike(final Statement statement) {
- return rdf4jTermFactory.asTriple(statement);
+ return getRdf4jTermFactory().asTriple(statement);
}
@Override
@@ -86,19 +86,19 @@ final class RepositoryGraphImpl extends AbstractRepositoryGraphLike<Triple> impl
@Override
public boolean contains(final BlankNodeOrIRI subject, final IRI predicate, final RDFTerm object) {
- final Resource subj = (Resource) rdf4jTermFactory.asValue(subject);
- final org.eclipse.rdf4j.model.IRI pred = (org.eclipse.rdf4j.model.IRI) rdf4jTermFactory.asValue(predicate);
- final Value obj = rdf4jTermFactory.asValue(object);
+ final Resource subj = (Resource) getRdf4jTermFactory().asValue(subject);
+ final org.eclipse.rdf4j.model.IRI pred = (org.eclipse.rdf4j.model.IRI) getRdf4jTermFactory().asValue(predicate);
+ final Value obj = getRdf4jTermFactory().asValue(object);
try (RepositoryConnection conn = getRepositoryConnection()) {
- return conn.hasStatement(subj, pred, obj, includeInferred, contextMask);
+ return conn.hasStatement(subj, pred, obj, getIncludeInferred(), contextMask);
}
}
@Override
public boolean contains(final Triple tripleLike) {
- final Statement statement = rdf4jTermFactory.asStatement(tripleLike);
+ final Statement statement = getRdf4jTermFactory().asStatement(tripleLike);
try (RepositoryConnection conn = getRepositoryConnection()) {
- return conn.hasStatement(statement, includeInferred, contextMask);
+ return conn.hasStatement(statement, getIncludeInferred(), contextMask);
}
}
@@ -106,7 +106,7 @@ final class RepositoryGraphImpl extends AbstractRepositoryGraphLike<Triple> impl
public Set<RDF4JBlankNodeOrIRI> getContextMask() {
final Set<RDF4JBlankNodeOrIRI> mask = new HashSet<>();
for (final Resource s : contextMask) {
- mask.add(rdf4jTermFactory.asRDFTerm(s));
+ mask.add(getRdf4jTermFactory().asRDFTerm(s));
}
return Collections.unmodifiableSet(mask);
}
@@ -119,18 +119,18 @@ final class RepositoryGraphImpl extends AbstractRepositoryGraphLike<Triple> impl
@Override
public ClosableIterable<Triple> iterate(final BlankNodeOrIRI subject, final IRI predicate, final RDFTerm object)
throws ConcurrentModificationException, IllegalStateException {
- final Resource subj = (Resource) rdf4jTermFactory.asValue(subject);
- final org.eclipse.rdf4j.model.IRI pred = (org.eclipse.rdf4j.model.IRI) rdf4jTermFactory.asValue(predicate);
- final Value obj = rdf4jTermFactory.asValue(object);
- return new ConvertedStatements<>(this::getRepositoryConnection, rdf4jTermFactory::asTriple, subj, pred,
+ final Resource subj = (Resource) getRdf4jTermFactory().asValue(subject);
+ final org.eclipse.rdf4j.model.IRI pred = (org.eclipse.rdf4j.model.IRI) getRdf4jTermFactory().asValue(predicate);
+ final Value obj = getRdf4jTermFactory().asValue(object);
+ return new ConvertedStatements<>(this::getRepositoryConnection, getRdf4jTermFactory()::asTriple, subj, pred,
obj, contextMask);
}
@Override
public void remove(final BlankNodeOrIRI subject, final IRI predicate, final RDFTerm object) {
- final Resource subj = (Resource) rdf4jTermFactory.asValue(subject);
- final org.eclipse.rdf4j.model.IRI pred = (org.eclipse.rdf4j.model.IRI) rdf4jTermFactory.asValue(predicate);
- final Value obj = rdf4jTermFactory.asValue(object);
+ final Resource subj = (Resource) getRdf4jTermFactory().asValue(subject);
+ final org.eclipse.rdf4j.model.IRI pred = (org.eclipse.rdf4j.model.IRI) getRdf4jTermFactory().asValue(predicate);
+ final Value obj = getRdf4jTermFactory().asValue(object);
try (RepositoryConnection conn = getRepositoryConnection()) {
conn.remove(subj, pred, obj, contextMask);
conn.commit();
@@ -139,7 +139,7 @@ final class RepositoryGraphImpl extends AbstractRepositoryGraphLike<Triple> impl
@Override
public void remove(final Triple tripleLike) {
- final Statement statement = rdf4jTermFactory.asStatement(tripleLike);
+ final Statement statement = getRdf4jTermFactory().asStatement(tripleLike);
try (RepositoryConnection conn = getRepositoryConnection()) {
conn.remove(statement, contextMask);
conn.commit();
@@ -148,7 +148,7 @@ final class RepositoryGraphImpl extends AbstractRepositoryGraphLike<Triple> impl
@Override
public long size() {
- if (!includeInferred && contextMask.length == 0) {
+ if (!getIncludeInferred() && contextMask.length == 0) {
try (RepositoryConnection conn = getRepositoryConnection()) {
return conn.size();
}
@@ -165,9 +165,9 @@ final class RepositoryGraphImpl extends AbstractRepositoryGraphLike<Triple> impl
@Override
public Stream<RDF4JTriple> stream(final BlankNodeOrIRI subject, final IRI predicate, final RDFTerm object) {
- final Resource subj = (Resource) rdf4jTermFactory.asValue(subject);
- final org.eclipse.rdf4j.model.IRI pred = (org.eclipse.rdf4j.model.IRI) rdf4jTermFactory.asValue(predicate);
- final Value obj = rdf4jTermFactory.asValue(object);
+ final Resource subj = (Resource) getRdf4jTermFactory().asValue(subject);
+ final org.eclipse.rdf4j.model.IRI pred = (org.eclipse.rdf4j.model.IRI) getRdf4jTermFactory().asValue(predicate);
+ final Value obj = getRdf4jTermFactory().asValue(object);
// NOTE: We can't do the usual try..with closing of the
// RepositoryConnection here as it will have to be closed outside
@@ -175,7 +175,7 @@ final class RepositoryGraphImpl extends AbstractRepositoryGraphLike<Triple> impl
final RepositoryConnection conn = getRepositoryConnection();
Stream<RDF4JTriple> stream = null;
try {
- final RepositoryResult<Statement> statements = conn.getStatements(subj, pred, obj, includeInferred, contextMask);
+ final RepositoryResult<Statement> statements = conn.getStatements(subj, pred, obj, getIncludeInferred(), contextMask);
// NOTE: Iterations.stream should close RepositoryResult as long as
// our caller closes the stream
stream = Iterations.stream(statements).map(this::asTripleLike);
(commons-rdf) 01/22: Fix Checkstyle errors
Posted by gg...@apache.org.
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
commit 69fc0f8830b97e8f046cf262f3f3a29bb8591b9f
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Aug 18 15:12:55 2024 -0400
Fix Checkstyle errors
---
.../src/main/java/org/apache/commons/rdf/experimental/package-info.java | 2 +-
.../java/org/apache/commons/rdf/jena/experimental/package-info.java | 2 +-
.../org/apache/commons/rdf/jsonldjava/experimental/package-info.java | 2 +-
.../src/main/java/org/apache/commons/rdf/jsonldjava/package-info.java | 2 +-
.../java/org/apache/commons/rdf/rdf4j/experimental/package-info.java | 2 +-
.../java/org/apache/commons/rdf/simple/experimental/package-info.java | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/commons-rdf-api/src/main/java/org/apache/commons/rdf/experimental/package-info.java b/commons-rdf-api/src/main/java/org/apache/commons/rdf/experimental/package-info.java
index 1f0fb222..67a0d6c8 100644
--- a/commons-rdf-api/src/main/java/org/apache/commons/rdf/experimental/package-info.java
+++ b/commons-rdf-api/src/main/java/org/apache/commons/rdf/experimental/package-info.java
@@ -31,4 +31,4 @@
* {@link org.apache.commons.rdf.api.Dataset}.</li>
* </ul>
*/
-package org.apache.commons.rdf.experimental;
\ No newline at end of file
+package org.apache.commons.rdf.experimental;
diff --git a/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/experimental/package-info.java b/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/experimental/package-info.java
index 55430379..c432a507 100644
--- a/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/experimental/package-info.java
+++ b/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/experimental/package-info.java
@@ -29,4 +29,4 @@
* {@link org.apache.commons.rdf.experimental.RDFParser}.</li>
* </ul>
*/
-package org.apache.commons.rdf.jena.experimental;
\ No newline at end of file
+package org.apache.commons.rdf.jena.experimental;
diff --git a/commons-rdf-jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/experimental/package-info.java b/commons-rdf-jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/experimental/package-info.java
index 2c7c25de..4619c186 100644
--- a/commons-rdf-jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/experimental/package-info.java
+++ b/commons-rdf-jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/experimental/package-info.java
@@ -29,4 +29,4 @@
* {@link org.apache.commons.rdf.experimental.RDFParser}.</li>
* </ul>
*/
-package org.apache.commons.rdf.jsonldjava.experimental;
\ No newline at end of file
+package org.apache.commons.rdf.jsonldjava.experimental;
diff --git a/commons-rdf-jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/package-info.java b/commons-rdf-jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/package-info.java
index c1a75a9e..f1aaa520 100644
--- a/commons-rdf-jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/package-info.java
+++ b/commons-rdf-jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/package-info.java
@@ -24,4 +24,4 @@
* @see org.apache.commons.rdf.jsonldjava.JsonLdUnionGraph
* @see org.apache.commons.rdf.jsonldjava.JsonLdDataset
*/
-package org.apache.commons.rdf.jsonldjava;
\ No newline at end of file
+package org.apache.commons.rdf.jsonldjava;
diff --git a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/experimental/package-info.java b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/experimental/package-info.java
index 8145610b..bed4f0d9 100644
--- a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/experimental/package-info.java
+++ b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/experimental/package-info.java
@@ -29,4 +29,4 @@
* {@link org.apache.commons.rdf.experimental.RDFParser}.</li>
* </ul>
*/
-package org.apache.commons.rdf.rdf4j.experimental;
\ No newline at end of file
+package org.apache.commons.rdf.rdf4j.experimental;
diff --git a/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/experimental/package-info.java b/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/experimental/package-info.java
index 45ce8d21..029b58b7 100644
--- a/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/experimental/package-info.java
+++ b/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/experimental/package-info.java
@@ -29,4 +29,4 @@
* of {@link org.apache.commons.rdf.experimental.RDFParser}.</li>
* </ul>
*/
-package org.apache.commons.rdf.simple.experimental;
\ No newline at end of file
+package org.apache.commons.rdf.simple.experimental;
(commons-rdf) 07/22: Fix Checkstyle error
Posted by gg...@apache.org.
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
commit 5cc615b2969a3a98f0baebccd11ac05b6b0b44e6
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Aug 18 15:21:20 2024 -0400
Fix Checkstyle error
NewlineAtEndOfFile: File does not end with a newline
---
.../src/main/java/org/apache/commons/rdf/rdf4j/impl/BlankNodeImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/BlankNodeImpl.java b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/BlankNodeImpl.java
index 2e50e2bd..8809462b 100644
--- a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/BlankNodeImpl.java
+++ b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/BlankNodeImpl.java
@@ -94,4 +94,4 @@ final class BlankNodeImpl extends AbstractRDFTerm<BNode> implements RDF4JBlankNo
final UUID uuid = new UUID(saltUUIDmost, saltUUIDleast);
return "urn:uuid:" + uuid + "#" + value.getID();
}
-}
\ No newline at end of file
+}
(commons-rdf) 02/22: Fix Checkstyle errors
Posted by gg...@apache.org.
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
commit c410302da6b278847a8378937ec4b3678c2347d4
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Aug 18 15:14:42 2024 -0400
Fix Checkstyle errors
No tabs
---
.../java/org/apache/commons/rdf/api/RDFTerm.java | 72 +++++++++++-----------
1 file changed, 36 insertions(+), 36 deletions(-)
diff --git a/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/RDFTerm.java b/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/RDFTerm.java
index 2ab2f1f2..7a28bc2e 100644
--- a/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/RDFTerm.java
+++ b/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/RDFTerm.java
@@ -53,48 +53,48 @@ package org.apache.commons.rdf.api;
public interface RDFTerm {
/**
- * Check it this RDFTerm is equal to another RDFTerm.
- * <p>
- * If this object is an {@link IRI}, equality is checked using
- * {@link IRI#equals(Object)}, or if this object is a {@link BlankNode},
- * equality is checked using {@link BlankNode#equals(Object)}, or if this
- * object is a {@link Literal}, equality is checked using
- * {@link Literal#equals(Object)}.
- * <p>
- * Implementations MUST also override {@link #hashCode()} so that two equal
- * Literals produce the same hash code.
- *
- * @see IRI#equals(Object)
- * @see BlankNode#equals(Object)
- * @see Literal#equals(Object)
- *
- * @param other
- * Another object
- * @return true if other is a RDFTerm and is equal to this
- */
+ * Check it this RDFTerm is equal to another RDFTerm.
+ * <p>
+ * If this object is an {@link IRI}, equality is checked using
+ * {@link IRI#equals(Object)}, or if this object is a {@link BlankNode},
+ * equality is checked using {@link BlankNode#equals(Object)}, or if this
+ * object is a {@link Literal}, equality is checked using
+ * {@link Literal#equals(Object)}.
+ * <p>
+ * Implementations MUST also override {@link #hashCode()} so that two equal
+ * Literals produce the same hash code.
+ *
+ * @see IRI#equals(Object)
+ * @see BlankNode#equals(Object)
+ * @see Literal#equals(Object)
+ *
+ * @param other
+ * Another object
+ * @return true if other is a RDFTerm and is equal to this
+ */
@Override
boolean equals(Object other);
- /**
- * Calculate a hash code for this RDFTerm.
- * <p>
- * As an {@link RDFTerm} is <em>immutable</em>, this method will always
- * return the same hashCode over the lifetime of this object.
- * <p>
- * This method MUST be implemented in conjunction with
- * {@link #equals(Object)} so that two equal RDFTerm produce the same hash
- * code.
- *
- * @see IRI#hashCode()
- * @see Literal#hashCode()
- * @see BlankNode#hashCode()
- *
- * @return a hash code value for this RDFTerm.
- */
+ /**
+ * Calculate a hash code for this RDFTerm.
+ * <p>
+ * As an {@link RDFTerm} is <em>immutable</em>, this method will always
+ * return the same hashCode over the lifetime of this object.
+ * <p>
+ * This method MUST be implemented in conjunction with
+ * {@link #equals(Object)} so that two equal RDFTerm produce the same hash
+ * code.
+ *
+ * @see IRI#hashCode()
+ * @see Literal#hashCode()
+ * @see BlankNode#hashCode()
+ *
+ * @return a hash code value for this RDFTerm.
+ */
@Override
int hashCode();
- /**
+ /**
* Return the term serialised as specified by the RDF-1.1 N-Triples
* Canonical form.
*
(commons-rdf) 03/22: Fix Checkstyle errors
Posted by gg...@apache.org.
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
commit 1e9bab8f28ecc10c58c2d2ea78690430d51aead0
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Aug 18 15:16:36 2024 -0400
Fix Checkstyle errors
---
.../main/java/org/apache/commons/rdf/api/W3CRDFSyntax.java | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/W3CRDFSyntax.java b/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/W3CRDFSyntax.java
index f74ad7b0..835aef20 100644
--- a/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/W3CRDFSyntax.java
+++ b/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/W3CRDFSyntax.java
@@ -45,7 +45,7 @@ class W3CRDFSyntax implements RDFSyntax {
* IRI representing a <a href="https://www.w3.org/ns/formats/">W3C RDF
* format</a>.
*/
- private final static class FormatIRI implements IRI {
+ private static final class FormatIRI implements IRI {
private static final String BASE = "http://www.w3.org/ns/formats/";
private final String format;
@@ -86,7 +86,13 @@ class W3CRDFSyntax implements RDFSyntax {
}
}
- static final RDFSyntax JSONLD, TURTLE, NQUADS, NTRIPLES, RDFA, RDFXML, TRIG;
+ static final RDFSyntax JSONLD;
+ static final RDFSyntax TURTLE;
+ static final RDFSyntax NQUADS;
+ static final RDFSyntax NTRIPLES;
+ static final RDFSyntax RDFA;
+ static final RDFSyntax RDFXML;
+ static final RDFSyntax TRIG;
static final Set<RDFSyntax> syntaxes;
static {
@@ -200,4 +206,4 @@ class W3CRDFSyntax implements RDFSyntax {
return title;
}
-}
\ No newline at end of file
+}
(commons-rdf) 14/22: Fix Checkstyle errors
Posted by gg...@apache.org.
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
commit 3e3935e7dfc1c1dd7996f156240933237a545cfb
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Aug 18 15:31:02 2024 -0400
Fix Checkstyle errors
---
.../java/org/apache/commons/rdf/rdf4j/experimental/RDF4JParser.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/experimental/RDF4JParser.java b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/experimental/RDF4JParser.java
index da0fe2c9..37cea4a6 100644
--- a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/experimental/RDF4JParser.java
+++ b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/experimental/RDF4JParser.java
@@ -57,7 +57,7 @@ import org.eclipse.rdf4j.rio.helpers.AbstractRDFHandler;
*/
public class RDF4JParser extends AbstractRDFParser<RDF4JParser> {
- private final static class AddToModel extends AbstractRDFHandler {
+ private static final class AddToModel extends AbstractRDFHandler {
private final Model model;
public AddToModel(final Model model) {
(commons-rdf) 04/22: Fix Checkstyle errors
Posted by gg...@apache.org.
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
commit 068ca66c19a9640eec659f5058e3716f36bd6bb1
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Aug 18 15:18:59 2024 -0400
Fix Checkstyle errors
---
.../src/main/java/org/apache/commons/rdf/simple/DatasetImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/DatasetImpl.java b/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/DatasetImpl.java
index 1f13062e..d0bfb75b 100644
--- a/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/DatasetImpl.java
+++ b/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/DatasetImpl.java
@@ -135,7 +135,7 @@ final class DatasetImpl implements Dataset {
final IRI iri = (IRI) object;
return factory.createIRI(iri.getIRIString());
}
- if (!(object instanceof Literal) || (object instanceof LiteralImpl)) {
+ if (!(object instanceof Literal) || object instanceof LiteralImpl) {
throw new IllegalArgumentException("Not a BlankNode, IRI or Literal: " + object);
}
final Literal literal = (Literal) object;
(commons-rdf) 20/22: Fix Checkstyle error
Posted by gg...@apache.org.
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
commit c72c8febc51129ceb2c4176222333e9f6ff12b3c
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Aug 18 15:47:31 2024 -0400
Fix Checkstyle error
NewlineAtEndOfFile: File does not end with a newline
---
.../src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdRDF.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons-rdf-jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdRDF.java b/commons-rdf-jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdRDF.java
index 302b3f8f..3c9fc2cc 100644
--- a/commons-rdf-jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdRDF.java
+++ b/commons-rdf-jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdRDF.java
@@ -315,4 +315,4 @@ public final class JsonLdRDF implements RDF {
return new JsonLdTripleImpl(createJsonLdQuad(null, subject, predicate, object), bnodePrefix);
}
-}
\ No newline at end of file
+}
(commons-rdf) 08/22: Fix Checkstyle error
Posted by gg...@apache.org.
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
commit 304db65b81940b9d38b5589370191fa6906fb4a5
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Aug 18 15:21:24 2024 -0400
Fix Checkstyle error
NewlineAtEndOfFile: File does not end with a newline
---
.../java/org/apache/commons/rdf/rdf4j/impl/ConvertedStatements.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/ConvertedStatements.java b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/ConvertedStatements.java
index b9add7b9..ae2e81a2 100644
--- a/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/ConvertedStatements.java
+++ b/commons-rdf-rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/ConvertedStatements.java
@@ -68,4 +68,4 @@ final class ConvertedStatements<T> implements ClosableIterable<T> {
return new ConvertedIterator();
}
-}
\ No newline at end of file
+}