server/src/app/Libraries/Mergers/CocoonSoundRdfMerger.php
changeset 111 af85c436048f
parent 18 f2a40bbc27f6
child 113 faff38055a07
equal deleted inserted replaced
110:8e5fcebb9018 111:af85c436048f
    10 // @prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> .
    10 // @prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> .
    11 // @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
    11 // @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
    12 // @prefix skos: <http://www.w3.org/2004/02/skos/core#> .
    12 // @prefix skos: <http://www.w3.org/2004/02/skos/core#> .
    13 // @prefix owl: <http://www.w3.org/2002/07/owl#> .
    13 // @prefix owl: <http://www.w3.org/2002/07/owl#> .
    14 //
    14 //
    15 // <http://purl.org/poi/corpusdelaparole.huma-num.fr/crdo-ESLO1_ENT_019>
    15 // <http://corpusdelaparole.huma-num.fr/corpus/res/crdo-ESLO1_ENT_019>
    16 //   a ore:Aggregation ;
    16 //   a ore:Aggregation ;
    17 //   edm:aggregatedCHO <http://purl.org/poi/crdo.vjf.cnrs.fr/crdo-ESLO1_ENT_019> ;
    17 //   edm:aggregatedCHO <http://purl.org/poi/crdo.vjf.cnrs.fr/crdo-ESLO1_ENT_019> ;
    18 //   edm:provider "Corpus de la Parole"@fr ;
    18 //   edm:provider "Corpus de la Parole"@fr ;
    19 //   edm:dataProvider <http://viaf.org/viaf/181558906> ;
    19 //   edm:dataProvider <http://viaf.org/viaf/181558906> ;
    20 //   edm:isShownAt <http://cocoon.huma-num.fr/exist/crdo/meta/crdo-ESLO1_ENT_019> ;
    20 //   edm:isShownAt <http://cocoon.huma-num.fr/exist/crdo/meta/crdo-ESLO1_ENT_019> ;
    61 //     skos:note "FR"^^dc:ISO3166, "France, Centre, Loiret, Orléans"@fr ;
    61 //     skos:note "FR"^^dc:ISO3166, "France, Centre, Loiret, Orléans"@fr ;
    62 //     owl:sameAs <http://vocab.getty.edu/tgn/7008337>
    62 //     owl:sameAs <http://vocab.getty.edu/tgn/7008337>
    63 //   ] .
    63 //   ] .
    64 //
    64 //
    65 // <http://cocoon.huma-num.fr/data/eslo/masters/ESLO1_ENT_019.wav>
    65 // <http://cocoon.huma-num.fr/data/eslo/masters/ESLO1_ENT_019.wav>
    66 //   a edm:WebResources ;
    66 //   a edm:WebResource ;
    67 //   dc:extent "PT0H47M16S" ;
    67 //   dc:extent "PT0H47M16S" ;
    68 //   dc11:format "audio/x-wav"^^dc:IMT ;
    68 //   dc11:format "audio/x-wav"^^dc:IMT ;
    69 //   dc:created "1969-04-11"^^dc:W3CDTF ;
    69 //   dc:created "1969-04-11"^^dc:W3CDTF ;
    70 //   dc:issued "2014-12-05T15:00:19+01:00"^^dc:W3CDTF .
    70 //   dc:issued "2014-12-05T15:00:19+01:00"^^dc:W3CDTF .
    71 //
    71 //
    72 // <http://cocoon.huma-num.fr/data/eslo/ESLO1_ENT_019_22km.wav>
    72 // <http://cocoon.huma-num.fr/data/eslo/ESLO1_ENT_019_22km.wav>
    73 //   a edm:WebResources ;
    73 //   a edm:WebResource ;
    74 //   dc:extent "PT0H47M16S" ;
    74 //   dc:extent "PT0H47M16S" ;
    75 //   dc11:format "audio/x-wav"^^dc:IMT ;
    75 //   dc11:format "audio/x-wav"^^dc:IMT ;
    76 //   edm:isDerivativeOf <http://cocoon.huma-num.fr/data/eslo/masters/ESLO1_ENT_019.wav> ;
    76 //   edm:isDerivativeOf <http://cocoon.huma-num.fr/data/eslo/masters/ESLO1_ENT_019.wav> ;
    77 //   dc:created "1969-04-11"^^dc:W3CDTF ;
    77 //   dc:created "1969-04-11"^^dc:W3CDTF ;
    78 //   dc:issued "2014-12-05T15:00:19+01:00"^^dc:W3CDTF .
    78 //   dc:issued "2014-12-05T15:00:19+01:00"^^dc:W3CDTF .
    79 //
    79 //
    80 // <http://cocoon.huma-num.fr/data/eslo/ESLO1_ENT_019.mp3>
    80 // <http://cocoon.huma-num.fr/data/eslo/ESLO1_ENT_019.mp3>
    81 //   a edm:WebResources ;
    81 //   a edm:WebResource ;
    82 //   dc:extent "PT0H47M16S" ;
    82 //   dc:extent "PT0H47M16S" ;
    83 //   dc11:format "audio/mpeg"^^dc:IMT ;
    83 //   dc11:format "audio/mpeg"^^dc:IMT ;
    84 //   edm:isDerivativeOf <http://cocoon.huma-num.fr/data/eslo/masters/ESLO1_ENT_019.wav> ;
    84 //   edm:isDerivativeOf <http://cocoon.huma-num.fr/data/eslo/masters/ESLO1_ENT_019.wav> ;
    85 //   dc:created "1969-04-11"^^dc:W3CDTF ;
    85 //   dc:created "1969-04-11"^^dc:W3CDTF ;
    86 //   dc:issued "2014-12-05T15:00:19+01:00"^^dc:W3CDTF .
    86 //   dc:issued "2014-12-05T15:00:19+01:00"^^dc:W3CDTF .
    89 
    89 
    90     protected function getTypeMergeMethodMap() {
    90     protected function getTypeMergeMethodMap() {
    91         return [
    91         return [
    92             'http://www.openarchives.org/ore/terms/Aggregation' => 'mergeOreAggregation',
    92             'http://www.openarchives.org/ore/terms/Aggregation' => 'mergeOreAggregation',
    93             'http://www.europeana.eu/schemas/edm/ProvidedCHO' => 'mergeEdmProvidedCHO',
    93             'http://www.europeana.eu/schemas/edm/ProvidedCHO' => 'mergeEdmProvidedCHO',
    94             'http://www.europeana.eu/schemas/edm/WebResources' => 'mergeEdmWebResources',
    94             'http://www.europeana.eu/schemas/edm/WebResource' => 'mergeEdmWebResources',
    95             'http://www.europeana.eu/schemas/edm/Place' => 'mergeDcSpatialBlankNode'
    95             'http://www.europeana.eu/schemas/edm/Place' => 'mergeDcSpatialBlankNode'
    96         ];
    96         ];
    97     }
    97     }
    98 
    98 
    99     protected function mergeOreAggregation($baseRes, $srcRes, $uri = null) {
    99     protected function mergeOreAggregation($baseRes, $srcRes, $uri = null) {