Skip to content
This repository was archived by the owner on May 16, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ jobs:
java-version: 1.8
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Install metafacture-core 5.7.1
run: |
cd ..
git clone https://github.com/metafacture/metafacture-core.git
cd metafacture-core
git checkout metafacture-core-5.7.1
./gradlew publishToMavenLocal
cd -
- name: Build with Gradle
run: ./gradlew build
env:
Expand Down
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ subprojects {
'jquery': '3.3.1-1',
'junit_jupiter': '5.8.2',
'junit_platform': '1.4.2',
'metafacture': '5.7.0',
'metafacture': '5.7.1',
'mockito': '2.27.0',
'requirejs': '2.3.6',
'slf4j': '1.7.21',
Expand All @@ -54,7 +54,7 @@ subprojects {
}

group = 'org.metafacture'
version = '0.8.0-SNAPSHOT'
version = '0.7.1'

apply plugin: 'checkstyle'
apply plugin: 'eclipse'
Expand All @@ -72,6 +72,7 @@ subprojects {
repositories {
mavenCentral()
maven githubPackage.invoke("metafacture")
mavenLocal()
}

dependencies {
Expand Down
11 changes: 10 additions & 1 deletion metafix/src/main/java/org/metafacture/metafix/maps/RdfMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import org.apache.jena.riot.RDFDataMgr;
import org.apache.jena.shared.PropertyNotFoundException;

import java.io.Closeable;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;
Expand All @@ -56,7 +57,7 @@
*
* @see org.metafacture.metamorph.maps.FileMap
*/
public final class RdfMap extends AbstractReadOnlyMap<String, String> {
public final class RdfMap extends AbstractReadOnlyMap<String, String> implements Closeable {

public static final String SELECT = "select";
public static final String TARGET = "target";
Expand Down Expand Up @@ -394,6 +395,14 @@ private String read(final String url) throws IOException {
return conn.getURL().toString();
}

@Override
public void close() {
map.clear();
if (model != null) {
model.close();
}
}

private enum Select {
SUBJECT, OBJECT, DEFAULT
}
Expand Down