server/src/app/Libraries/Mappers/CocoonTextRdfMapper.php
changeset 111 af85c436048f
parent 19 eadaf0b8f02e
child 116 e60c55988ed4
equal deleted inserted replaced
110:8e5fcebb9018 111:af85c436048f
   148 
   148 
   149         $aggregationNode = $outputGraph->resource($resUri, 'ore:Aggregation');
   149         $aggregationNode = $outputGraph->resource($resUri, 'ore:Aggregation');
   150 
   150 
   151         // build others
   151         // build others
   152         foreach($res->all($this->inputGraph->resource('http://purl.org/dc/terms/isFormatOf')) as $reprUrl) {
   152         foreach($res->all($this->inputGraph->resource('http://purl.org/dc/terms/isFormatOf')) as $reprUrl) {
   153             $webResource = $outputGraph->resource($reprUrl, 'edm:WebResources');
   153             $webResource = $outputGraph->resource($reprUrl, 'edm:WebResource');
   154             $mimetype = Utils::getMimetype($reprUrl);
   154             $mimetype = Utils::getMimetype($reprUrl);
   155 
   155 
   156             $webResource->addLiteral('http://purl.org/dc/elements/1.1/format', Literal::create($mimetype, null, $outputGraph->resource('http://purl.org/dc/terms/IMT')));
   156             $webResource->addLiteral('http://purl.org/dc/elements/1.1/format', Literal::create($mimetype, null, $outputGraph->resource('http://purl.org/dc/terms/IMT')));
   157 
   157 
   158             $this->addDateToWebResource($res, $webResource);
   158             $this->addDateToWebResource($res, $webResource);