src/acdhOeaw/schema/dissemination/Service.php
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;
    }
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;
    }
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 ; }
Returns metadata describing the dissemination service.
@return Resource
Returns metadata describing the dissemination service .