diff options
| author | yzhou <yujiao.zhou@gmail.com> | 2015-04-21 12:04:27 +0100 |
|---|---|---|
| committer | yzhou <yujiao.zhou@gmail.com> | 2015-04-21 12:04:27 +0100 |
| commit | c8a9fc67a3f6ed201d7c917e36128268587eabe5 (patch) | |
| tree | 0853945c47ab352f332ad858521453e52606e8b8 /src/uk/ac/ox/cs/pagoda/reasoner/light/RDFoxQueryEngine.java | |
| parent | 79629afd88293b668811a9795ac618d6c2f0dd0b (diff) | |
| download | ACQuA-c8a9fc67a3f6ed201d7c917e36128268587eabe5.tar.gz ACQuA-c8a9fc67a3f6ed201d7c917e36128268587eabe5.zip | |
fixed a bug in simpleETL -- closing a FileOutputStream
Diffstat (limited to 'src/uk/ac/ox/cs/pagoda/reasoner/light/RDFoxQueryEngine.java')
| -rw-r--r-- | src/uk/ac/ox/cs/pagoda/reasoner/light/RDFoxQueryEngine.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/uk/ac/ox/cs/pagoda/reasoner/light/RDFoxQueryEngine.java b/src/uk/ac/ox/cs/pagoda/reasoner/light/RDFoxQueryEngine.java index 30771ab..70d0cc9 100644 --- a/src/uk/ac/ox/cs/pagoda/reasoner/light/RDFoxQueryEngine.java +++ b/src/uk/ac/ox/cs/pagoda/reasoner/light/RDFoxQueryEngine.java | |||
| @@ -36,8 +36,9 @@ public abstract class RDFoxQueryEngine implements QueryEngine { | |||
| 36 | DataStore store = getDataStore(); | 36 | DataStore store = getDataStore(); |
| 37 | try { | 37 | try { |
| 38 | long oldTripleCount = store.getTriplesCount(), tripleCount; | 38 | long oldTripleCount = store.getTriplesCount(), tripleCount; |
| 39 | for (String file: importedFile.split(QueryReasoner.ImportDataFileSeparator)) | 39 | for (String file: importedFile.split(QueryReasoner.ImportDataFileSeparator)) { |
| 40 | store.importTurtleFile(new File(file), prefixes); | 40 | store.importTurtleFile(new File(file), prefixes); |
| 41 | } | ||
| 41 | tripleCount = store.getTriplesCount(); | 42 | tripleCount = store.getTriplesCount(); |
| 42 | Utility.logDebug(name + " store after importing " + fileName + ": " + tripleCount + " (" + (tripleCount - oldTripleCount) + " new)"); | 43 | Utility.logDebug(name + " store after importing " + fileName + ": " + tripleCount + " (" + (tripleCount - oldTripleCount) + " new)"); |
| 43 | store.clearRulesAndMakeFactsExplicit(); | 44 | store.clearRulesAndMakeFactsExplicit(); |
