aboutsummaryrefslogtreecommitdiff
path: root/src/uk/ac/ox/cs/pagoda/reasoner/full/HermitChecker.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/uk/ac/ox/cs/pagoda/reasoner/full/HermitChecker.java')
-rw-r--r--src/uk/ac/ox/cs/pagoda/reasoner/full/HermitChecker.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/uk/ac/ox/cs/pagoda/reasoner/full/HermitChecker.java b/src/uk/ac/ox/cs/pagoda/reasoner/full/HermitChecker.java
index 6f5d363..97925fc 100644
--- a/src/uk/ac/ox/cs/pagoda/reasoner/full/HermitChecker.java
+++ b/src/uk/ac/ox/cs/pagoda/reasoner/full/HermitChecker.java
@@ -43,6 +43,7 @@ public class HermitChecker implements Checker {
43 protected OWLOntology ontology; 43 protected OWLOntology ontology;
44 protected QueryRecord record; 44 protected QueryRecord record;
45 protected QueryGraph qGraph = null; 45 protected QueryGraph qGraph = null;
46 boolean toCheck = true;
46 47
47 public HermitChecker(Checker checker) { 48 public HermitChecker(Checker checker) {
48 if (checker instanceof HermitChecker) { 49 if (checker instanceof HermitChecker) {
@@ -58,12 +59,13 @@ public class HermitChecker implements Checker {
58 hermit = new Reasoner(ontology); 59 hermit = new Reasoner(ontology);
59 } 60 }
60 61
61 public HermitChecker(OWLOntology ontology, QueryRecord record) { 62 public HermitChecker(OWLOntology ontology, QueryRecord record, boolean toCheck) {
62 this.ontology = ontology; 63 this.ontology = ontology;
63 queryText = record.getQueryText(); 64 queryText = record.getQueryText();
64 answerVariable = record.getVariables(); 65 answerVariable = record.getVariables();
65 queryClause = record.getClause(); 66 queryClause = record.getClause();
66// this.record = record; 67// this.record = record;
68 this.toCheck = toCheck;
67 } 69 }
68 70
69 public HermitChecker(OWLOntology ontology, String queryText) { 71 public HermitChecker(OWLOntology ontology, String queryText) {
@@ -198,6 +200,8 @@ public class HermitChecker implements Checker {
198 200
199 @Override 201 @Override
200 public boolean check(AnswerTuple answerTuple) { 202 public boolean check(AnswerTuple answerTuple) {
203 if (!toCheck) return false;
204
201 if (hermit == null) initialiseReasoner(); 205 if (hermit == null) initialiseReasoner();
202 if (tag != 0) return tag == 1; 206 if (tag != 0) return tag == 1;
203 ++counter; 207 ++counter;