*/
public ILogicExpression getLogicExpression(){
// if we have a union or intersection class
if(resource instanceof OWLNAryLogicalClass){
ILogicExpression exp = new LogicExpression(
(resource instanceof OWLUnionClass)?ILogicExpression.OR:ILogicExpression.AND);
for(Object c: (Collection) ((OWLNAryLogicalClass) resource).getOperands() ){
if(c instanceof RDFSClass){
exp.add(convertParameter((RDFSClass)c));
}else if(c instanceof RDFList){
RDFList l = (RDFList) c;
System.err.println("WARNING: unexpected list "+l.getBrowserText()+" in logic expression for "+getName());
}
}
return exp;
// we might have a complement
}else if(resource instanceof OWLComplementClass){
RDFSClass c = ((OWLComplementClass)resource).getComplement();
return new LogicExpression(ILogicExpression.NOT,convertParameter(c));
}
// default just container that contains this
return super.getLogicExpression();
}