server/src/app/Libraries/Mappers/CocoonContentRdfMapper.php
changeset 505 9175ea22f1b1
parent 504 4ab820b387da
child 526 cdaf9dfb5dfd
equal deleted inserted replaced
504:4ab820b387da 505:9175ea22f1b1
    79 
    79 
    80     protected function propertyReferenceCorrectMap($providedCHOResource, $prop, $value) {
    80     protected function propertyReferenceCorrectMap($providedCHOResource, $prop, $value) {
    81         $providedCHOResource->add('http://purl.org/dc/terms/references', $value);
    81         $providedCHOResource->add('http://purl.org/dc/terms/references', $value);
    82     }
    82     }
    83 
    83 
       
    84     protected function propertyLanguageMap($targetRes, $prop, $value) {
       
    85         $targetRes->add($prop, $value);
       
    86     }
       
    87 
       
    88 
    84     /**
    89     /**
    85      * Build the provided CHO.
    90      * Build the provided CHO.
    86      */
    91      */
    87     private function mapProvidedCHO($res, $outputGraph) {
    92     private function mapProvidedCHO($res, $outputGraph) {
    88 
    93 
   113 
   118 
   114     protected function addCHOResourceProperties($providedCHOResource, $res, $outputGraph) {
   119     protected function addCHOResourceProperties($providedCHOResource, $res, $outputGraph) {
   115         $this->applyPropertiesToRes($res, $providedCHOResource, [
   120         $this->applyPropertiesToRes($res, $providedCHOResource, [
   116             ['http://purl.org/dc/terms/tableOfContents', null],
   121             ['http://purl.org/dc/terms/tableOfContents', null],
   117             ['http://purl.org/dc/elements/1.1/description', null],
   122             ['http://purl.org/dc/elements/1.1/description', null],
   118             ['http://purl.org/dc/elements/1.1/language', null],
   123             ['http://purl.org/dc/elements/1.1/language', 'propertyLanguageMap'],
   119             ['http://purl.org/dc/elements/1.1/publisher', null],
   124             ['http://purl.org/dc/elements/1.1/publisher', null],
   120             ['http://purl.org/dc/elements/1.1/type', 'propertyTypeMap'],
   125             ['http://purl.org/dc/elements/1.1/type', 'propertyTypeMap'],
   121             ['http://purl.org/dc/elements/1.1/subject', null],
   126             ['http://purl.org/dc/elements/1.1/subject', null],
   122             ['http://purl.org/dc/elements/1.1/title', null],
   127             ['http://purl.org/dc/elements/1.1/title', null],
   123             ['http://purl.org/dc/elements/1.1/language', null],
       
   124             ['http://purl.org/dc/terms/extent', null],
   128             ['http://purl.org/dc/terms/extent', null],
   125             ['http://purl.org/dc/terms/isPartOf', 'propertyCollectionMap'],
   129             ['http://purl.org/dc/terms/isPartOf', 'propertyCollectionMap'],
   126             ['http://purl.org/dc/terms/abstract', null],
   130             ['http://purl.org/dc/terms/abstract', null],
   127             ['http://purl.org/dc/elements/1.1/source', null],
   131             ['http://purl.org/dc/elements/1.1/source', null],
   128             ['http://purl.org/dc/terms/medium', null],
   132             ['http://purl.org/dc/terms/medium', null],