Skip to content

Commit

Permalink
Upgrade to Java 17 and latest KOMMA/eniLINK snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
kenwenzel committed Feb 5, 2024
1 parent 442a60d commit 51c0498
Show file tree
Hide file tree
Showing 15 changed files with 34 additions and 234 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jobs:
environment: sonatype

steps:
# Checks-out the repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v2
- name: Check out the repo
uses: actions/checkout@v4.1.1

# Sets up JDK
- name: Set up JDK 11
uses: actions/setup-java@v3.4.0
- name: Set up JDK
uses: actions/setup-java@v4.0.0
with:
distribution: 'temurin'
java-version: '11'
java-version: '17'

# Runs the Maven build
- name: Build and deploy with Maven
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1

# Sets up JDK
- name: Set up JDK 11
uses: actions/setup-java@v3.4.0
- name: Set up JDK
uses: actions/setup-java@v4.0.0
with:
distribution: 'temurin'
java-version: '11'
java-version: '17'

# Runs the Maven build
- name: Build server with Maven
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ jobs:
runs-on: ubuntu-latest

steps:
# Checks-out the repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v2
- name: Check out the repo
uses: actions/checkout@v4.1.1

# Sets up JDK
- name: Set up JDK 11
uses: actions/setup-java@v3.4.0
- name: Set up JDK
uses: actions/setup-java@v4.0.0
with:
distribution: 'temurin'
java-version: '11'
java-version: '17'

# Runs the Maven build
- name: Build and verify with Maven
Expand Down
6 changes: 3 additions & 3 deletions bundles/io.github.linkedfactory.core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
<dependency>
<groupId>org.osgi</groupId>
<artifactId>osgi.core</artifactId>
<version>6.0.0</version>
<version>7.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>osgi.cmpn</artifactId>
<version>6.0.0</version>
<version>7.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -151,7 +151,7 @@
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>30.1.1-jre</version>
<version>32.1.3-jre</version>
</dependency>
<dependency>
<groupId>net.enilink.komma</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,5 @@ public class ModelModule extends KommaModule {
{
addBehaviour(KvinMemoryModelSet.class);
addBehaviour(KvinPersistentModelSet.class);
addBehaviour(RepositoryManagerModelSet.class);
addBehaviour(Rdf4jModelSet.class);
}

}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import net.enilink.komma.core.URI;
import net.enilink.komma.core.URIs;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.parquet.avro.AvroParquetReader;
import org.apache.parquet.filter2.compat.FilterCompat;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
import org.junit.Assert;
import org.junit.Test;

public class Rdf4jModelSetTest {
public class KvinModelSetTest {
@Test
public void testBasicConfig() {
// create configuration and a model set factory
KommaModule module = ModelPlugin.createModelSetModule(getClass().getClassLoader());
IModelSetFactory factory = Guice.createInjector(new ModelSetModule(module)).getInstance(IModelSetFactory.class);

IGraph config = new LinkedHashGraph();
ModelUtil.readData(getClass().getResourceAsStream("/rdf4j-modelset-config.ttl"), null,
ModelUtil.readData(getClass().getResourceAsStream("/kvin-modelset-config.ttl"), null,
"text/turtle", new IDataVisitor<Object>() {
@Override
public Object visitBegin() {
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@prefix sb: <http://www.openrdf.org/config/sail/base#>.
@prefix models: <http://enilink.net/vocab/komma/models#> .

<urn:enilink:data> a models:Rdf4jModelSet ;
<urn:enilink:data> a models:RepositoryModelSet ;
models:repository <test:repo> .

<test:repo> a rep:Repository ;
Expand Down
4 changes: 2 additions & 2 deletions bundles/io.github.linkedfactory.service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
<dependency>
<groupId>org.osgi</groupId>
<artifactId>osgi.core</artifactId>
<version>6.0.0</version>
<version>7.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>osgi.cmpn</artifactId>
<version>6.0.0</version>
<version>7.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM adoptopenjdk:11-jre-hotspot
FROM eclipse-temurin:17-alpine
EXPOSE 8080

# Add linkedfactory-pod server
Expand Down
Loading

0 comments on commit 51c0498

Please sign in to comment.