src/FedoraApi.php
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;
    }
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;
    }
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 ; }
Gets RDF in Fedora.

@param ResponseInterface   $request    Response received

@return \EasyRdf_Graph
Gets RDF in Fedora .