public function getGraph(ResponseInterface $response)
    {
        // Extract rdf as response body and return Easy_RDF Graph object.
        $rdf = $response->getBody()->getContents();
        $graph = new \EasyRdf_Graph();
        if (!empty($rdf)) {
            $graph->parse($rdf, 'jsonld');
        }
        return $graph;
    }