server/src/app/Libraries/Mappers/CocoonContentRdfMapper.php
changeset 115 34ffc04cef62
parent 108 be2d3b30b2e0
child 116 e60c55988ed4
equal deleted inserted replaced
114:8af5ed0521a2 115:34ffc04cef62
    95      */
    95      */
    96     private function mapProvidedCHO($res, $outputGraph) {
    96     private function mapProvidedCHO($res, $outputGraph) {
    97 
    97 
    98         $providedCHOResource = $outputGraph->resource($this->getResourceBaseId($res), 'edm:ProvidedCHO');
    98         $providedCHOResource = $outputGraph->resource($this->getResourceBaseId($res), 'edm:ProvidedCHO');
    99 
    99 
       
   100         // add identifier
       
   101         $resId = CocoonUtils::getIdFromUri($this->getResourceBaseId($res));
       
   102         $providedCHOResource->add('http://purl.org/dc/terms/identifier', $resId);
       
   103 
   100         $this->addCHOResourceProperties($providedCHOResource, $res, $outputGraph);
   104         $this->addCHOResourceProperties($providedCHOResource, $res, $outputGraph);
   101 
   105 
   102         $this->addDateProperties($providedCHOResource, $res, $outputGraph);
   106         $this->addDateProperties($providedCHOResource, $res, $outputGraph);
   103         $this->addSpatialProperties($providedCHOResource, $res, $outputGraph);
   107         $this->addSpatialProperties($providedCHOResource, $res, $outputGraph);
   104 
   108