aboutsummaryrefslogtreecommitdiff
path: root/src/uk/ac/ox/cs/pagoda/reasoner/full
diff options
context:
space:
mode:
authorRncLsn <rnc.lsn@gmail.com>2015-07-03 19:09:31 +0100
committerRncLsn <rnc.lsn@gmail.com>2015-07-03 19:09:31 +0100
commit39b60d4225f5efa4e0287a2c6ce69d90391c69db (patch)
tree18c5b05726f39baa4d3ca8b228e24ad1f0182f2a /src/uk/ac/ox/cs/pagoda/reasoner/full
parent133dab6e21f263df2baca913d3d0b7a4fd152d08 (diff)
downloadACQuA-39b60d4225f5efa4e0287a2c6ce69d90391c69db.tar.gz
ACQuA-39b60d4225f5efa4e0287a2c6ce69d90391c69db.zip
Many little changes.
Diffstat (limited to 'src/uk/ac/ox/cs/pagoda/reasoner/full')
-rw-r--r--src/uk/ac/ox/cs/pagoda/reasoner/full/HermitChecker.java27
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());