ontologyPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder
(BorderFactory.createLineBorder(Color.LIGHT_GRAY), "Ontology Selection"),
BorderFactory.createEmptyBorder(3, 3, 3, 3)));
ModelManager model = this.getWorkspace().getEditorKit().getModelManager();
OWLModelManager owlModel = null;
if(model instanceof OWLModelManager){
owlModel = (OWLModelManager) model;
}
Set<OWLOntology> ontologies = owlModel.getActiveOntologies();
for(OWLOntology ont: ontologies){
String uri = ont.getOntologyID().toString();
// String uri = ont.getURI().toString();
JCheckBox checkBox = new JCheckBox(uri);
checkBox.setName(uri);