for(PClass pc : list){
if(pc.isAnonymous()){
if(pc.getResource() instanceof OWLRestriction){
exp.add((pc instanceof IRestriction)?pc:new PRestriction((OWLRestriction)pc.getResource(),getOntology()));
}else if(pc.getResource() instanceof OWLIntersectionClass){
exp.addAll(pc.getLogicExpression());
}else if(pc.getResource() instanceof OWLLogicalClass){
exp.add(pc.getLogicExpression());
}
}
}