diff options
Diffstat (limited to 'src/uk/ac/ox/cs/pagoda/reasoner/QueryReasoner.java')
| -rw-r--r-- | src/uk/ac/ox/cs/pagoda/reasoner/QueryReasoner.java | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/uk/ac/ox/cs/pagoda/reasoner/QueryReasoner.java b/src/uk/ac/ox/cs/pagoda/reasoner/QueryReasoner.java index 962a78f..eab6a1b 100644 --- a/src/uk/ac/ox/cs/pagoda/reasoner/QueryReasoner.java +++ b/src/uk/ac/ox/cs/pagoda/reasoner/QueryReasoner.java | |||
| @@ -26,10 +26,10 @@ public abstract class QueryReasoner extends Disposable { | |||
| 26 | private static final boolean DEFAULT_MULTI_STAGES = true; | 26 | private static final boolean DEFAULT_MULTI_STAGES = true; |
| 27 | private static final boolean DEFAULT_EQUALITIES = true; | 27 | private static final boolean DEFAULT_EQUALITIES = true; |
| 28 | public boolean fullReasoner = this instanceof MyQueryReasoner; | 28 | public boolean fullReasoner = this instanceof MyQueryReasoner; |
| 29 | protected StringBuilder importedData = new StringBuilder(); | ||
| 30 | // protected boolean forSemFacet = false; | 29 | // protected boolean forSemFacet = false; |
| 31 | PagodaProperties properties; | 30 | PagodaProperties properties; |
| 32 | BufferedWriter answerWriter = null; | 31 | BufferedWriter answerWriter = null; |
| 32 | private StringBuilder importedData = new StringBuilder(); | ||
| 33 | private QueryManager m_queryManager = new QueryManager(); | 33 | private QueryManager m_queryManager = new QueryManager(); |
| 34 | 34 | ||
| 35 | public static QueryReasoner getInstance(PagodaProperties p) { | 35 | public static QueryReasoner getInstance(PagodaProperties p) { |
| @@ -208,10 +208,6 @@ public abstract class QueryReasoner extends Disposable { | |||
| 208 | queryRecords.stream().forEach(record -> record.dispose()); | 208 | queryRecords.stream().forEach(record -> record.dispose()); |
| 209 | } | 209 | } |
| 210 | 210 | ||
| 211 | // public void evaluate(Collection<QueryRecord> queryRecords) { | ||
| 212 | // evaluate(queryRecords); | ||
| 213 | // } | ||
| 214 | |||
| 215 | @Override | 211 | @Override |
| 216 | public void dispose() { | 212 | public void dispose() { |
| 217 | super.dispose(); | 213 | super.dispose(); |
| @@ -225,11 +221,19 @@ public abstract class QueryReasoner extends Disposable { | |||
| 225 | // Utility.cleanup(); | 221 | // Utility.cleanup(); |
| 226 | } | 222 | } |
| 227 | 223 | ||
| 224 | // public void evaluate(Collection<QueryRecord> queryRecords) { | ||
| 225 | // evaluate(queryRecords); | ||
| 226 | // } | ||
| 227 | |||
| 228 | public QueryManager getQueryManager() { | 228 | public QueryManager getQueryManager() { |
| 229 | if(isDisposed()) throw new DisposedException(); | 229 | if(isDisposed()) throw new DisposedException(); |
| 230 | return m_queryManager; | 230 | return m_queryManager; |
| 231 | } | 231 | } |
| 232 | 232 | ||
| 233 | protected String getImportedData() { | ||
| 234 | return importedData.toString(); | ||
| 235 | } | ||
| 236 | |||
| 233 | private void importDataDirectory(File file) { | 237 | private void importDataDirectory(File file) { |
| 234 | for(File child : file.listFiles()) | 238 | for(File child : file.listFiles()) |
| 235 | if(child.isFile()) importDataFile(child); | 239 | if(child.isFile()) importDataFile(child); |
