diff options
Diffstat (limited to 'test/uk/ac/ox/cs/pagoda/tester/ORETester.java')
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/tester/ORETester.java | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/test/uk/ac/ox/cs/pagoda/tester/ORETester.java b/test/uk/ac/ox/cs/pagoda/tester/ORETester.java index 1092d6f..ae58ba9 100644 --- a/test/uk/ac/ox/cs/pagoda/tester/ORETester.java +++ b/test/uk/ac/ox/cs/pagoda/tester/ORETester.java | |||
| @@ -1,9 +1,7 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.tester; | 1 | package uk.ac.ox.cs.pagoda.tester; |
| 2 | 2 | ||
| 3 | import org.semanticweb.owlapi.model.OWLOntology; | ||
| 4 | |||
| 5 | import uk.ac.ox.cs.pagoda.owl.OWLHelper; | ||
| 6 | import uk.ac.ox.cs.pagoda.reasoner.QueryReasoner; | 3 | import uk.ac.ox.cs.pagoda.reasoner.QueryReasoner; |
| 4 | import uk.ac.ox.cs.pagoda.util.Properties; | ||
| 7 | 5 | ||
| 8 | public class ORETester { | 6 | public class ORETester { |
| 9 | 7 | ||
| @@ -13,17 +11,11 @@ public class ORETester { | |||
| 13 | // args = new String[] { "/home/yzhou/krr-nas-share/Yujiao/ontologies/ORE2014/DL/wine_nodatatype.owl" }; | 11 | // args = new String[] { "/home/yzhou/krr-nas-share/Yujiao/ontologies/ORE2014/DL/wine_nodatatype.owl" }; |
| 14 | 12 | ||
| 15 | // args = new String[] { "/home/yzhou/krr-nas-share/Yujiao/ontologies/ORE2014/EL/b7700fe1-103b-4b32-a21c-f6604a763ba5_t-cell.owl" }; | 13 | // args = new String[] { "/home/yzhou/krr-nas-share/Yujiao/ontologies/ORE2014/EL/b7700fe1-103b-4b32-a21c-f6604a763ba5_t-cell.owl" }; |
| 16 | args = new String[] { "/home/yzhou/krr-nas-share/Yujiao/ontologies/ORE2014/EL/baa29363-f93c-4285-827e-0e2380c82efc_cations.n3" }; | 14 | // args = new String[] { "/home/yzhou/krr-nas-share/Yujiao/ontologies/ORE2014/EL/baa29363-f93c-4285-827e-0e2380c82efc_cations.n3" }; |
| 17 | |||
| 18 | 15 | ||
| 19 | OWLOntology ontology = OWLHelper.loadOntology(args[0]); | 16 | Properties properties = new Properties("config/sys.conf"); |
| 20 | QueryReasoner pagoda = QueryReasoner.getInstance(ontology); | 17 | QueryReasoner pagoda = QueryReasoner.getInstance(properties); |
| 21 | System.out.println(pagoda); | 18 | pagoda.dispose(); |
| 22 | pagoda.loadOntology(ontology); | ||
| 23 | if (pagoda.preprocess()) | ||
| 24 | System.out.println("The ontology is consistent!"); | ||
| 25 | else | ||
| 26 | System.out.println("The ontology is inconsistent!"); | ||
| 27 | } | 19 | } |
| 28 | 20 | ||
| 29 | } | 21 | } |
