final OntologyManager firstOntologyManager = new OntologyManager(firstFile, this);
final IOntologyGraph[] firstOntologyGraph = {null};
Thread firstGraphThread = new Thread(new Runnable() {
public void run() {
try {
firstOntologyGraph[0] = firstOntologyManager.load(new ClassAnnotationVisitor(), new PropertyVisitor());
} catch (Throwable e1) {
Main.this.handleException(e1);
}
}
});
firstGraphThread.start();
final OntologyManager secondOntologyManager = new OntologyManager(secondFile, this);
log(String.format("Loading %s...", secondFile.getName()));
IOntologyGraph secondOntologyGraph = secondOntologyManager.load(new ClassAnnotationVisitor(), new PropertyVisitor());
try {
firstGraphThread.join();
} catch (InterruptedException e) {
// ignore;
}