server/src/app/Libraries/Mappers/CocoonContentRdfMapper.php
changeset 116 e60c55988ed4
parent 115 34ffc04cef62
child 122 b37fde30dd4a
equal deleted inserted replaced
115:34ffc04cef62 116:e60c55988ed4
   106         $this->addDateProperties($providedCHOResource, $res, $outputGraph);
   106         $this->addDateProperties($providedCHOResource, $res, $outputGraph);
   107         $this->addSpatialProperties($providedCHOResource, $res, $outputGraph);
   107         $this->addSpatialProperties($providedCHOResource, $res, $outputGraph);
   108 
   108 
   109     }
   109     }
   110 
   110 
       
   111     protected function addResourceRightProperties($resource, $res) {
       
   112         $this->applyPropertiesToRes($res, $resource, [
       
   113             ['http://purl.org/dc/elements/1.1/rights', null],
       
   114             ['http://purl.org/dc/terms/license', null],
       
   115             ['http://purl.org/dc/terms/accessRights', 'propertyTrimMap'],
       
   116         ]);
       
   117     }
       
   118 
   111     protected function addCHOResourceProperties($providedCHOResource, $res, $outputGraph) {
   119     protected function addCHOResourceProperties($providedCHOResource, $res, $outputGraph) {
   112         $this->applyPropertiesToRes($res, $providedCHOResource, [
   120         $this->applyPropertiesToRes($res, $providedCHOResource, [
   113             ['http://purl.org/dc/terms/tableOfContents', null],
   121             ['http://purl.org/dc/terms/tableOfContents', null],
   114             ['http://purl.org/dc/elements/1.1/description', null],
   122             ['http://purl.org/dc/elements/1.1/description', null],
   115             ['http://purl.org/dc/elements/1.1/language', null],
   123             ['http://purl.org/dc/elements/1.1/language', null],
   116             ['http://purl.org/dc/elements/1.1/publisher', null],
   124             ['http://purl.org/dc/elements/1.1/publisher', null],
   117             ['http://purl.org/dc/elements/1.1/rights', null],
       
   118             ['http://purl.org/dc/elements/1.1/type', 'propertyTypeMap'],
   125             ['http://purl.org/dc/elements/1.1/type', 'propertyTypeMap'],
   119             ['http://purl.org/dc/terms/license', null],
       
   120             ['http://purl.org/dc/elements/1.1/subject', null],
   126             ['http://purl.org/dc/elements/1.1/subject', null],
   121             ['http://purl.org/dc/elements/1.1/title', null],
   127             ['http://purl.org/dc/elements/1.1/title', null],
   122             ['http://purl.org/dc/elements/1.1/language', null],
   128             ['http://purl.org/dc/elements/1.1/language', null],
   123             ['http://purl.org/dc/terms/accessRights', 'propertyTrimMap'],
       
   124             ['http://purl.org/dc/terms/extent', null],
   129             ['http://purl.org/dc/terms/extent', null],
   125             ['http://purl.org/dc/terms/isPartOf', 'propertyCollectionMap'],
   130             ['http://purl.org/dc/terms/isPartOf', 'propertyCollectionMap'],
   126             ['http://purl.org/dc/terms/abstract', null],
   131             ['http://purl.org/dc/terms/abstract', null],
   127             ['http://purl.org/dc/elements/1.1/source', null],
   132             ['http://purl.org/dc/elements/1.1/source', null],
   128             ['http://purl.org/dc/terms/medium', null],
   133             ['http://purl.org/dc/terms/medium', null],
   158             ['http://www.language-archives.org/OLAC/1.1/sponsor', 'propertyOlacRoleMap'],
   163             ['http://www.language-archives.org/OLAC/1.1/sponsor', 'propertyOlacRoleMap'],
   159             ['http://www.language-archives.org/OLAC/1.1/transcriber', 'propertyOlacRoleMap'],
   164             ['http://www.language-archives.org/OLAC/1.1/transcriber', 'propertyOlacRoleMap'],
   160             ['http://www.language-archives.org/OLAC/1.1/translator', 'propertyOlacRoleMap'],
   165             ['http://www.language-archives.org/OLAC/1.1/translator', 'propertyOlacRoleMap'],
   161         ]);
   166         ]);
   162 
   167 
       
   168         $this->addResourceRightProperties($providedCHOResource, $res);
       
   169 
   163     }
   170     }
   164 
   171 
   165     protected function addDateToWebResource($sourceRes, $targetRes) {
   172     protected function addDateToWebResource($targetRes, $sourceRes) {
   166 
   173 
   167         $this->applyPropertiesToRes($sourceRes, $targetRes, [
   174         $this->applyPropertiesToRes($sourceRes, $targetRes, [
   168             ['http://purl.org/dc/terms/created', null],
   175             ['http://purl.org/dc/terms/created', null],
   169             ['http://purl.org/dc/terms/issued', null],
   176             ['http://purl.org/dc/terms/issued', null],
   170         ]);
   177         ]);