|
1 <?php |
|
2 namespace CorpusParole\Libraries\Mergers; |
|
3 |
|
4 |
|
5 // @prefix ore: <http://www.openarchives.org/ore/terms/> . |
|
6 // @prefix edm: <http://www.europeana.eu/schemas/edm/> . |
|
7 // @prefix dc: <http://purl.org/dc/terms/> . |
|
8 // @prefix dc11: <http://purl.org/dc/elements/1.1/> . |
|
9 // @prefix olac: <http://www.language-archives.org/OLAC/1.1/> . |
|
10 // @prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> . |
|
11 // @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
|
12 // @prefix skos: <http://www.w3.org/2004/02/skos/core#> . |
|
13 // @prefix owl: <http://www.w3.org/2002/07/owl#> . |
|
14 // |
|
15 // <http://purl.org/poi/corpusdelaparole.huma-num.fr/crdo-ESLO1_ENT_019> |
|
16 // a ore:Aggregation ; |
|
17 // edm:aggregatedCHO <http://purl.org/poi/crdo.vjf.cnrs.fr/crdo-ESLO1_ENT_019> ; |
|
18 // edm:provider "Corpus de la Parole"@fr ; |
|
19 // edm:dataProvider <http://viaf.org/viaf/181558906> ; |
|
20 // edm:isShownAt <http://cocoon.huma-num.fr/exist/crdo/meta/crdo-ESLO1_ENT_019> ; |
|
21 // edm:isShownBy <http://cocoon.huma-num.fr/data/eslo/masters/ESLO1_ENT_019.wav> ; |
|
22 // edm:rights <http://creativecommons.org/licenses/by-nc-sa/4.0/> ; |
|
23 // edm:hasView <http://cocoon.huma-num.fr/data/eslo/ESLO1_ENT_019_22km.wav>, <http://cocoon.huma-num.fr/data/eslo/ESLO1_ENT_019.mp3> . |
|
24 // |
|
25 // <http://purl.org/poi/crdo.vjf.cnrs.fr/crdo-ESLO1_ENT_019> |
|
26 // a edm:ProvidedCHO ; |
|
27 // dc:tableOfContents "01 née; famille a toujours habité Orléans03 oui, on y a des amis, relations04 oui, certainementT1 centralisait comptabilité dans une industrieT2 RR passer des écritures, caisse; horaires avant et après loi de 1936T3 aimait travail, rien ne lui déplaisaitT4 n'a jamais pensé à çaT5 actuellement on est forcée quelquefois - assurance sociale - retraite appréciable; autre chose avec enfantL1 concerts, théâtre, réunions, etc...:préfère s'occuperL2 messe, puis a passé la journée avec une amieL3 (quand elle travaillait) au bord de la mer ou voyages organisésE1 n'en sait rienE2 lui semble que ça aide le françaisE3 peut-être chimie, physiqueE4 intelligence, travail, familleE5 dépend de leurs capacitésE6 non : dépend de la vie de l'enfant plus tardP1 oui, à part loyers chersP4 ne comprend pas motifs des étudiants; très calme à OrléansP9 moins qu'avant 1940P10 RR bourgeois = gros rentiers, femmes d'officierss, gros industriels; chaque groupe se recevait mutuellement, formait un clanQ. Orléans une ville renfermée? oui : orléanais assez distant, peut-être moins maintenantP6 il faut avoir la moitié des votesP7 des candidats se retirentP8 droite gaulliste, réservée; gauche avancéeP5 pas grand-chose - attachés à leurs partisP11 oui, maintenant, par l'éducation; famille moins importanteP12 à diminuer : les gens travaillent beaucoup plus et l'argent a changé de mainsOmelette (je casse mes oeufs...)Questionnaire sociolinguistique"@fr ; |
|
28 // dc11:description "Extrait du corpus d'Orléans, réalisé dans le cadre de l'Enquête SocioLinguistique à Orléans à la fin des années 1960."@fr ; |
|
29 // dc11:language <http://lexvo.org/id/iso639-3/fra> ; |
|
30 // dc11:publisher <http://viaf.org/viaf/181558906> ; |
|
31 // dc11:rights "Copyright (c) 2012 Université d'Orléans/LLL" ; |
|
32 // dc11:type <http://purl.org/dc/dcmitype/Sound>, "primary_text"^^olac:linguistic-type, "dialogue"^^olac:discourse-type ; |
|
33 // dc:license <http://creativecommons.org/licenses/by-nc-sa/3.0/> ; |
|
34 // dc11:subject <http://lexvo.org/id/iso639-3/fra>, "text_and_corpus_linguistics"^^olac:linguistic-field, <http://ark.bnf.fr/ark:/12148/cb135052099>, <http://ark.bnf.fr/ark:/12148/cb11943508j>, <http://ark.bnf.fr/ark:/12148/cb11934124q>, <http://ark.bnf.fr/ark:/12148/cb11931498c>, <http://ark.bnf.fr/ark:/12148/cb11935508t>, <http://ark.bnf.fr/ark:/12148/cb11934132b>, <http://ark.bnf.fr/ark:/12148/cb11939893p>, <http://ark.bnf.fr/ark:/12148/cb11933091b> ; |
|
35 // dc11:title "ESLO1: entretien 019"@fr ; |
|
36 // dc:accessRights "Freely available for non-commercial use" ; |
|
37 // dc:extent "PT0H47M16S" ; |
|
38 // dc:isPartOf <http://purl.org/poi/crdo.vjf.cnrs.fr/crdo-COLLECTION_LANGUESDEFRANCE>, <http://purl.org/poi/crdo.vjf.cnrs.fr/crdo-COLLECTION_ESLO1> ; |
|
39 // dc11:source <http://archivesetmanuscrits.bnf.fr/ead.html?id=FRBNFEAD000095934&c=FRBNFEAD000095934_a19844296> ; |
|
40 // dc:medium "1 bande magnétique audio"@fr ; |
|
41 // dc:alternative "ESLO1: entretien 019 alt"@fr ; |
|
42 // dc:bibliographicCitation "A.-M. VURPAS (1988), Autrefois dans les monts du Beaujolais, Action graphique." ; |
|
43 // dc11:identifier "Cote producteur: 001_3"@fr ; |
|
44 // dc:references <http://panini.u-paris10.fr> ; |
|
45 // dc11:coverage "Quartier concerné : Montreuil"@fr ; |
|
46 // dc11:relation <http://purl.org/poi/crdo.vjf.cnrs.fr/crdo-ESLO1_ENTCONT_233> ; |
|
47 // dc11:creator "Blanc, Michel", "Biggs, Patricia" ; |
|
48 // olac:depositor <http://viaf.org/viaf/181558906> ; |
|
49 // dc11:contributor <http://viaf.org/viaf/181558906>, <http://viaf.org/viaf/39685504>, <http://viaf.org/viaf/200058210>, "Kay, Jack", "JK", "UG393" ; |
|
50 // olac:editor <http://viaf.org/viaf/39685504>, <http://viaf.org/viaf/200058210> ; |
|
51 // olac:researcher "Kay, Jack" ; |
|
52 // olac:speaker "JK", "UG393" ; |
|
53 // dc:available "2014-11-06"^^dc:W3CDTF ; |
|
54 // dc:created "1969-04-11"^^dc:W3CDTF ; |
|
55 // dc:issued "2014-12-05T15:00:19+01:00"^^dc:W3CDTF ; |
|
56 // dc:modified "2014-12-05T15:00:19+01:00"^^dc:W3CDTF ; |
|
57 // dc:spatial [ |
|
58 // a edm:Place ; |
|
59 // geo:lat "47.90"^^xsd:float ; |
|
60 // geo:long "1.90"^^xsd:float ; |
|
61 // skos:note "FR"^^dc:ISO3166, "France, Centre, Loiret, Orléans"@fr ; |
|
62 // owl:sameAs <http://vocab.getty.edu/tgn/7008337> |
|
63 // ] . |
|
64 // |
|
65 // <http://cocoon.huma-num.fr/data/eslo/masters/ESLO1_ENT_019.wav> |
|
66 // a edm:WebResources ; |
|
67 // dc:extent "PT0H47M16S" ; |
|
68 // dc11:format "audio/x-wav"^^dc:IMT ; |
|
69 // dc:created "1969-04-11"^^dc:W3CDTF ; |
|
70 // dc:issued "2014-12-05T15:00:19+01:00"^^dc:W3CDTF . |
|
71 // |
|
72 // <http://cocoon.huma-num.fr/data/eslo/ESLO1_ENT_019_22km.wav> |
|
73 // a edm:WebResources ; |
|
74 // dc:extent "PT0H47M16S" ; |
|
75 // dc11:format "audio/x-wav"^^dc:IMT ; |
|
76 // edm:isDerivativeOf <http://cocoon.huma-num.fr/data/eslo/masters/ESLO1_ENT_019.wav> ; |
|
77 // dc:created "1969-04-11"^^dc:W3CDTF ; |
|
78 // dc:issued "2014-12-05T15:00:19+01:00"^^dc:W3CDTF . |
|
79 // |
|
80 // <http://cocoon.huma-num.fr/data/eslo/ESLO1_ENT_019.mp3> |
|
81 // a edm:WebResources ; |
|
82 // dc:extent "PT0H47M16S" ; |
|
83 // dc11:format "audio/mpeg"^^dc:IMT ; |
|
84 // edm:isDerivativeOf <http://cocoon.huma-num.fr/data/eslo/masters/ESLO1_ENT_019.wav> ; |
|
85 // dc:created "1969-04-11"^^dc:W3CDTF ; |
|
86 // dc:issued "2014-12-05T15:00:19+01:00"^^dc:W3CDTF . |
|
87 |
|
88 class CocoonSoundRdfMerger extends CocoonAbstractRdfMerger { |
|
89 |
|
90 protected function getTypeMergeMethodMap() { |
|
91 return [ |
|
92 'http://www.openarchives.org/ore/terms/Aggregation' => 'mergeOreAggregation', |
|
93 'http://www.europeana.eu/schemas/edm/ProvidedCHO' => 'mergeEdmProvidedCHO', |
|
94 'http://www.europeana.eu/schemas/edm/WebResources' => 'mergeEdmWebResources', |
|
95 'http://www.europeana.eu/schemas/edm/Place' => 'mergeDcSpatialBlankNode' |
|
96 ]; |
|
97 } |
|
98 |
|
99 protected function mergeOreAggregation($baseRes, $srcRes, $uri = null) { |
|
100 |
|
101 if(is_null($uri)) { |
|
102 $uri = $baseRes->getUri(); |
|
103 } |
|
104 $targetArray =& $this->mergedArray[$uri]; |
|
105 |
|
106 $this->mergeProperties([], [ |
|
107 "http://www.europeana.eu/schemas/edm/aggregatedCHO", |
|
108 "http://www.europeana.eu/schemas/edm/provider", |
|
109 "http://www.europeana.eu/schemas/edm/dataProvider", |
|
110 "http://www.europeana.eu/schemas/edm/isShownAt", |
|
111 "http://www.europeana.eu/schemas/edm/isShownBy" |
|
112 ], $targetArray, $baseRes, $srcRes); |
|
113 |
|
114 } |
|
115 |
|
116 protected function mergeEdmProvidedCHO($baseRes, $srcRes, $uri=null) { |
|
117 if(is_null($uri)) { |
|
118 $uri = $baseRes->getUri(); |
|
119 } |
|
120 $targetArray =& $this->mergedArray[$uri]; |
|
121 |
|
122 $this->mergeProperties([ |
|
123 "http://purl.org/dc/terms/spatial" |
|
124 ], [ |
|
125 "http://purl.org/dc/elements/1.1/title", |
|
126 "http://purl.org/dc/terms/extent", |
|
127 "http://purl.org/dc/terms/available", |
|
128 "http://purl.org/dc/terms/created", |
|
129 "http://purl.org/dc/terms/issued", |
|
130 "http://purl.org/dc/terms/modified" |
|
131 ], $targetArray, $baseRes, $srcRes); |
|
132 |
|
133 } |
|
134 |
|
135 protected function mergeEdmWebResources($baseRes, $srcRes, $uri=null) { |
|
136 if(is_null($uri)) { |
|
137 $uri = $baseRes->getUri(); |
|
138 } |
|
139 $targetArray =& $this->mergedArray[$uri]; |
|
140 $this->mergeProperties([],[ |
|
141 "http://purl.org/dc/terms/extent", |
|
142 "http://purl.org/dc/elements/1.1/format", |
|
143 "http://www.europeana.eu/schemas/edm/isDerivativeOf", |
|
144 "http://purl.org/dc/terms/created", |
|
145 "http://purl.org/dc/terms/issued" |
|
146 ], $targetArray, $baseRes, $srcRes); |
|
147 } |
|
148 |
|
149 protected function mergeDcSpatialBlankNode($baseRes, $srcRes, $uri=null) { |
|
150 if(is_null($uri)) { |
|
151 $uri = $baseRes->getUri(); |
|
152 } |
|
153 $targetArray =& $this->mergedArray[$uri]; |
|
154 |
|
155 $this->mergeProperties([],[ |
|
156 "http://www.w3.org/2003/01/geo/wgs84_pos#lat", |
|
157 "http://www.w3.org/2003/01/geo/wgs84_pos#long", |
|
158 "http://www.w3.org/2003/01/geo/wgs84_pos#alt", |
|
159 "http://www.w3.org/2002/07/owl#sameAs" |
|
160 ], $targetArray, $baseRes, $srcRes); |
|
161 } |
|
162 |
|
163 } |