diff options
| author | RncLsn <rnc.lsn@gmail.com> | 2015-05-13 19:22:07 +0100 |
|---|---|---|
| committer | RncLsn <rnc.lsn@gmail.com> | 2015-05-13 19:22:07 +0100 |
| commit | 6fd8b21066852cbc21e247e7cf0a2f423ebc1658 (patch) | |
| tree | 77b5d7567d0a81cb9593af075f472908f848e445 /src/uk/ac/ox/cs/pagoda/reasoner/ConsistencyManager.java | |
| parent | d0c209780ac209ba20de1ef2ba68551dd3321b3c (diff) | |
| download | ACQuA-6fd8b21066852cbc21e247e7cf0a2f423ebc1658.tar.gz ACQuA-6fd8b21066852cbc21e247e7cf0a2f423ebc1658.zip | |
Fast implementation of all the other things to get something working, but it doesn't.
Diffstat (limited to 'src/uk/ac/ox/cs/pagoda/reasoner/ConsistencyManager.java')
| -rw-r--r-- | src/uk/ac/ox/cs/pagoda/reasoner/ConsistencyManager.java | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/src/uk/ac/ox/cs/pagoda/reasoner/ConsistencyManager.java b/src/uk/ac/ox/cs/pagoda/reasoner/ConsistencyManager.java index 9b862ce..d179d14 100644 --- a/src/uk/ac/ox/cs/pagoda/reasoner/ConsistencyManager.java +++ b/src/uk/ac/ox/cs/pagoda/reasoner/ConsistencyManager.java | |||
| @@ -1,7 +1,5 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.reasoner; | 1 | package uk.ac.ox.cs.pagoda.reasoner; |
| 2 | 2 | ||
| 3 | import java.util.LinkedList; | ||
| 4 | |||
| 5 | import org.semanticweb.HermiT.model.Atom; | 3 | import org.semanticweb.HermiT.model.Atom; |
| 6 | import org.semanticweb.HermiT.model.AtomicConcept; | 4 | import org.semanticweb.HermiT.model.AtomicConcept; |
| 7 | import org.semanticweb.HermiT.model.DLClause; | 5 | import org.semanticweb.HermiT.model.DLClause; |
| @@ -9,7 +7,9 @@ import org.semanticweb.HermiT.model.Variable; | |||
| 9 | import org.semanticweb.owlapi.model.OWLOntology; | 7 | import org.semanticweb.owlapi.model.OWLOntology; |
| 10 | import org.semanticweb.owlapi.model.OWLOntologyCreationException; | 8 | import org.semanticweb.owlapi.model.OWLOntologyCreationException; |
| 11 | import org.semanticweb.owlapi.model.OWLOntologyManager; | 9 | import org.semanticweb.owlapi.model.OWLOntologyManager; |
| 12 | 10 | import uk.ac.ox.cs.JRDFox.JRDFStoreException; | |
| 11 | import uk.ac.ox.cs.JRDFox.store.DataStore; | ||
| 12 | import uk.ac.ox.cs.JRDFox.store.DataStore.UpdateType; | ||
| 13 | import uk.ac.ox.cs.pagoda.hermit.DLClauseHelper; | 13 | import uk.ac.ox.cs.pagoda.hermit.DLClauseHelper; |
| 14 | import uk.ac.ox.cs.pagoda.query.AnswerTuples; | 14 | import uk.ac.ox.cs.pagoda.query.AnswerTuples; |
| 15 | import uk.ac.ox.cs.pagoda.query.QueryManager; | 15 | import uk.ac.ox.cs.pagoda.query.QueryManager; |
| @@ -21,9 +21,8 @@ import uk.ac.ox.cs.pagoda.tracking.QueryTracker; | |||
| 21 | import uk.ac.ox.cs.pagoda.tracking.TrackingRuleEncoder; | 21 | import uk.ac.ox.cs.pagoda.tracking.TrackingRuleEncoder; |
| 22 | import uk.ac.ox.cs.pagoda.util.Timer; | 22 | import uk.ac.ox.cs.pagoda.util.Timer; |
| 23 | import uk.ac.ox.cs.pagoda.util.Utility; | 23 | import uk.ac.ox.cs.pagoda.util.Utility; |
| 24 | import uk.ac.ox.cs.JRDFox.JRDFStoreException; | 24 | |
| 25 | import uk.ac.ox.cs.JRDFox.store.DataStore; | 25 | import java.util.LinkedList; |
| 26 | import uk.ac.ox.cs.JRDFox.store.DataStore.UpdateType; | ||
| 27 | 26 | ||
| 28 | public class ConsistencyManager { | 27 | public class ConsistencyManager { |
| 29 | 28 | ||
| @@ -85,6 +84,23 @@ public class ConsistencyManager { | |||
| 85 | } | 84 | } |
| 86 | return false; | 85 | return false; |
| 87 | } | 86 | } |
| 87 | |||
| 88 | boolean checkSkolemUpper() { | ||
| 89 | if (m_reasoner.limitedSkolemUpperStore != null) { | ||
| 90 | AnswerTuples tuples = null; | ||
| 91 | try { | ||
| 92 | tuples = m_reasoner.limitedSkolemUpperStore.evaluate(fullQueryRecord.getQueryText(), fullQueryRecord.getAnswerVariables()); | ||
| 93 | if (!tuples.isValid()) { | ||
| 94 | Utility.logInfo("There are no contradictions derived in the limited-skolem upper bound materialisation."); | ||
| 95 | return satisfiability(t.duration()); | ||
| 96 | } | ||
| 97 | } | ||
| 98 | finally { | ||
| 99 | if (tuples != null) tuples.dispose(); | ||
| 100 | } | ||
| 101 | } | ||
| 102 | return false; | ||
| 103 | } | ||
| 88 | 104 | ||
| 89 | boolean check() { | 105 | boolean check() { |
| 90 | // if (!checkRLLowerBound()) return false; | 106 | // if (!checkRLLowerBound()) return false; |
| @@ -288,5 +304,6 @@ public class ConsistencyManager { | |||
| 288 | public QueryRecord[] getQueryRecords() { | 304 | public QueryRecord[] getQueryRecords() { |
| 289 | return botQueryRecords; | 305 | return botQueryRecords; |
| 290 | } | 306 | } |
| 291 | 307 | ||
| 308 | |||
| 292 | } | 309 | } |
