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

        $meta->addType(RC::get('fedoraServiceClass'));

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

        $meta->addLiteral(RC::titleProp(), $this->getId());

        $meta->addLiteral(RC::get('fedoraServiceLocProp'), $this->location);

        $retProp = RC::get('fedoraServiceRetFormatProp');
        foreach ($this->format as $i) {
            $meta->addLiteral($retProp, $i);
        }
        
        $meta->addLiteral(RC::get('fedoraServiceRevProxyProp'), $this->revProxy);

        return $meta;
    }