@Test
public void test() throws IOException {
Configuration configuration = new DefaultConfiguration(User.class, Project.class, Gender.class, Various.class);
MiniRepository repository = new MiniRepository();
SchemaGen schemaGen = new SchemaGen();
schemaGen.addExportNamespace(TEST.NS);
schemaGen.setConfiguration(configuration);
schemaGen.setRepository(repository);
schemaGen.export();
CloseableIterator<STMT> stmts = repository.findStatements(null, CORE.enumOrdinal, null, null, false);
try {
System.out.println(stmts.next());
System.out.println(stmts.next());
assertFalse(stmts.hasNext());
} finally {
stmts.close();
}
Session session = SessionUtil.openSession(repository, OWLClass.class.getPackage(), RDFSClass.class.getPackage());
session.findInstances(RDFSClass.class);
}