diff options
Diffstat (limited to 'test/uk/ac/ox/cs/pagoda/tester')
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/tester/PagodaTester.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/uk/ac/ox/cs/pagoda/tester/PagodaTester.java b/test/uk/ac/ox/cs/pagoda/tester/PagodaTester.java index 51b41f9..7dacdac 100644 --- a/test/uk/ac/ox/cs/pagoda/tester/PagodaTester.java +++ b/test/uk/ac/ox/cs/pagoda/tester/PagodaTester.java | |||
| @@ -1,17 +1,17 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.tester; | 1 | package uk.ac.ox.cs.pagoda.tester; |
| 2 | 2 | ||
| 3 | import java.io.File; | ||
| 4 | import java.io.FileNotFoundException; | ||
| 5 | import java.io.IOException; | ||
| 6 | import java.util.Scanner; | ||
| 7 | |||
| 8 | import uk.ac.ox.cs.pagoda.query.AnswerTuple; | 3 | import uk.ac.ox.cs.pagoda.query.AnswerTuple; |
| 9 | import uk.ac.ox.cs.pagoda.query.AnswerTuples; | 4 | import uk.ac.ox.cs.pagoda.query.AnswerTuples; |
| 10 | import uk.ac.ox.cs.pagoda.reasoner.*; | 5 | import uk.ac.ox.cs.pagoda.reasoner.QueryReasoner; |
| 11 | import uk.ac.ox.cs.pagoda.util.Properties; | 6 | import uk.ac.ox.cs.pagoda.util.Properties; |
| 12 | import uk.ac.ox.cs.pagoda.util.Timer; | 7 | import uk.ac.ox.cs.pagoda.util.Timer; |
| 13 | import uk.ac.ox.cs.pagoda.util.Utility; | 8 | import uk.ac.ox.cs.pagoda.util.Utility; |
| 14 | 9 | ||
| 10 | import java.io.File; | ||
| 11 | import java.io.FileNotFoundException; | ||
| 12 | import java.io.IOException; | ||
| 13 | import java.util.Scanner; | ||
| 14 | |||
| 15 | public class PagodaTester { | 15 | public class PagodaTester { |
| 16 | 16 | ||
| 17 | // public static final String onto_dir = "/media/RDFData/yzhou/"; | 17 | // public static final String onto_dir = "/media/RDFData/yzhou/"; |
| @@ -93,7 +93,7 @@ public class PagodaTester { | |||
| 93 | public static void main(String... args) { | 93 | public static void main(String... args) { |
| 94 | if (args.length == 0) { | 94 | if (args.length == 0) { |
| 95 | // args = new String[] {test_tbox, test_abox, test_query}; | 95 | // args = new String[] {test_tbox, test_abox, test_query}; |
| 96 | args = new String[] {lubm_tbox, lubm_abox, lubm_query}; | 96 | args = new String[] {lubm_tbox, lubm_abox, lubm_query, "/home/alessandro/Desktop/lubm1.ans"}; |
| 97 | // args = new String[] {uobm_tbox, uobm_abox, uobm_query.replace(".sparql", "_all_pagoda.sparql")}; | 97 | // args = new String[] {uobm_tbox, uobm_abox, uobm_query.replace(".sparql", "_all_pagoda.sparql")}; |
| 98 | // args = new String[] {fly, "null", fly_query.replace(".sparql", "_pellet.sparql") }; | 98 | // args = new String[] {fly, "null", fly_query.replace(".sparql", "_pellet.sparql") }; |
| 99 | // args = new String[] {dbpedia_tbox, dbpedia_abox, dbpedia_query}; | 99 | // args = new String[] {dbpedia_tbox, dbpedia_abox, dbpedia_query}; |
| @@ -145,7 +145,7 @@ public class PagodaTester { | |||
| 145 | 145 | ||
| 146 | if (properties.getQueryPath() != null) | 146 | if (properties.getQueryPath() != null) |
| 147 | for (String queryFile: properties.getQueryPath().split(";")) | 147 | for (String queryFile: properties.getQueryPath().split(";")) |
| 148 | pagoda.evaluate(pagoda.getQueryManager().collectQueryRecords(queryFile), properties.getAnswerPath()); | 148 | pagoda.evaluate(pagoda.getQueryManager().collectQueryRecords(queryFile)); |
| 149 | 149 | ||
| 150 | if (properties.getShellMode()) | 150 | if (properties.getShellMode()) |
| 151 | try { | 151 | try { |
