public void run() {
try {
for (SuperVertex vertex : main.getGraphModel().getSuperVertices()) {
Set<OWLClass> owlClasses = new HashSet<OWLClass>();
for (SimpleVertex simple : vertex.getSimpleVertices()) {
ConceptVertex conceptVertex = (ConceptVertex) simple;
owlClasses.add(conceptVertex.getConcept().getOWLClass());
}
OntologyManager.addEquivalentClasses(manager, ontology, owlClasses);
}
OntologyManager.saveResult(manager, ontology, file);
Save.this.main.info(String.format("The merged ontology is saved to %s", file.getAbsolutePath()));