protected function getUriPath()
    {
        $path = dirname($this->getPathFromContent());
        $parts = explode(DIRECTORY_SEPARATOR, $path);

        $uriParts = array_filter($parts, function ($dirname) {
            return false === $this->isTopLevel();
        });

        return trim(implode(DIRECTORY_SEPARATOR, $uriParts), DIRECTORY_SEPARATOR);
    }