NetworkBuilder { public EpsilonNetwork buildNetwork() { InputStream inStream; EpsilonNetwork epsilonNetwork = new EpsilonNetwork(); try { if (file.exists()) { inStream = new FileInputStream(file); OntModel ontModelNoInf = ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM); ontModelNoInf.read(inStream, null, "TURTLE"); buildClassNodes(ontModelNoInf, epsilonNetwork); addSubClassLinks(ontModelNoInf, epsilonNetwork); buildPropertyNodes(ontModelNoInf, epsilonNetwork); addSubPropertyLinks(ontModelNoInf, epsilonNetwork); addDomainLinks(ontModelNoInf, epsilonNetwork); addRangeLinks(ontModelNoInf, epsilonNetwork); addInverseOfLinks(ontModelNoInf, epsilonNetwork); addSymmetricOfLinks(ontModelNoInf, epsilonNetwork); } } catch (FileNotFoundException e) { e.printStackTrace(); } return epsilonNetwork; } NetworkBuilder(File file); EpsilonNetwork buildNetwork();  }
@Test public void testBuilding(){ NetworkBuilder builder = new NetworkBuilder(new File("resources/support_schema.owl")); EpsilonNetwork epsilonNetwork = builder.buildNetwork(); Assert.assertNotNull(epsilonNetwork); }