final QueryEngine qe,
final ModelConnection mc)
throws RippleException {
Sink<RippleList> typeSink = new Sink<RippleList>() {
public void put(final RippleList l) throws RippleException {
RippleValue type = l.getFirst();
Value t = (URI) type.toRDF(mc).sesameValue();
if (t instanceof URI) {
sink.put(mc.list().push(mc.valueOf(value, (URI) t)));
} else {
qe.getErrorPrintStream().println("datatype does not map to a URI reference: " + type);
}
}
};
type.evaluate(typeSink, qe, mc);
}