equal
deleted
inserted
replaced
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); |