}else{
return new String("string");
}
}
}else if(val instanceof OWLNaryBooleanClassExpression){
LogicExpression exp = new LogicExpression(LogicExpression.EMPTY);
if(val instanceof OWLObjectIntersectionOf || val instanceof OWLDataIntersectionOf)
exp.setExpressionType(ILogicExpression.AND);
else if(val instanceof OWLObjectUnionOf || val instanceof OWLDataUnionOf)
exp.setExpressionType(ILogicExpression.OR);
for(OWLClassExpression e: ((OWLNaryBooleanClassExpression)val).getOperands()){
exp.add(convertOWLObject(e));
}
return exp;
}else if(val instanceof OWLObjectComplementOf){
LogicExpression exp = new LogicExpression(LogicExpression.NOT);
exp.add(convertOWLObject(((OWLObjectComplementOf) val).getOperand()));
return exp;
}else if(val instanceof OWLRestriction){
return new ORestriction((OWLRestriction)val,getOntology());
}