semanticTypeFilter.add(SemanticType.getSemanticType(""+semTypeList.getModel().getElementAt(i)));
}
try {
IOntology ont = POntology.createOntology(URI.create(defaultURI+ontologyFile.getName()),ontologyFile.getParentFile());
export(term,rootFilter,semanticTypeFilter,ont);
ont.save();
} catch (Exception e) {
console.append("Error: "+e.getMessage()+"\n");
JOptionPane.showMessageDialog(main,"Problems encounted during export","Error",JOptionPane.ERROR_MESSAGE);
e.printStackTrace();
}