Graph g = GraphFactory.createDefaultGraph() ;
HttpEntity entity = response.getEntity() ;
// org.apache.http.entity.ContentType ;
String ct = contentType(response) ;
Lang lang = RDFLanguages.contentTypeToLang(ct) ;
StreamRDF dest = StreamRDFLib.graph(g) ;
InputStream in = entity.getContent() ;
RDFDataMgr.parse(dest, in, baseIRI, lang) ;
in.close() ;
this.graph = g ;
} catch (IOException ex) { IO.exception(ex) ; }