Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
don-vip committed Jan 19, 2024
1 parent 89c0867 commit df8a6e4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 17
java-version: 21
- name: Cache SonarCloud packages
uses: actions/cache@v1
with:
Expand Down
24 changes: 12 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@

<groupId>com.github.donvip</groupId>
<artifactId>archscrap</artifactId>
<version>0.1.0-SNAPSHOT</version>
<version>0.2.0-SNAPSHOT</version>
<packaging>jar</packaging>

<name>archscrap</name>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<sonar.projectKey>don-vip_ArchScrap</sonar.projectKey>
<sonar.organization>don-vip</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
Expand All @@ -22,7 +22,7 @@
<dependency>
<groupId>org.eclipse.rdf4j</groupId>
<artifactId>rdf4j-bom</artifactId>
<version>4.0.3</version>
<version>4.3.8</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -33,28 +33,28 @@
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.18.0</version>
<version>2.22.1</version><!--$NO-MVN-MAN-VER$-->
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.18.0</version>
<version>2.22.1</version><!--$NO-MVN-MAN-VER$-->
</dependency>
<dependency>
<groupId>org.fusesource.jansi</groupId>
<artifactId>jansi</artifactId>
<version>2.4.0</version>
<version>2.4.1</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.15.1</version>
<version>1.17.2</version>
</dependency>
<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>2.6.1</version>
<version>2.7.2</version>
</dependency>
<dependency>
<groupId>jakarta.persistence</groupId>
Expand All @@ -64,7 +64,7 @@
<dependency>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-core</artifactId>
<version>6.1.0.Final</version>
<version>6.4.2.Final</version>
</dependency>
<dependency>
<groupId>com.github.heideltime</groupId>
Expand All @@ -74,12 +74,12 @@
<dependency>
<groupId>org.apache.uima</groupId>
<artifactId>uimaj-core</artifactId>
<version>2.11.0</version>
<version>3.5.0</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>5.2.2</version>
<version>5.2.5</version>
</dependency>
<dependency>
<groupId>org.eclipse.rdf4j</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.eclipse.rdf4j.common.iteration.Iterations;
import org.eclipse.rdf4j.query.Binding;
import org.eclipse.rdf4j.query.BindingSet;
import org.eclipse.rdf4j.query.QueryLanguage;
Expand Down Expand Up @@ -57,7 +56,8 @@ public static Author retrieveAuthorInfo(String author, Map<String, Author> prede
throw new IllegalArgumentException("Unexpected value: " + occupationQid);
};
if (query != null) {
List<BindingSet> results = Iterations.asList(sparqlConnection.prepareTupleQuery(QueryLanguage.SPARQL, query).evaluate());
List<BindingSet> results = sparqlConnection.prepareTupleQuery(QueryLanguage.SPARQL, query)
.evaluate().stream().toList();
if (results.size() != 1) {
LOGGER.info("Not exactly 1 author when looking for {} in Wikidata: {}", author, results);
} else {
Expand Down Expand Up @@ -183,7 +183,7 @@ protected static List<String> findInWikidata(RepositoryConnection sparqlConnecti
wdt:P1705 ?noms;
}
""".replace("$natures", natures).replace("$textualValue", textualValue));
List<BindingSet> results = Iterations.asList(tupleQuery.evaluate());
List<BindingSet> results = tupleQuery.evaluate().stream().toList();
if (results.isEmpty()) {
LOGGER.error("No name/surname found when looking for {} {} in Wikidata: {}", natures, textualValue, results);
return Collections.emptyList();
Expand Down

0 comments on commit df8a6e4

Please sign in to comment.