diff options
Diffstat (limited to 'src/main/scala/rsacomb/RSA.scala')
| -rw-r--r-- | src/main/scala/rsacomb/RSA.scala | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main/scala/rsacomb/RSA.scala b/src/main/scala/rsacomb/RSA.scala new file mode 100644 index 0000000..229255c --- /dev/null +++ b/src/main/scala/rsacomb/RSA.scala | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | package rsacomb | ||
| 2 | |||
| 3 | /* Java imports */ | ||
| 4 | import java.io.File | ||
| 5 | |||
| 6 | import org.semanticweb.owlapi.apibinding.OWLManager | ||
| 7 | import org.semanticweb.owlapi.model.OWLOntology | ||
| 8 | |||
| 9 | object RSA extends RSAOntology { | ||
| 10 | |||
| 11 | // TODO: move this somewhere else... maybe an OntoUtils class or something. | ||
| 12 | def loadOntology(onto: File ): OWLOntology = { | ||
| 13 | val manager = OWLManager.createOWLOntologyManager() | ||
| 14 | manager.loadOntologyFromOntologyDocument(onto) | ||
| 15 | } | ||
| 16 | |||
| 17 | } // object RSA | ||
