diff options
| author | yzhou <yzhou@krr-linux.cs.ox.ac.uk> | 2015-05-02 10:59:32 +0100 |
|---|---|---|
| committer | yzhou <yzhou@krr-linux.cs.ox.ac.uk> | 2015-05-02 10:59:32 +0100 |
| commit | 58e6d87cb604702e7b307bad73c4fd42a694c3ec (patch) | |
| tree | a8072979fa6dd1c86ccf2fed62b371cc0e6482b9 /src/uk/ac/ox | |
| parent | d71035e6f10b3775191ad134d92f897044a592d8 (diff) | |
| download | ACQuA-58e6d87cb604702e7b307bad73c4fd42a694c3ec.tar.gz ACQuA-58e6d87cb604702e7b307bad73c4fd42a694c3ec.zip | |
removed debug output for ore compitition
to add log info, check Utility.java LOGS
Diffstat (limited to 'src/uk/ac/ox')
5 files changed, 12 insertions, 15 deletions
diff --git a/src/uk/ac/ox/cs/pagoda/multistage/Normalisation.java b/src/uk/ac/ox/cs/pagoda/multistage/Normalisation.java index d68d28e..4667747 100644 --- a/src/uk/ac/ox/cs/pagoda/multistage/Normalisation.java +++ b/src/uk/ac/ox/cs/pagoda/multistage/Normalisation.java | |||
| @@ -345,9 +345,6 @@ public class Normalisation { | |||
| 345 | 345 | ||
| 346 | builder.append("_exist"); | 346 | builder.append("_exist"); |
| 347 | 347 | ||
| 348 | if (builder.toString().contains("Lens_mount_")) | ||
| 349 | System.out.println(builder.toString()); | ||
| 350 | |||
| 351 | return builder.toString(); | 348 | return builder.toString(); |
| 352 | } | 349 | } |
| 353 | 350 | ||
diff --git a/src/uk/ac/ox/cs/pagoda/multistage/StageQueryEngine.java b/src/uk/ac/ox/cs/pagoda/multistage/StageQueryEngine.java index 33be5a6..5d2e0d1 100644 --- a/src/uk/ac/ox/cs/pagoda/multistage/StageQueryEngine.java +++ b/src/uk/ac/ox/cs/pagoda/multistage/StageQueryEngine.java | |||
| @@ -36,8 +36,8 @@ public abstract class StageQueryEngine extends BasicQueryEngine { | |||
| 36 | try { | 36 | try { |
| 37 | iter = evaluate(QueryRecord.botQueryText); | 37 | iter = evaluate(QueryRecord.botQueryText); |
| 38 | validMaterialisation = !iter.isValid(); | 38 | validMaterialisation = !iter.isValid(); |
| 39 | if (!validMaterialisation) | 39 | // if (!validMaterialisation) |
| 40 | outputAnswers(QueryRecord.botQueryText); | 40 | // outputAnswers(QueryRecord.botQueryText); |
| 41 | } finally { | 41 | } finally { |
| 42 | if (iter != null) iter.dispose(); | 42 | if (iter != null) iter.dispose(); |
| 43 | } | 43 | } |
diff --git a/src/uk/ac/ox/cs/pagoda/reasoner/QueryReasoner.java b/src/uk/ac/ox/cs/pagoda/reasoner/QueryReasoner.java index d5796ad..f2b7251 100644 --- a/src/uk/ac/ox/cs/pagoda/reasoner/QueryReasoner.java +++ b/src/uk/ac/ox/cs/pagoda/reasoner/QueryReasoner.java | |||
| @@ -35,7 +35,7 @@ public abstract class QueryReasoner { | |||
| 35 | pagoda.loadOntology(ontology); | 35 | pagoda.loadOntology(ontology); |
| 36 | pagoda.importData(p.getDataPath()); | 36 | pagoda.importData(p.getDataPath()); |
| 37 | if (pagoda.preprocess()) { | 37 | if (pagoda.preprocess()) { |
| 38 | System.out.println("The ontology is consistent!"); | 38 | Utility.logInfo("The ontology is consistent!"); |
| 39 | return pagoda; | 39 | return pagoda; |
| 40 | } | 40 | } |
| 41 | else { | 41 | else { |
diff --git a/src/uk/ac/ox/cs/pagoda/tracking/TrackingRuleEncoderDisjVar1.java b/src/uk/ac/ox/cs/pagoda/tracking/TrackingRuleEncoderDisjVar1.java index 0d6b0c6..37116d4 100644 --- a/src/uk/ac/ox/cs/pagoda/tracking/TrackingRuleEncoderDisjVar1.java +++ b/src/uk/ac/ox/cs/pagoda/tracking/TrackingRuleEncoderDisjVar1.java | |||
| @@ -428,10 +428,6 @@ public class TrackingRuleEncoderDisjVar1 extends TrackingRuleEncoderWithGap { | |||
| 428 | for (int i = 0; i < clause.getBodyLength(); ++i) | 428 | for (int i = 0; i < clause.getBodyLength(); ++i) |
| 429 | newBodyAtoms[index++] = selectBodyAtoms[selectIndex++] = clause.getBodyAtom(i); | 429 | newBodyAtoms[index++] = selectBodyAtoms[selectIndex++] = clause.getBodyAtom(i); |
| 430 | 430 | ||
| 431 | for (int i = 0; i < newBodyAtoms.length; ++i) | ||
| 432 | if (newBodyAtoms[i] == null) { | ||
| 433 | System.out.println(clause); | ||
| 434 | } | ||
| 435 | for (Atom atom: newHeadAtoms) { | 431 | for (Atom atom: newHeadAtoms) { |
| 436 | newClause = DLClause.create(new Atom[] {atom}, newBodyAtoms); | 432 | newClause = DLClause.create(new Atom[] {atom}, newBodyAtoms); |
| 437 | trackingClauses.add(newClause); | 433 | trackingClauses.add(newClause); |
diff --git a/src/uk/ac/ox/cs/pagoda/util/Utility.java b/src/uk/ac/ox/cs/pagoda/util/Utility.java index 6982bb1..cb05de4 100644 --- a/src/uk/ac/ox/cs/pagoda/util/Utility.java +++ b/src/uk/ac/ox/cs/pagoda/util/Utility.java | |||
| @@ -26,7 +26,7 @@ import org.semanticweb.HermiT.model.Atom; | |||
| 26 | 26 | ||
| 27 | public class Utility { | 27 | public class Utility { |
| 28 | 28 | ||
| 29 | private static final Logger LOGS = Logger.getLogger(""); | 29 | private static final Logger LOGS = null; // Logger.getLogger(""); |
| 30 | 30 | ||
| 31 | public static final String JAVA_FILE_SEPARATOR = "/"; | 31 | public static final String JAVA_FILE_SEPARATOR = "/"; |
| 32 | public static final String FILE_SEPARATOR = System.getProperty("file.separator"); | 32 | public static final String FILE_SEPARATOR = System.getProperty("file.separator"); |
| @@ -215,19 +215,23 @@ public class Utility { | |||
| 215 | } | 215 | } |
| 216 | 216 | ||
| 217 | public static void logInfo(Object... messages) { | 217 | public static void logInfo(Object... messages) { |
| 218 | LOGS.info(getLogMessage(messages)); | 218 | if (LOGS != null) |
| 219 | LOGS.info(getLogMessage(messages)); | ||
| 219 | } | 220 | } |
| 220 | 221 | ||
| 221 | public static void logTrace(Object... messages) { | 222 | public static void logTrace(Object... messages) { |
| 222 | LOGS.trace(getLogMessage(messages)); | 223 | if (LOGS != null) |
| 224 | LOGS.trace(getLogMessage(messages)); | ||
| 223 | } | 225 | } |
| 224 | 226 | ||
| 225 | public static void logDebug(Object... messages) { | 227 | public static void logDebug(Object... messages) { |
| 226 | LOGS.debug(getLogMessage(messages)); | 228 | if (LOGS != null) |
| 229 | LOGS.debug(getLogMessage(messages)); | ||
| 227 | } | 230 | } |
| 228 | 231 | ||
| 229 | public static void logError(Object... messages) { | 232 | public static void logError(Object... messages) { |
| 230 | LOGS.error(getLogMessage(messages)); | 233 | if (LOGS != null) |
| 234 | LOGS.error(getLogMessage(messages)); | ||
| 231 | } | 235 | } |
| 232 | 236 | ||
| 233 | public static void initialise() { | 237 | public static void initialise() { |
