} else if (val instanceof OWLLiteral) {
OWLLiteral lit = (OWLLiteral) val;
return lit.getLiteral();
} else if (val instanceof OWLAnonymousIndividual) {
OWLAnonymousIndividual ind = (OWLAnonymousIndividual) val;
return ind.toStringID();
} else {
throw new RuntimeException("Unexpected class "
+ val.getClass());
}
}