diff options
| author | Federico Igne <federico.igne@cs.ox.ac.uk> | 2022-05-10 18:17:06 +0100 |
|---|---|---|
| committer | Federico Igne <federico.igne@cs.ox.ac.uk> | 2022-05-11 12:34:47 +0100 |
| commit | 17bd9beaf7f358a44e5bf36a5855fe6727d506dc (patch) | |
| tree | 47e9310a0cff869d9ec017dcb2c81876407782c8 /test/uk/ac/ox/cs/pagoda/tester/OWLTester.java | |
| parent | 8651164cd632a5db310b457ce32d4fbc97bdc41c (diff) | |
| download | ACQuA-17bd9beaf7f358a44e5bf36a5855fe6727d506dc.tar.gz ACQuA-17bd9beaf7f358a44e5bf36a5855fe6727d506dc.zip | |
[pagoda] Move project to Scala
This commit includes a few changes:
- The repository still uses Maven to manage dependency but it is now a
Scala project.
- The code has been ported from OWLAPI 3.4.10 to 5.1.20
- A proof of concept program using both RSAComb and PAGOdA has been
added.
Diffstat (limited to 'test/uk/ac/ox/cs/pagoda/tester/OWLTester.java')
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/tester/OWLTester.java | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/test/uk/ac/ox/cs/pagoda/tester/OWLTester.java b/test/uk/ac/ox/cs/pagoda/tester/OWLTester.java deleted file mode 100644 index 5bc1a9b..0000000 --- a/test/uk/ac/ox/cs/pagoda/tester/OWLTester.java +++ /dev/null | |||
| @@ -1,29 +0,0 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.tester; | ||
| 2 | |||
| 3 | import org.semanticweb.owlapi.model.OWLOntology; | ||
| 4 | import org.semanticweb.owlapi.model.OWLOntologyCreationException; | ||
| 5 | import org.semanticweb.owlapi.model.OWLOntologyManager; | ||
| 6 | |||
| 7 | import uk.ac.ox.cs.pagoda.owl.OWLHelper; | ||
| 8 | |||
| 9 | public class OWLTester { | ||
| 10 | |||
| 11 | public static void main(String[] args) throws OWLOntologyCreationException { | ||
| 12 | // OWLOntology onto = OWLHelper.loadOntology("dbpedia_imported.owl"); | ||
| 13 | OWLOntology onto = OWLHelper.loadOntology("reactome_imported.owl"); | ||
| 14 | OWLOntologyManager manager = onto.getOWLOntologyManager(); | ||
| 15 | // OWLOntology data = manager.loadOntology(IRI.create("file:/media/krr-nas-share/Yujiao/ontologies/bio2rdf/reactome/graph\ sampling/sample_1_new.ttl")); | ||
| 16 | // System.out.println("data: " + data.getAxiomCount() + " " + data.getABoxAxioms(true).size()); | ||
| 17 | for (OWLOntology t: manager.getOntologies()) { | ||
| 18 | System.out.println(t.getOntologyID()); | ||
| 19 | System.out.println(t.getAxiomCount() + " " + onto.getABoxAxioms(true).size()); | ||
| 20 | } | ||
| 21 | System.out.println("In closure: " + onto.getImportsClosure().size()); | ||
| 22 | for (OWLOntology t: onto.getImportsClosure()) | ||
| 23 | System.out.println(t.getOntologyID()); | ||
| 24 | |||
| 25 | System.out.println(onto.getAxiomCount() + " " + onto.getABoxAxioms(true).size()); | ||
| 26 | } | ||
| 27 | |||
| 28 | } | ||
| 29 | |||
