public static ConceptDescription createConceptDescription(Resource concept){
String name = OntologyHelper.getPublicName(concept);
String description = OntologyHelper.getDescription(concept);
String uri = concept.getURI();
ConceptDescription conceptDescription = new ConceptDescription();
conceptDescription.setName(name);
conceptDescription.setDescription(description);
conceptDescription.setUri(uri);
conceptDescription.setType(concept.canAs(OntClass.class)?
TypeOf.CLASS:concept.canAs(Individual.class)?
TypeOf.INSTANCE:
TypeOf.OTHER);
return conceptDescription;