diff options
| author | RncLsn <rnc.lsn@gmail.com> | 2015-07-08 18:53:00 +0100 |
|---|---|---|
| committer | RncLsn <rnc.lsn@gmail.com> | 2015-07-08 18:53:00 +0100 |
| commit | 8241a535a55508b6c504f4f0b426612fe95d15a5 (patch) | |
| tree | 720a6572bbdf303b9ddfe69dd461b6640b36e6a0 /src/uk/ac/ox/cs/pagoda/reasoner/full | |
| parent | 77dd8849f8e79d324c8e12cd699912f284a8fdba (diff) | |
| download | ACQuA-8241a535a55508b6c504f4f0b426612fe95d15a5.tar.gz ACQuA-8241a535a55508b6c504f4f0b426612fe95d15a5.zip | |
Internalisation: added condition for existential variables (classes HermitChecker and QueryGraph).
Answer dependencies: found bug, trying to solve; excluding dependency analysis solve the problem.
Diffstat (limited to 'src/uk/ac/ox/cs/pagoda/reasoner/full')
| -rw-r--r-- | src/uk/ac/ox/cs/pagoda/reasoner/full/HermitChecker.java | 30 |
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()); |
