src/acdhOeaw/fedora/Fedora.php
public function standardizeUri(string $uri): string {
        if ($uri == '') {
            throw new BadMethodCallException('URI is empty');
        }
        if (substr($uri, 0, 1) === '/') {
            $uri = substr($uri, 1);
        }
        $uri = preg_replace('|^https?://[^/]+/rest/(tx:[-0-9a-zA-Z]+/)?|', '', $uri);
        $uri = $this->apiUrl . '/' . $uri;
        return $uri;
    }
public function standardizeUri(string $uri): string {
        if ($uri == '') {
            throw new BadMethodCallException('URI is empty');
        }
        if (substr($uri, 0, 1) === '/') {
            $uri = substr($uri, 1);
        }
        $uri = preg_replace('|^https?://[^/]+/rest/(tx:[-0-9a-zA-Z]+/)?|', '', $uri);
        $uri = $this->apiUrl . '/' . $uri;
        return $uri;
    }
public function standardizeUri ( string $ uri ) : string { if ( $ uri == '' ) { throw new BadMethodCallException ( 'URI is empty' ) ; } if ( substr ( $ uri , 0 , 1 ) === '/' ) { $ uri = substr ( $ uri , 1 ) ; } $ uri = preg_replace ( '|^https?://[^/]+/rest/(tx:[-0-9a-zA-Z]+/)?|' , '' , $ uri ) ; $ uri = $ this -> apiUrl . '/' . $ uri ; return $ uri ; }
Transforms an URI into "a canonical form" used in the triplestore to
denote triples subject.

@param string $uri URI to transform
@return string
Transforms an URI into a canonical form used in the triplestore to denote triples subject .