Project

General

Profile

« Previous | Next » 

Revision 52188

New mapping for DARIAH-DE

View differences:

modules/dnet-parthenos/trunk/src/main/resources/eu/dnetlib/bootstrap/profiles/TransformationRuleDSResources/TransformationRuleDSResourceType/dariah-DE_417_mapping.xml
1 1
<RESOURCE_PROFILE>
2 2
	<HEADER>
3
		<RESOURCE_IDENTIFIER value="8128f7fc-ec85-488a-af51-9584d9d32ecd_VHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZXMvVHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZVR5cGU="/>
3
		<RESOURCE_IDENTIFIER value="ac3417f1-059d-4518-a4fc-676d80569d70_VHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZXMvVHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZVR5cGU="/>
4 4
		<RESOURCE_TYPE value="TransformationRuleDSResourceType"/>
5 5
		<RESOURCE_KIND value="TransformationRuleDSResources"/>
6 6
		<RESOURCE_URI value=""/>
......
10 10
		<CONFIGURATION>
11 11
			<IMPORTED/>
12 12
			<SCRIPT>
13
				<TITLE>DARIAH-DE 417 Mapping</TITLE>
13
				<TITLE>DARIAH-DE 417 Mapping 2018-04-14</TITLE>
14 14
				<CODE> <![CDATA[
15
				<x3ml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" editor="3MEditor v3.2" source_type="xpath" version="1.0" xsi:noNamespaceSchemaLocation="file:///C:/Users/samarita/Desktop/schema/x3ml.xsd">
16
    <info>
17
        <title>Dariah DE</title>
18
        <general_description/>
19
        <source>
20
            <source_info>
21
                <source_schema type="" version=""/>
22
                <namespaces>
23
                    <namespace prefix="" uri=""/>
24
                </namespaces>
25
            </source_info>
26
            <source_collection/>
27
        </source>
28
        <target>
29
            <target_info>
30
                <target_schema schema_file="cidoc_crm_v6.0-draft-2015January.rdfs" type="rdfs" version="6.0">CIDOC-CRM</target_schema>
31
                <namespaces>
32
                    <namespace prefix="crm" uri="http://www.cidoc-crm.org/cidoc-crm/"/>
33
                </namespaces>
34
            </target_info>
35
            <target_info>
36
                <target_schema schema_file="CRMdig_v3.2.rdfs" type="rdfs" version="3.2">CRMdig</target_schema>
37
                <namespaces>
38
                    <namespace prefix="crmdig" uri="http://www.ics.forth.gr/isl/CRMext/CRMdig.rdfs/"/>
39
                </namespaces>
40
            </target_info>
41
            <target_info>
42
                <target_schema schema_file="CRMext4SKOSandLabel_v1.2.rdfs" type="rdfs" version="1.2">CRMext4SKOSandLabel</target_schema>
43
                <namespaces>
44
                    <namespace prefix="skos" uri="http://www.w3.org/2004/02/skos/core#"/>
45
                </namespaces>
46
            </target_info>
47
            <target_info>
48
                <target_schema schema_file="CRMpc_v1.0.rdfs" type="rdfs" version="1.0">CRMpc</target_schema>
49
                <namespaces>
50
                    <namespace prefix="crm" uri="http://www.cidoc-crm.org/cidoc-crm/"/>
51
                </namespaces>
52
            </target_info>
53
            <target_info>
54
                <target_schema schema_file="crmpe_2.rdfs" type="rdfs" version="2.0">CRMpe</target_schema>
55
                <namespaces>
56
                    <namespace prefix="crmpe" uri="http://parthenos.d4science.org/CRMext/CRMpe.rdfs/"/>
57
                </namespaces>
58
            </target_info>
59
            <target_collection/>
60
        </target>
61
        <mapping_info>
62
            <mapping_created_by_org>ACDH</mapping_created_by_org>
63
            <mapping_created_by_person>Matteo</mapping_created_by_person>
64
            <in_collaboration_with>FORTH</in_collaboration_with>
65
        </mapping_info>
66
        <example_data_info>
67
            <example_data_from>Dariah DE</example_data_from>
68
            <example_data_contact_person/>
69
            <example_data_source_record xml_link="dariahDE___14-07-2017013730___8446.xml"/>
70
            <generator_policy_info generator_link="PARTHENOS-GeneratorPolicy___15-03-2017144440___5286.xml"/>
71
            <example_data_target_record/>
72
        </example_data_info>
73
    </info>
74
    <namespaces>
75
        <namespace prefix="dc" uri="http://purl.org/dc/elements/1.1/"/>
76
        <namespace prefix="dcterms" uri="http://purl.org/dc/terms/"/>
77
        <namespace prefix="marcrel" uri="http://id.loc.gov/vocabulary/relators/"/>
78
        <namespace prefix="academy" uri="http://www.academyofathens.gr/"/>
79
        <namespace prefix="crmpe" uri="http://www.ics.forth.gr/isl/CRMext/CRMpe.rdfs/"/>
80
        <namespace prefix="cld" uri="http://purl.org/cld/terms/"/>
81
        <namespace prefix="parthenos" uri="http://pathenos.d4science.org/handle/DariahDE/"/>
82
    </namespaces>
83
    <mappings>
84
        <mapping>
85
            <domain>
86
                <source_node>/Collection</source_node>
87
                <target_node>
88
                    <entity>
89
                        <type>crm:E78_Collection</type>
90
                        <type>crm:E33_Linguistic_Object</type>
91
                        <instance_generator name="ThingURI">
92
                            <arg name="term" type="xpath">id/text()</arg>
93
                        </instance_generator>
94
                        <label_generator name="CompositeLabel">
95
                            <arg name="label" type="constant">collection</arg>
96
                            <arg name="text" type="xpath">id/text()</arg>
97
                        </label_generator>
98
                    </entity>
99
                </target_node>
100
            </domain>
101
            <link>
102
                <path>
103
                    <source_relation>
104
                        <relation>localizedDescriptions/localizedDescriptions/title</relation>
105
                    </source_relation>
106
                    <target_relation>
107
                        <relationship>crm:P1_is_identified_by</relationship>
108
                    </target_relation>
109
                </path>
110
                <range>
111
                    <source_node>localizedDescriptions/localizedDescriptions/title</source_node>
112
                    <target_node>
113
                        <entity>
114
                            <type>crm:E35_Title</type>
115
                            <instance_generator name="ThingAppellationURI">
116
                                <arg name="term" type="xpath">text()</arg>
117
                            </instance_generator>
118
                            <label_generator name="SimpleLabel">
119
                                <arg name="label" type="xpath">text()</arg>
120
                            </label_generator>
121
                        </entity>
122
                    </target_node>
123
                </range>
124
            </link>
125
            <link>
126
                <path>
127
                    <source_relation>
128
                        <relation>localizedDescriptions/localizedDescriptions/languageId</relation>
129
                    </source_relation>
130
                    <target_relation>
131
                        <relationship>crm:P72_has_language</relationship>
132
                    </target_relation>
133
                </path>
134
                <range>
135
                    <source_node>localizedDescriptions/localizedDescriptions/languageId</source_node>
136
                    <target_node>
137
                        <entity>
138
                            <type>crm:E56_Language</type>
139
                            <instance_generator name="ThingURI">
140
                                <arg name="term" type="xpath">text()</arg>
141
                            </instance_generator>
142
                            <label_generator name="SimpleLabel">
143
                                <arg name="label" type="xpath">text()</arg>
144
                            </label_generator>
145
                        </entity>
146
                    </target_node>
147
                </range>
148
            </link>
149
            <link>
150
                <path>
151
                    <source_relation>
152
                        <relation>collectionType</relation>
153
                    </source_relation>
154
                    <target_relation>
155
                        <relationship>crm:P2_has_type</relationship>
156
                    </target_relation>
157
                </path>
158
                <range>
159
                    <source_node>collectionType</source_node>
160
                    <target_node>
161
                        <entity>
162
                            <type>crm:E55_Type</type>
163
                            <instance_generator name="ThingURI">
164
                                <arg name="term" type="xpath">text()</arg>
165
                            </instance_generator>
166
                            <label_generator name="SimpleLabel">
167
                                <arg name="label" type="xpath">text()</arg>
168
                            </label_generator>
169
                        </entity>
170
                    </target_node>
171
                </range>
172
            </link>
173
            <link>
174
                <path>
175
                    <source_relation>
176
                        <relation>localizedDescriptions/localizedDescriptions/description</relation>
177
                    </source_relation>
178
                    <target_relation>
179
                        <relationship>crm:P3_has_note</relationship>
180
                    </target_relation>
181
                </path>
182
                <range>
183
                    <source_node>localizedDescriptions/localizedDescriptions/description</source_node>
184
                    <target_node>
185
                        <entity>
186
                            <type>:http://www.w3.org/2000/01/rdf-schema#Literal</type>
187
                            <instance_generator name="Literal">
188
                                <arg name="text" type="xpath">text()</arg>
189
                            </instance_generator>
190
                        </entity>
191
                    </target_node>
192
                </range>
193
            </link>
194
            <link>
195
                <path>
196
                    <source_relation>
197
                        <relation>entityCreator</relation>
198
                    </source_relation>
199
                    <target_relation>
200
                        <relationship>crm:P108i_was_produced_by</relationship>
201
                        <entity>
202
                            <type>crm:E12_Production</type>
203
                            <instance_generator name="UUID"/>
204
                            <label_generator name="SimpleLabel">
205
                                <arg name="label" type="xpath">text()</arg>
206
                            </label_generator>
207
                        </entity>
208
                        <relationship>crm:P14_carried_out_by</relationship>
209
                        <entity>
210
                            <type>crm:E39_Actor</type>
211
                            <instance_generator name="ActorURI">
212
                                <arg name="term" type="xpath">text()</arg>
213
                            </instance_generator>
214
                        </entity>
215
                        <relationship>crm:P1_is_identified_by</relationship>
216
                    </target_relation>
217
                </path>
218
                <range>
219
                    <source_node>entityCreator</source_node>
220
                    <target_node>
221
                        <entity>
222
                            <type>crm:E41_Appellation</type>
223
                            <instance_generator name="ActorAppellationURI">
224
                                <arg name="term" type="xpath">text()</arg>
225
                            </instance_generator>
226
                            <label_generator name="SimpleLabel">
227
                                <arg name="label" type="xpath">text()</arg>
228
                            </label_generator>
229
                        </entity>
230
                    </target_node>
231
                </range>
232
            </link>
233
            <link>
234
                <path>
235
                    <source_relation>
236
                        <relation>subjects/subjects</relation>
237
                    </source_relation>
238
                    <target_relation>
239
                        <relationship>crm:P129_is_about</relationship>
240
                    </target_relation>
241
                </path>
242
                <range>
243
                    <source_node>subjects/subjects</source_node>
244
                    <target_node>
245
                        <entity>
246
                            <type>crm:E55_Type</type>
247
                            <instance_generator name="ConceptURI">
248
                                <arg name="term" type="xpath">text()</arg>
249
                            </instance_generator>
250
                            <label_generator name="SimpleLabel">
251
                                <arg name="label" type="xpath">text()</arg>
252
                            </label_generator>
253
                        </entity>
254
                    </target_node>
255
                </range>
256
            </link>
257
            <link>
258
                <path>
259
                    <source_relation>
260
                        <relation>spatials/spatials</relation>
261
                    </source_relation>
262
                    <target_relation>
263
                        <relationship>crm:P129_is_about</relationship>
264
                    </target_relation>
265
                </path>
266
                <range>
267
                    <source_node>spatials/spatials</source_node>
268
                    <target_node>
269
                        <entity>
270
                            <type>crm:E53_Place</type>
271
                            <instance_generator name="UUID"/>
272
                            <label_generator name="CompositeLabel">
273
                                <arg name="label" type="constant">Geographical context related to the collection</arg>
274
                                <arg name="text" type="xpath">text()</arg>
275
                            </label_generator>
276
                        </entity>
277
                    </target_node>
278
                </range>
279
            </link>
280
            <link>
281
                <path>
282
                    <source_relation>
283
                        <relation>temporals/temporals</relation>
284
                    </source_relation>
285
                    <target_relation>
286
                        <relationship>crm:P129_is_about</relationship>
287
                    </target_relation>
288
                </path>
289
                <range>
290
                    <source_node>temporals/temporals</source_node>
291
                    <target_node>
292
                        <entity>
293
                            <type>crm:E52_Time-Span</type>
294
                            <instance_generator name="UUID"/>
295
                            <label_generator name="CompositeLabel">
296
                                <arg name="label" type="constant">Historical context or period related to the collection</arg>
297
                                <arg name="text" type="xpath">text()</arg>
298
                            </label_generator>
299
                        </entity>
300
                    </target_node>
301
                </range>
302
            </link>
303
            <link>
304
                <path>
305
                    <source_relation>
306
                        <relation>collectionCreated</relation>
307
                    </source_relation>
308
                    <target_relation>
309
                        <relationship>crm:P108i_was_produced_by</relationship>
310
                        <entity>
311
                            <type>crm:E12_Production</type>
312
                            <instance_generator name="UUID"/>
313
                            <label_generator name="CompositeLabel">
314
                                <arg name="label" type="constant">creation of the collection</arg>
315
                                <arg name="text" type="xpath">text()</arg>
316
                            </label_generator>
317
                        </entity>
318
                        <relationship>crm:P4_has_time-span</relationship>
319
                        <entity>
320
                            <type>crm:E52_Time-Span</type>
321
                            <instance_generator name="UUID"/>
322
                            <label_generator name="SimpleLabel">
323
                                <arg name="label" type="xpath">text()</arg>
324
                            </label_generator>
325
                        </entity>
326
                        <relationship>crm:P82_at_some_time_within</relationship>
327
                    </target_relation>
328
                </path>
329
                <range>
330
                    <source_node>collectionCreated</source_node>
331
                    <target_node>
332
                        <entity>
333
                            <type>:http://www.w3.org/2000/01/rdf-schema#Literal</type>
334
                            <instance_generator name="Literal">
335
                                <arg name="text" type="xpath">text()</arg>
336
                            </instance_generator>
337
                        </entity>
338
                    </target_node>
339
                </range>
340
            </link>
341
            <link>
342
                <path>
343
                    <source_relation>
344
                        <relation>hosting</relation>
345
                    </source_relation>
346
                    <target_relation>
347
                        <relationship>crmpe:PP4i_is_object_hosted_by</relationship>
348
                        <entity>
349
                            <type>crmpe:PE2_Hosting_Service</type>
350
                            <instance_generator name="ServiceURI">
351
                                <arg name="term" type="xpath">text()</arg>
352
                            </instance_generator>
353
                        </entity>
354
                        <relationship>crm:P7_took_place_at</relationship>
355
                    </target_relation>
356
                </path>
357
                <range>
358
                    <source_node>locations/locations/place</source_node>
359
                    <target_node>
360
                        <entity>
361
                            <type>crm:E53_Place</type>
362
                            <instance_generator name="PlaceURI">
363
                                <arg name="term" type="xpath">text()</arg>
364
                            </instance_generator>
365
                        </entity>
366
                    </target_node>
367
                </range>
368
            </link>
369
            <link>
370
                <path>
371
                    <source_relation>
372
                        <relation>collectionDescriptionRights</relation>
373
                    </source_relation>
374
                    <target_relation>
375
                        <relationship>crm:P104_is_subject_to</relationship>
376
                    </target_relation>
377
                </path>
378
                <range>
379
                    <source_node>collectionDescriptionRights</source_node>
380
                    <target_node>
381
                        <entity>
382
                            <type>crm:E30_Right</type>
383
                            <instance_generator name="ThingURI">
384
                                <arg name="term" type="xpath">text()</arg>
385
                            </instance_generator>
386
                        </entity>
387
                    </target_node>
388
                </range>
389
            </link>
390
        </mapping>
391
        <mapping>
392
            <domain>
393
                <source_node>/Collection/hosting</source_node>
394
                <target_node>
395
                    <entity>
396
                        <type>crmpe:PE2_Hosting_Service</type>
397
                        <instance_generator name="ServiceURI">
398
                            <arg name="term" type="xpath">text()</arg>
399
                        </instance_generator>
400
                    </entity>
401
                </target_node>
402
            </domain>
403
            <link>
404
                <path>
405
                    <source_relation>
406
                        <relation>/Collection/institute</relation>
407
                    </source_relation>
408
                    <target_relation>
409
                        <relationship>crmpe:PP2_provided_by</relationship>
410
                        <entity>
411
                            <type>crm:E40_Legal_Body</type>
412
                            <instance_generator name="ActorURI">
413
                                <arg name="term" type="xpath">text()</arg>
414
                            </instance_generator>
415
                        </entity>
416
                        <relationship>crm:P76_has_contact_point</relationship>
417
                    </target_relation>
418
                </path>
419
                <range>
420
                    <source_node>/Collection/email</source_node>
421
                    <target_node>
422
                        <entity>
423
                            <type>crm:E51_Contact_Point</type>
424
                            <instance_generator name="TwoLevelCustomURI">
425
                                <arg name="level1" type="constant">Thing</arg>
426
                                <arg name="level2" type="constant">Appellation</arg>
427
                                <arg name="term" type="xpath">text()</arg>
428
                            </instance_generator>
429
                        </entity>
430
                    </target_node>
431
                </range>
432
            </link>
433
            <link>
434
                <path>
435
                    <source_relation>
436
                        <relation>/Collection/webPage</relation>
437
                    </source_relation>
438
                    <target_relation>
439
                        <relationship>crmpe:PP2_provided_by</relationship>
440
                        <entity>
441
                            <type>crm:E40_Legal_Body</type>
442
                            <instance_generator name="UUID"/>
443
                            <label_generator name="SimpleLabel">
444
                                <arg name="label" type="xpath">text()</arg>
445
                            </label_generator>
446
                        </entity>
447
                        <relationship>crm:P76_has_contact_point</relationship>
448
                    </target_relation>
449
                </path>
450
                <range>
451
                    <source_node>/Collection/webPage</source_node>
452
                    <target_node>
453
                        <entity>
454
                            <type>crmpe:PE29_Access_Point</type>
455
                            <instance_generator name="URIorUUID">
456
                                <arg name="text" type="xpath">text()</arg>
457
                            </instance_generator>
458
                        </entity>
459
                    </target_node>
460
                </range>
461
            </link>
462
        </mapping>
463
        <mapping>
464
            <domain>
465
                <source_node>/Collection/locations/locations/place</source_node>
466
                <target_node>
467
                    <entity>
468
                        <type>crm:E53_Place</type>
469
                        <instance_generator name="PlaceURI">
470
                            <arg name="term" type="xpath">text()</arg>
471
                        </instance_generator>
472
                    </entity>
473
                </target_node>
474
            </domain>
475
            <link>
476
                <path>
477
                    <source_relation>
478
                        <relation>locations/locations/street</relation>
479
                    </source_relation>
480
                    <target_relation>
481
                        <relationship>crm:P1_is_identified_by</relationship>
482
                    </target_relation>
483
                </path>
484
                <range>
485
                    <source_node>locations/locations/street</source_node>
486
                    <target_node>
487
                        <entity>
488
                            <type>crm:E45_Address</type>
489
                            <instance_generator name="OneLevelCustomURI">
490
                                <arg name="level1" type="constant">thingappellation</arg>
491
                                <arg name="term" type="xpath">text()</arg>
492
                            </instance_generator>
493
                        </entity>
494
                    </target_node>
495
                </range>
496
            </link>
497
            <link>
498
                <path>
499
                    <source_relation>
500
                        <relation>locations/locations/number</relation>
501
                    </source_relation>
502
                    <target_relation>
503
                        <relationship>crm:P1_is_identified_by</relationship>
504
                    </target_relation>
505
                </path>
506
                <range>
507
                    <source_node>locations/locations/number</source_node>
508
                    <target_node>
509
                        <entity>
510
                            <type>crm:E51_Contact_Point</type>
511
                            <instance_generator name="OneLevelCustomURI">
512
                                <arg name="level1" type="constant">street number</arg>
513
                                <arg name="term" type="xpath">text()</arg>
514
                            </instance_generator>
515
                        </entity>
516
                    </target_node>
517
                </range>
518
            </link>
519
            <link>
520
                <path>
521
                    <source_relation>
522
                        <relation>locations/locations/postalCode</relation>
523
                    </source_relation>
524
                    <target_relation>
525
                        <relationship>crm:P1_is_identified_by</relationship>
526
                    </target_relation>
527
                </path>
528
                <range>
529
                    <source_node>locations/locations/postalCode</source_node>
530
                    <target_node>
531
                        <entity>
532
                            <type>crm:E51_Contact_Point</type>
533
                            <instance_generator name="OneLevelCustomURI">
534
                                <arg name="level1" type="constant">postal box appellation</arg>
535
                                <arg name="term" type="xpath">text()</arg>
536
                            </instance_generator>
537
                        </entity>
538
                    </target_node>
539
                </range>
540
            </link>
541
        </mapping>
542
    </mappings>
543

  
544
</x3ml>
15 545
]]>
16 546
				</CODE>
17 547
			</SCRIPT>

Also available in: Unified diff