return null;
if(value instanceof PResource){
return ((PResource)value).getResource();
}else if(value instanceof ILogicExpression){
OWLModel model = resource.getOWLModel();
ILogicExpression exp = (ILogicExpression) value;
Object obj = null;
if(exp.isSingleton()){
if(exp.getExpressionType() == ILogicExpression.NOT){
try{
obj = model.createOWLComplementClass(
(RDFSClass)convertSetValue(exp.getOperand()));
}catch(ClassCastException ex){
throw new IOntologyError("Cannot complement "+exp.getOperand()+", because it is not a class",ex);
}
}else
obj = convertSetValue(exp.getOperand());
}else if(exp.getExpressionType() == ILogicExpression.AND){
OWLIntersectionClass ac = model.createOWLIntersectionClass();
for(Object o: exp){
ac.addOperand((RDFSClass)convertSetValue(o));
}
obj = ac;
}else if(exp.getExpressionType() == ILogicExpression.OR){
OWLUnionClass oc = model.createOWLUnionClass();
for(Object o: exp){
oc.addOperand((RDFSClass)convertSetValue(o));
}
obj = oc;
}