private Object convertResource(IOntology ont, Object value){
if(value == null)
return null;
if(value instanceof IRestriction){
IRestriction r = (IRestriction) value;
IRestriction t = ont.createRestriction(r.getRestrictionType());
t.setProperty((IProperty)convertResource(ont,r.getProperty()));
t.setParameter((ILogicExpression)convertResource(ont,r.getParameter()));
return t;
}else if(value instanceof ILogicExpression){
ILogicExpression e = (ILogicExpression) value;
ILogicExpression t = ont.createLogicExpression();
t.setExpressionType(e.getExpressionType());
for(Object o: e){
t.add(convertResource(ont,o));
}
return t;
}else if(value instanceof IProperty){
return ont.getProperty(((IProperty) value).getName());
}else if(value instanceof IClass){