src/acdhOeaw/schema/dissemination/Parameter.php
public function getMetadata(): Resource {
        $meta = (new Graph())->resource('.');

        $meta->addResource(RC::relProp(), $this->service->getResource()->getId());
        $meta->addResource(RC::idProp(), $this->getId());
        $meta->addType(RC::get('fedoraServiceParamClass'));

        $titleProp = RC::get('fedoraTitleProp');
        $meta->addLiteral($titleProp, $this->name);

        $defaultValueProp = RC::get('fedoraServiceParamDefaultValueProp');
        $meta->addLiteral($defaultValueProp, $this->defaultValue);

        $redPropertyProp = RC::get('fedoraServiceParamRdfPropertyProp');
        $meta->addLiteral($redPropertyProp, $this->rdfProperty);

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

        $meta->addResource(RC::relProp(), $this->service->getResource()->getId());
        $meta->addResource(RC::idProp(), $this->getId());
        $meta->addType(RC::get('fedoraServiceParamClass'));

        $titleProp = RC::get('fedoraTitleProp');
        $meta->addLiteral($titleProp, $this->name);

        $defaultValueProp = RC::get('fedoraServiceParamDefaultValueProp');
        $meta->addLiteral($defaultValueProp, $this->defaultValue);

        $redPropertyProp = RC::get('fedoraServiceParamRdfPropertyProp');
        $meta->addLiteral($redPropertyProp, $this->rdfProperty);

        return $meta;
    }
public function getMetadata ( ) : Resource { $ meta = ( new Graph ( ) ) -> resource ( '.' ) ; $ meta -> addResource ( RC :: relProp ( ) , $ this -> service -> getResource ( ) -> getId ( ) ) ; $ meta -> addResource ( RC :: idProp ( ) , $ this -> getId ( ) ) ; $ meta -> addType ( RC :: get ( 'fedoraServiceParamClass' ) ) ; $ titleProp = RC :: get ( 'fedoraTitleProp' ) ; $ meta -> addLiteral ( $ titleProp , $ this -> name ) ; $ defaultValueProp = RC :: get ( 'fedoraServiceParamDefaultValueProp' ) ; $ meta -> addLiteral ( $ defaultValueProp , $ this -> defaultValue ) ; $ redPropertyProp = RC :: get ( 'fedoraServiceParamRdfPropertyProp' ) ; $ meta -> addLiteral ( $ redPropertyProp , $ this -> rdfProperty ) ; return $ meta ; }
Returns metadata describing the dissemination service parameter
@return Resource
Returns metadata describing the dissemination service parameter