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.java30
1 files changed, 17 insertions, 13 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 9574845..0362fc2 100644
--- a/src/uk/ac/ox/cs/pagoda/reasoner/full/HermitChecker.java
+++ b/src/uk/ac/ox/cs/pagoda/reasoner/full/HermitChecker.java
@@ -106,19 +106,23 @@ public class HermitChecker extends Checker {
106 Map<Variable, Term> sub = answerTuple.getAssignment(answerVariable[1]); 106 Map<Variable, Term> sub = answerTuple.getAssignment(answerVariable[1]);
107 Set<OWLAxiom> toCheckAxioms = qGraph.getAssertions(sub); 107 Set<OWLAxiom> toCheckAxioms = qGraph.getAssertions(sub);
108 108
109// // TODO complete 109 // TODO complete
110// Set<OWLAxiom> toCheckExistentialAxioms = qGraph.getExistentialAxioms(sub); 110 Set<OWLAxiom> toCheckExistentialAxioms = qGraph.getExistentialAxioms(sub);
111// 111
112// // TODO possibly inefficient 112 // TODO possibly inefficient
113// for(OWLAxiom subclassAxiom : toCheckExistentialAxioms) { 113 for(OWLAxiom subclassAxiom : toCheckExistentialAxioms) {
114// Utility.logInfo("Checking consistency of ontology union " + subclassAxiom); 114 Utility.logDebug("Checking consistency of ontology union " + subclassAxiom);
115// ontology.getOWLOntologyManager().addAxiom(ontology, subclassAxiom); 115 ontology.getOWLOntologyManager().addAxiom(ontology, subclassAxiom);
116// if(hermit.isConsistent()) { 116 hermit.flush();
117// Utility.logDebug("@TIME to check one tuple: " + t.duration()); 117 if(hermit.isConsistent()) {
118// return false; 118 ontology.getOWLOntologyManager().removeAxiom(ontology, subclassAxiom);
119// } 119 hermit.flush();
120// ontology.getOWLOntologyManager().removeAxiom(ontology, subclassAxiom); 120 Utility.logDebug("@TIME to check one tuple: " + t.duration());
121// } 121 return false;
122 }
123 ontology.getOWLOntologyManager().removeAxiom(ontology, subclassAxiom);
124 hermit.flush();
125 }
122 126
123 127
124// for (OWLAxiom axiom: toCheckAxioms) System.out.println(axiom.toString()); 128// for (OWLAxiom axiom: toCheckAxioms) System.out.println(axiom.toString());