protected RDFFormat getOutboundSyntax() { return defaultSendLang ; }
/** Create an HttpEntity for the graph */
protected HttpEntity graphToHttpEntity(final Graph graph) {
final RDFFormat syntax = getOutboundSyntax() ;
ContentProducer producer = new ContentProducer() {
@Override
public void writeTo(OutputStream out) throws IOException {
RDFDataMgr.write(out, graph, syntax) ;
}
} ;
EntityTemplate entity = new EntityTemplate(producer) ;
String ct = syntax.getLang().getContentType().getContentType() ;
entity.setContentType(ct) ;
return entity ;
}