diff options
| author | yzhou <yujiao.zhou@gmail.com> | 2015-04-21 22:45:35 +0100 |
|---|---|---|
| committer | yzhou <yujiao.zhou@gmail.com> | 2015-04-21 22:45:35 +0100 |
| commit | c0f5bdcdb29608532656c71c219680eccd4aad09 (patch) | |
| tree | 5f599adfe2e3f15a1d2b3f1cb8d0bf9ace59badd /src/uk/ac/ox/cs/pagoda/reasoner/MyQueryReasoner.java | |
| parent | c8a9fc67a3f6ed201d7c917e36128268587eabe5 (diff) | |
| download | ACQuA-c0f5bdcdb29608532656c71c219680eccd4aad09.tar.gz ACQuA-c0f5bdcdb29608532656c71c219680eccd4aad09.zip | |
fixed some bugs in windows server
Diffstat (limited to 'src/uk/ac/ox/cs/pagoda/reasoner/MyQueryReasoner.java')
| -rw-r--r-- | src/uk/ac/ox/cs/pagoda/reasoner/MyQueryReasoner.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/uk/ac/ox/cs/pagoda/reasoner/MyQueryReasoner.java b/src/uk/ac/ox/cs/pagoda/reasoner/MyQueryReasoner.java index 2c2feae..875dcdd 100644 --- a/src/uk/ac/ox/cs/pagoda/reasoner/MyQueryReasoner.java +++ b/src/uk/ac/ox/cs/pagoda/reasoner/MyQueryReasoner.java | |||
| @@ -85,7 +85,7 @@ public class MyQueryReasoner extends QueryReasoner { | |||
| 85 | } | 85 | } |
| 86 | 86 | ||
| 87 | ontology = o; | 87 | ontology = o; |
| 88 | program = new DatalogProgram(ontology, !forSemFacet); | 88 | program = new DatalogProgram(ontology, properties.getToClassify()); |
| 89 | // program.getLower().save(); | 89 | // program.getLower().save(); |
| 90 | // program.getUpper().save(); | 90 | // program.getUpper().save(); |
| 91 | // program.getGeneral().save(); | 91 | // program.getGeneral().save(); |
| @@ -275,11 +275,10 @@ public class MyQueryReasoner extends QueryReasoner { | |||
| 275 | rlAnswer = upperStore.evaluate(queryText, answerVariables); | 275 | rlAnswer = upperStore.evaluate(queryText, answerVariables); |
| 276 | Utility.logDebug(t.duration()); | 276 | Utility.logDebug(t.duration()); |
| 277 | queryRecord.updateUpperBoundAnswers(rlAnswer); | 277 | queryRecord.updateUpperBoundAnswers(rlAnswer); |
| 278 | rlAnswer.dispose(); | ||
| 279 | } finally { | 278 | } finally { |
| 280 | if (rlAnswer != null) rlAnswer.dispose(); | 279 | if (rlAnswer != null) rlAnswer.dispose(); |
| 280 | rlAnswer = null; | ||
| 281 | } | 281 | } |
| 282 | rlAnswer = null; | ||
| 283 | } | 282 | } |
| 284 | 283 | ||
| 285 | @Override | 284 | @Override |
| @@ -296,11 +295,11 @@ public class MyQueryReasoner extends QueryReasoner { | |||
| 296 | // queryRecord.saveRelevantOntology("fragment_query" + queryRecord.getQueryID() + ".owl"); | 295 | // queryRecord.saveRelevantOntology("fragment_query" + queryRecord.getQueryID() + ".owl"); |
| 297 | 296 | ||
| 298 | Timer t = new Timer(); | 297 | Timer t = new Timer(); |
| 299 | Checker summarisedChecker = new HermitSummaryFilter(queryRecord); | 298 | Checker summarisedChecker = new HermitSummaryFilter(queryRecord, properties.getToCallHermiT()); |
| 300 | int validNumber = summarisedChecker.check(queryRecord.getGapAnswers()); | 299 | int validNumber = summarisedChecker.check(queryRecord.getGapAnswers()); |
| 301 | summarisedChecker.dispose(); | 300 | summarisedChecker.dispose(); |
| 302 | Utility.logDebug("Total time for full reasoner: " + t.duration()); | 301 | Utility.logDebug("Total time for full reasoner: " + t.duration()); |
| 303 | if (!forSemFacet || validNumber == 0) { | 302 | if (validNumber == 0) { |
| 304 | queryRecord.markAsProcessed(); | 303 | queryRecord.markAsProcessed(); |
| 305 | Utility.logDebug("Difficulty of this query: " + queryRecord.getDifficulty()); | 304 | Utility.logDebug("Difficulty of this query: " + queryRecord.getDifficulty()); |
| 306 | } | 305 | } |
