Statement stmt = r.getProperty(RDF.value);
if (type!=null && type.equals(XSD_URI+"#IDREF"))
v = stmt.getResource().getLocalName();
else if (stmt.getObject() instanceof Literal) v = stmt.getString();
}
else if (r.canAs(RDFList.class)) {
v = listToString(r,elem,null,ctx);
}
}
else if (rdf instanceof Literal) {
v = ((Literal) rdf).getString();