//get a certain DatatypeProperty
RDFProperty propertyType = individual.getOWLModel()
.getRDFProperty("http://www.w3.org/1999/02/22-rdf-syntax-ns#type");
Object oType = individual.getPropertyValue(propertyType);
if(oType instanceof DefaultOWLNamedClass){
DefaultOWLNamedClass type = (DefaultOWLNamedClass)oType;
//return a name without the namespace prefixes
parentType = type.getLocalName();
}else{
parentType="";
}
}
return parentType;