This repository was archived by the owner on May 16, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed
metafix/src/main/java/org/metafacture/metafix/maps Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 13
13
java-version : 1.8
14
14
- name : Grant execute permission for gradlew
15
15
run : chmod +x gradlew
16
+ - name : Install metafacture-core 5.7.1
17
+ run : |
18
+ cd ..
19
+ git clone https://github.com/metafacture/metafacture-core.git
20
+ cd metafacture-core
21
+ git checkout metafacture-core-5.7.1
22
+ ./gradlew publishToMavenLocal
23
+ cd -
16
24
- name : Build with Gradle
17
25
run : ./gradlew build
18
26
env :
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ subprojects {
44
44
' jquery' : ' 3.3.1-1' ,
45
45
' junit_jupiter' : ' 5.8.2' ,
46
46
' junit_platform' : ' 1.4.2' ,
47
- ' metafacture' : ' 5.7.0 ' ,
47
+ ' metafacture' : ' 5.7.1 ' ,
48
48
' mockito' : ' 2.27.0' ,
49
49
' requirejs' : ' 2.3.6' ,
50
50
' slf4j' : ' 1.7.21' ,
@@ -54,7 +54,7 @@ subprojects {
54
54
}
55
55
56
56
group = ' org.metafacture'
57
- version = ' 0.8.0-SNAPSHOT '
57
+ version = ' 0.7.1 '
58
58
59
59
apply plugin : ' checkstyle'
60
60
apply plugin : ' eclipse'
@@ -72,6 +72,7 @@ subprojects {
72
72
repositories {
73
73
mavenCentral()
74
74
maven githubPackage. invoke(" metafacture" )
75
+ mavenLocal()
75
76
}
76
77
77
78
dependencies {
Original file line number Diff line number Diff line change 31
31
import org .apache .jena .riot .RDFDataMgr ;
32
32
import org .apache .jena .shared .PropertyNotFoundException ;
33
33
34
+ import java .io .Closeable ;
34
35
import java .io .IOException ;
35
36
import java .net .HttpURLConnection ;
36
37
import java .net .URL ;
56
57
*
57
58
* @see org.metafacture.metamorph.maps.FileMap
58
59
*/
59
- public final class RdfMap extends AbstractReadOnlyMap <String , String > {
60
+ public final class RdfMap extends AbstractReadOnlyMap <String , String > implements Closeable {
60
61
61
62
public static final String SELECT = "select" ;
62
63
public static final String TARGET = "target" ;
@@ -394,6 +395,14 @@ private String read(final String url) throws IOException {
394
395
return conn .getURL ().toString ();
395
396
}
396
397
398
+ @ Override
399
+ public void close () {
400
+ map .clear ();
401
+ if (model != null ) {
402
+ model .close ();
403
+ }
404
+ }
405
+
397
406
private enum Select {
398
407
SUBJECT , OBJECT , DEFAULT
399
408
}
You can’t perform that action at this time.
0 commit comments