diff options
Diffstat (limited to 'test/uk/ac/ox/cs/pagoda/test_units/PagodaDBPedia.java')
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/test_units/PagodaDBPedia.java | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/uk/ac/ox/cs/pagoda/test_units/PagodaDBPedia.java b/test/uk/ac/ox/cs/pagoda/test_units/PagodaDBPedia.java new file mode 100644 index 0000000..aaf542e --- /dev/null +++ b/test/uk/ac/ox/cs/pagoda/test_units/PagodaDBPedia.java | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.test_units; | ||
| 2 | |||
| 3 | import static org.junit.Assert.fail; | ||
| 4 | |||
| 5 | import org.junit.Test; | ||
| 6 | |||
| 7 | import uk.ac.ox.cs.pagoda.tester.PagodaTester; | ||
| 8 | import uk.ac.ox.cs.pagoda.tester.Statistics; | ||
| 9 | import uk.ac.ox.cs.pagoda.util.Utility; | ||
| 10 | |||
| 11 | import java.io.IOException; | ||
| 12 | |||
| 13 | public class PagodaDBPedia { | ||
| 14 | |||
| 15 | @Test | ||
| 16 | public void test() throws IOException { | ||
| 17 | PagodaTester.main( | ||
| 18 | PagodaTester.onto_dir + "dbpedia/integratedOntology-all-in-one-minus-datatype.owl", | ||
| 19 | PagodaTester.onto_dir + "dbpedia/data/dbpedia-minus-datatype-new.ttl", | ||
| 20 | PagodaTester.onto_dir + "dbpedia/atomic.sparql" | ||
| 21 | ); | ||
| 22 | |||
| 23 | Statistics stat = new Statistics("output/log4j.log"); | ||
| 24 | String diff = stat.diff("results-backup/benchmark/dbpedia.out"); | ||
| 25 | Utility.copyFile("output/log4j.log", "results-backup/current/dbpedia.out"); | ||
| 26 | if (!diff.isEmpty()) | ||
| 27 | fail(diff); | ||
| 28 | } | ||
| 29 | |||
| 30 | } | ||
