diff options
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.java | 27 |
1 files changed, 13 insertions, 14 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 cfae88b..9574845 100644 --- a/src/uk/ac/ox/cs/pagoda/reasoner/full/HermitChecker.java +++ b/src/uk/ac/ox/cs/pagoda/reasoner/full/HermitChecker.java | |||
| @@ -99,7 +99,6 @@ public class HermitChecker extends Checker { | |||
| 99 | 99 | ||
| 100 | if(!toCheck) return false; | 100 | if(!toCheck) return false; |
| 101 | ++noOfCalls; | 101 | ++noOfCalls; |
| 102 | |||
| 103 | if(tag != 0) return tag == 1; | 102 | if(tag != 0) return tag == 1; |
| 104 | if(hermit == null) initialiseReasoner(); | 103 | if(hermit == null) initialiseReasoner(); |
| 105 | 104 | ||
| @@ -107,19 +106,19 @@ public class HermitChecker extends Checker { | |||
| 107 | Map<Variable, Term> sub = answerTuple.getAssignment(answerVariable[1]); | 106 | Map<Variable, Term> sub = answerTuple.getAssignment(answerVariable[1]); |
| 108 | Set<OWLAxiom> toCheckAxioms = qGraph.getAssertions(sub); | 107 | Set<OWLAxiom> toCheckAxioms = qGraph.getAssertions(sub); |
| 109 | 108 | ||
| 110 | // TODO complete | 109 | // // TODO complete |
| 111 | Set<OWLAxiom> toCheckExistentialAxioms = qGraph.getExistentialAxioms(); | 110 | // Set<OWLAxiom> toCheckExistentialAxioms = qGraph.getExistentialAxioms(sub); |
| 112 | 111 | // | |
| 113 | // TODO possibly inefficient | 112 | // // TODO possibly inefficient |
| 114 | for(OWLAxiom subclassAxiom : toCheckExistentialAxioms) { | 113 | // for(OWLAxiom subclassAxiom : toCheckExistentialAxioms) { |
| 115 | Utility.logDebug("Checking consistency of ontology union " + subclassAxiom); | 114 | // Utility.logInfo("Checking consistency of ontology union " + subclassAxiom); |
| 116 | ontology.getOWLOntologyManager().addAxiom(ontology, subclassAxiom); | 115 | // ontology.getOWLOntologyManager().addAxiom(ontology, subclassAxiom); |
| 117 | if(hermit.isConsistent()) { | 116 | // if(hermit.isConsistent()) { |
| 118 | Utility.logDebug("@TIME to check one tuple: " + t.duration()); | 117 | // Utility.logDebug("@TIME to check one tuple: " + t.duration()); |
| 119 | return false; | 118 | // return false; |
| 120 | } | 119 | // } |
| 121 | ontology.getOWLOntologyManager().removeAxiom(ontology, subclassAxiom); | 120 | // ontology.getOWLOntologyManager().removeAxiom(ontology, subclassAxiom); |
| 122 | } | 121 | // } |
| 123 | 122 | ||
| 124 | 123 | ||
| 125 | // for (OWLAxiom axiom: toCheckAxioms) System.out.println(axiom.toString()); | 124 | // for (OWLAxiom axiom: toCheckAxioms) System.out.println(axiom.toString()); |
