}
else {
// AG serializers do not work.
AllegroGraphSerializer serializer = new NTriplesSerializer();
serializer.setDestination(null); // ie., to string to be returned by run()
Object resObj = serializer.run(tripleIter);
res = String.valueOf(resObj);
}
}
else if ( form.equalsIgnoreCase("csv") ) {
queryResult.setContentType("text/plain");