src/acdhOeaw/fedora/Fedora.php
public function getResourceByUri(string $uri): FedoraResource {
        $uri = $this->standardizeUri($uri);
        try {
            return $this->cache->getByUri($uri);
        } catch (NotInCache $e) {
            return new FedoraResource($this, $uri);
        }
    }
public function getResourceByUri(string $uri): FedoraResource {
        $uri = $this->standardizeUri($uri);
        try {
            return $this->cache->getByUri($uri);
        } catch (NotInCache $e) {
            return new FedoraResource($this, $uri);
        }
    }
public function getResourceByUri ( string $ uri ) : FedoraResource { $ uri = $ this -> standardizeUri ( $ uri ) ; try { return $ this -> cache -> getByUri ( $ uri ) ; } catch ( NotInCache $ e ) { return new FedoraResource ( $ this , $ uri ) ; } }
Returns a FedoraResource based on a given URI.

Request URI is imported into the current connection meaning base
Fedora API URL will and the current transaction URI (if there is
an active transaction) will replace ones in passed URI.

It is not checked if a resource with a given URI exists.

@param string $uri
@return \acdhOeaw\fedora\FedoraResource
Returns a FedoraResource based on a given URI .