public function getMetadata(): Resource {
        $graph = new Graph();
        $meta  = $graph->resource('.');

        $meta->addResource(RC::idProp(), $this->getId());

        if ($this->class != '') {
            $meta->addResource('http://www.w3.org/1999/02/22-rdf-syntax-ns#type', $this->class);
        }

        if ($this->parent) {
            $meta->addResource(RC::relProp(), $this->parent);
        }

        $meta->addLiteral(RC::locProp(), self::getRelPath(self::sanitizePath($this->path)));

        $meta->addLiteral(RC::titleProp(), basename($this->path));
        $meta->addLiteral('http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#filename', basename($this->path));
        if (is_file($this->path)) {
            $mime = $this->getMime();
            if ($mime) {
                $meta->addLiteral('http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#hasMimeType', $mime);
            }
            $meta->addLiteral(RC::get('fedoraSizeProp'), filesize($this->path));
        }

        if ($this->metaLookup) {
            $addMeta = $this->metaLookup->getMetadata($this->path, $meta, $this->metaLookupRequire);
            $meta->merge($addMeta, array(RC::idProp()));
        }

        return $meta;
    }