OWLOntologyManager mgr = OWLManager.createOWLOntologyManager();
// FIXME : awful, remove as soon as we can
URL u = getClass().getResource("/rmi.owl");
OWLOntologyIRIMapper mapper1, mapper2;
try {
mapper1 = new SimpleIRIMapper(
IRI.create("http://ontologydesignpatterns.org/ont/iks/kres/rmi.owl"), IRI.create(u));
mapper2 = new SimpleIRIMapper(
IRI.create("http://ontologydesignpatterns.org/ont/iks/kres/rmi_config.owl"),
IRI.create(getClass().getResource("/META-INF/conf/rmi_config.owl")));
// mapper = new AutoIRIMapper(new File(u.toURI()), true);
mgr.addIRIMapper(mapper1);
mgr.addIRIMapper(mapper2);