Project

General

Profile

« Previous | Next » 

Revision 47232

Added tests with real mappings

View differences:

modules/dnet-msro-service/branches/saxonHE/src/test/java/eu/dnetlib/x3m/ApplyX3MappingTest.java
15 15
	final String recordPath = "/eu/dnetlib/x3m/new-10304741.xml";
16 16
	final String mappingPath = "/eu/dnetlib/x3m/mappings.x3ml";
17 17
	final String policyPath = "/eu/dnetlib/x3m/maria-policy.xml";
18
	final String parthenosPolicyPath = "/eu/dnetlib/x3m/parthenos_policy.xml";
19
	final String mappingAriadnePath = "/eu/dnetlib/x3m/mapping_ariadne_dataset_377.x3ml";
18 20

  
19 21
	final String forthInputPath ="/eu/dnetlib/x3m/input.xml";
20 22
	final String forthMappingPath = "/eu/dnetlib/x3m/mappingsWithoutGenerator.x3ml";
......
36 38
	@Test
37 39
	public void test() throws IOException {
38 40
		String m = getString(mappingPath);
39
		String g = getString(policyPath);
41
		String g = getString(parthenosPolicyPath);
40 42
		String r = getString(recordPath);
41 43
		ApplyX3Mapping x3m = new ApplyX3Mapping(new String[]{m}, g, true);
42 44
		String res = x3m.apply(r);
......
45 47
	}
46 48

  
47 49
	@Test
50
	public void testAriadne() throws IOException {
51
		String m = getString(mappingAriadnePath);
52
		String g = getString(parthenosPolicyPath);
53
		String r = getString(recordPath);
54
		ApplyX3Mapping x3m = new ApplyX3Mapping(new String[]{m}, g, true);
55
		String res = x3m.apply(r);
56
		System.out.println(res);
57

  
58
	}
59

  
60
	@Test
48 61
	public void testAll() throws IOException {
49
		String m = getString(mappingPath);
50
		String g = getString(policyPath);
62
		String m = getString(mappingAriadnePath);
63
		String g = getString(parthenosPolicyPath);
51 64

  
52 65
		ApplyX3Mapping x3m = new ApplyX3Mapping(new String[]{m}, g, true);
53 66
		for(String path : allInputFiles){
modules/dnet-msro-service/branches/saxonHE/src/test/resources/eu/dnetlib/x3m/parthenos_policy.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<generator_policy>
3

  
4
	<!-- The prefix is a namespace that must be declared in the X3ML definition.
5
	In PARTHENOS it was decided that it is constructed by the namespace of PARTHENOS followed by the provider
6
	and the database that is being mapped
7
	e.g. prefix="parthenos" and in the x3ml define <namespace prefix="parthenos" uri="http://parthenos-project.eu/FORTH/myDB/"/> -->
8

  
9
	<generator name="ServiceURI" prefix="parthenos">
10
		<pattern>Service/{term}</pattern>
11
	</generator>
12
	<generator name="DatasetURI" prefix="parthenos">
13
		<pattern>Dataset/{term}</pattern>
14
	</generator>
15
	<generator name="SoftwareURI" prefix="parthenos">
16
		<pattern>Software/{term}</pattern>
17
	</generator>
18
	<generator name="ActorURI" prefix="parthenos">
19
		<pattern>Actor/{term}</pattern>
20
	</generator>
21
	<generator name="ProjectURI" prefix="parthenos">
22
		<pattern>Project/{term}</pattern>
23
	</generator>
24
	<generator name="ServiceAppellationURI" prefix="parthenos">
25
		<pattern>Service/Appellation/{term}</pattern>
26
	</generator>
27
	<generator name="DatasetAppellationURI" prefix="parthenos">
28
		<pattern>Dataset/Appellation/{term}</pattern>
29
	</generator>
30
	<generator name="SoftwareAppellationURI" prefix="parthenos">
31
		<pattern>Software/Appellation/{term}</pattern>
32
	</generator>
33
	<generator name="ActorAppellationURI" prefix="parthenos">
34
		<pattern>Actor/Appellation/{term}</pattern>
35
	</generator>
36
	<generator name="ProjectAppellationURI" prefix="parthenos">
37
		<pattern>Project/Appellation/{term}</pattern>
38
	</generator>
39
	<generator name="ThingAppellationURI" prefix="parthenos">
40
		<pattern>Thing/Appellation/{term}</pattern>
41
	</generator>
42
	<generator name="EventAppellationURI" prefix="parthenos">
43
		<pattern>Event/Appellation/{term}</pattern>
44
	</generator>
45
	<generator name="PlaceAppellationURI" prefix="parthenos">
46
		<pattern>Place/Appellation/{term}</pattern>
47
	</generator>
48
	<generator name="ThingURI" prefix="parthenos">
49
		<pattern>Thing/{term}</pattern>
50
	</generator>
51
	<generator name="EventURI" prefix="parthenos">
52
		<pattern>Event/{term}</pattern>
53
	</generator>
54
	<generator name="Time-SpanURI" prefix="parthenos">
55
		<pattern>Time-Span/{term}</pattern>
56
	</generator>
57
	<generator name="PlaceURI" prefix="parthenos">
58
		<pattern>Place/{term}</pattern>
59
	</generator>
60
	<generator name="DimensionURI" prefix="parthenos">
61
		<pattern>Dimension/{term}</pattern>
62
	</generator>
63
	<generator name="ConceptURI" prefix="parthenos">
64
		<pattern>Concept/{term}</pattern>
65
	</generator>
66
	<generator name="OneLevelCustomURI" prefix="parthenos">
67
		<pattern>{level1}/{term}</pattern>
68
	</generator>
69
	<generator name="TwoLevelCustomURI" prefix="parthenos">
70
		<pattern>{level1}/{level2}/{term}</pattern>
71
	</generator>
72
	<generator name="OneLevelCustomURIwCount" prefix="parthenos">
73
		<pattern>{level1}/{count}/{term}</pattern>
74
	</generator>
75
	<generator name="TwoLevelCustomURIwCount" prefix="parthenos">
76
		<pattern>{level1}/{level2}/{count}/{term}</pattern>
77
	</generator>
78
	<generator name="SimpleLabel">
79
		<pattern>{label}</pattern>
80
	</generator>
81
	<generator name="CompositeLabel">
82
		<pattern>{label} {text}</pattern>
83
	</generator>
84
	<generator name="GermanDateTime">
85
		<custom generatorClass="gr.forth.GermanDate">
86
			<set-arg name="bound" type="constant"/>
87
			<set-arg name="text"/>
88
		</custom>
89
	</generator>
90
	<generator name="URIorUUID">
91
		<custom generatorClass="gr.forth.URIorUUID">
92
			<set-arg name="text"/>
93
		</custom>
94
	</generator>
95
</generator_policy>
modules/dnet-msro-service/branches/saxonHE/src/test/resources/eu/dnetlib/x3m/mapping_ariadne_dataset_377.x3ml
1
<x3ml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" source_type="xpath" version="1.0" xsi:noNamespaceSchemaLocation="x3ml_v1.0.xsd">
2
    <info>
3
        <title>ACDM 2 PE without XSD (part 2)</title>
4
        <general_description>acdm:dataset</general_description>
5
        <source>
6
            <source_info>
7
                <source_schema schema_file="ACDM_Example_For_3M___25-11-2016115336___9469.xml" type="xsd" version="6.9">acdm</source_schema>
8
            </source_info>
9
            <source_collection>Ariadne</source_collection>
10
        </source>
11
        <target>
12
            <target_info>
13
                <target_schema schema_file="cidoc_crm_v6.0-draft-2015January.rdfs" type="rdfs" version="6.0">CIDOC-CRM</target_schema>
14
                <namespaces>
15
                    <namespace prefix="crm" uri="http://www.cidoc-crm.org/cidoc-crm/"/>
16
                </namespaces>
17
            </target_info>
18
            <target_info>
19
                <target_schema schema_file="FRBR2.0-draft-B.rdfs" type="rdfs" version="2.1">FRBR</target_schema>
20
                <namespaces>
21
                    <namespace prefix="frbr" uri="http://www.cidoc-crm.org/frbr/"/>
22
                </namespaces>
23
            </target_info>
24
            <target_info>
25
                <target_schema schema_file="CRMext4SKOSandLabel_v1.2.rdfs" type="rdfs" version="1.2">CRMext4SKOSandLabel</target_schema>
26
                <namespaces>
27
                    <namespace prefix="skos" uri="http://www.w3.org/2004/02/skos/core#"/>
28
                </namespaces>
29
            </target_info>
30
            <target_info>
31
                <target_schema schema_file="crmpe1.11___30-03-2017104444___6320.rdfs" type="rdfs" version="1.11">CRMpe</target_schema>
32
                <namespaces>
33
                    <namespace prefix="crmpe" uri="http://www.ics.forth.gr/isl/CRMext/CRMpe.rdfs/"/>
34
                </namespaces>
35
            </target_info>
36
            <target_info>
37
                <target_schema schema_file="CRMdig_v3.2.1___25-11-2016122829___7450.rdfs" type="rdfs" version="3.2">CRMdig</target_schema>
38
                <namespaces>
39
                    <namespace prefix="crmdig" uri="http://www.ics.forth.gr/isl/CRMext/CRMdig.rdfs/"/>
40
                </namespaces>
41
            </target_info>
42
            <target_info>
43
                <target_schema schema_file="CRMpc_v1.1___28-11-2016115657___6268.rdfs" type="rdfs" version="1.1">CRMpc</target_schema>
44
                <namespaces>
45
                    <namespace prefix="crm" uri="http://www.cidoc-crm.org/cidoc-crm/"/>
46
                </namespaces>
47
            </target_info>
48
            <target_info>
49
                <target_schema schema_file="skos___28-04-2017090912___7229.rdf" type="" version="">skos</target_schema>
50
                <namespaces>
51
                    <namespace prefix="skos" uri="http://www.w3.org/2004/02/skos/core#"/>
52
                </namespaces>
53
            </target_info>
54
            <target_collection/>
55
        </target>
56
        <mapping_info>
57
            <mapping_created_by_org>ISTI - CNR/PIN</mapping_created_by_org>
58
            <mapping_created_by_person>Nicola Aloia, Ilenia Galluccio, Achille Felicetti</mapping_created_by_person>
59
            <in_collaboration_with>George Bruseker; Maria Theodoridou</in_collaboration_with>
60
        </mapping_info>
61
        <example_data_info>
62
            <example_data_from>Oxygen</example_data_from>
63
            <example_data_contact_person>Nicola</example_data_contact_person>
64
            <example_data_source_record xml_link="acdm-dataset___03-05-2017121231___11097.xml"/>
65
            <generator_policy_info generator_link="PARTHENOS-GeneratorPolicy_v1.0___22-03-2017152151___13573.xml"/>
66
            <example_data_target_record/>
67
        </example_data_info>
68
    </info>
69
    <namespaces>
70
        <namespace prefix="acdm" uri="http://registry.ariadne-infrastructure.eu/"/>
71
        <namespace prefix="dcterms" uri="http://purl.org/dc/terms/"/>
72
        <namespace prefix="foaf" uri="http://xmlns.com/foaf/0.1/"/>
73
        <namespace prefix="dc" uri="http://purl.org/dc/elements/1.1/"/>
74
        <namespace prefix="parthenos" uri="http://parthenos-project.eu"/>
75
        <namespace prefix="dcat" uri="http://www.w3.org/ns/dcat#"/>
76
        <namespace prefix="owl" uri="http://www.w3.org/2002/07/owl#"/>
77
        <namespace prefix="dbpedia-owl" uri="http://dbpedia.org/ontology/"/>
78
        <namespace prefix="vcard" uri="https://www.w3.org/TR/vcard-rdf/"/>
79
        <namespace prefix="aat" uri="http://vocab.getty.edu/aat/"/>
80
        <namespace prefix="sch" uri="http://purl.oclc.org/dsdl/schematron"/>
81
        <namespace prefix="wgs84" uri="http://www.w3.org/2003/01/geo/wgs84_pos#"/>
82
        <namespace prefix="enrichment" uri="http://www.europeana.eu/schemas/edm/enrichment/"/>
83
        <namespace prefix="ore" uri="http://www.openarchives.org/ore/terms/"/>
84
        <namespace prefix="rdaGr2" uri="http://rdvocab.info/ElementsGr2/"/>
85
        <namespace prefix="edm" uri="http://www.europeana.eu/schemas/edm/"/>
86
        <namespace prefix="adms" uri="http://www.w3.org/ns/adms#"/>
87
        <namespace prefix="xsi" uri="http://www.w3.org/2001/XMLSchema-instance"/>
88
        <namespace prefix="parthenos" uri="http://www.parthenos-project.eu/ARIADNE/ARIADNECatalog/"/>
89
    </namespaces>
90
    <mappings>
91
        <mapping>
92
            <domain>
93
                <source_node>//acdm:dataset</source_node>
94
                <target_node>
95
                    <entity>
96
                        <type>crmpe:PE22_Persistent_Dataset</type>
97
                        <type>crm:E33_Linguistic_Object</type>
98
                        <instance_generator name="DatasetURI">
99
                            <arg name="term" type="xpath">dcterms:identifier/text()</arg>
100
                        </instance_generator>
101
                        <label_generator name="SimpleLabel">
102
                            <arg name="label" type="xpath">dcterms:identifier/text()</arg>
103
                        </label_generator>
104
                    </entity>
105
                </target_node>
106
            </domain>
107
            <link>
108
                <path>
109
                    <source_relation>
110
                        <relation>dcterms:isPartOf</relation>
111
                    </source_relation>
112
                    <target_relation>
113
                        <relationship>crmpe:PP20i_is_persistent_dataset_part_of</relationship>
114
                    </target_relation>
115
                </path>
116
                <range>
117
                    <source_node>dcterms:isPartOf</source_node>
118
                    <target_node>
119
                        <entity>
120
                            <type>crmpe:PE22_Persistent_Dataset</type>
121
                            <instance_generator name="DatasetURI">
122
                                <arg name="term" type="xpath">text()</arg>
123
                            </instance_generator>
124
                            <label_generator name="SimpleLabel">
125
                                <arg name="label" type="xpath">text()</arg>
126
                            </label_generator>
127
                        </entity>
128
                    </target_node>
129
                </range>
130
            </link>
131
            <link>
132
                <path>
133
                    <source_relation>
134
                        <relation>acdm:publisher</relation>
135
                    </source_relation>
136
                    <target_relation>
137
                        <relationship>crm:P12i_was_present_at</relationship>
138
                        <entity>
139
                            <type>crm:E7_Activity</type>
140
                            <instance_generator name="UUID"/>
141
                            <additional>
142
                                <relationship>crm:P2_has_type</relationship>
143
                                <entity>
144
                                    <type>crm:E55_Type</type>
145
                                    <instance_info>
146
                                        <constant>ARIADNE Content Provision</constant>
147
                                    </instance_info>
148
                                    <instance_generator name="ConceptURI">
149
                                        <arg name="term" type="constant">activitytype</arg>
150
                                        <arg name="level1" type="constant">contentprovision</arg>
151
                                    </instance_generator>
152
                                    <label_generator name="SimpleLabel">
153
                                        <arg name="label" type="constant">ARIADNE Content Provision</arg>
154
                                    </label_generator>
155
                                </entity>
156
                            </additional>
157
                        </entity>
158
                        <relationship>crm:P01i_is_domain_of</relationship>
159
                        <entity>
160
                            <type>crm:PC14_carried_out_by</type>
161
                            <instance_generator name="UUID"/>
162
                            <additional>
163
                                <relationship>crm:P14.1_in_the_role_of</relationship>
164
                                <entity>
165
                                    <type>crm:E55_Type</type>
166
                                    <instance_info>
167
                                        <constant>Publisher</constant>
168
                                    </instance_info>
169
                                    <instance_generator name="ConceptURI">
170
                                        <arg name="term" type="constant">role</arg>
171
                                        <arg name="level1" type="constant">publisher</arg>
172
                                    </instance_generator>
173
                                    <label_generator name="SimpleLabel">
174
                                        <arg name="label" type="constant">publisher</arg>
175
                                    </label_generator>
176
                                </entity>
177
                            </additional>
178
                        </entity>
179
                        <relationship>crm:P02_has_range</relationship>
180
                    </target_relation>
181
                </path>
182
                <range>
183
                    <source_node>acdm:publisher</source_node>
184
                    <target_node>
185
                        <entity>
186
                            <type>crm:E39_Actor</type>
187
                            <instance_generator name="ActorURI">
188
                                <arg name="term" type="xpath">foaf:name/text()</arg>
189
                            </instance_generator>
190
                            <label_generator name="SimpleLabel">
191
                                <arg name="label" type="xpath">foaf:name/text()</arg>
192
                            </label_generator>
193
                        </entity>
194
                    </target_node>
195
                </range>
196
            </link>
197
            <link>
198
                <path>
199
                    <source_relation>
200
                        <relation>acdm:contributor</relation>
201
                    </source_relation>
202
                    <target_relation>
203
                        <relationship>crm:P94i_was_created_by</relationship>
204
                        <entity variable="create1">
205
                            <type>crm:E65_Creation</type>
206
                            <instance_generator name="UUID"/>
207
                            <additional>
208
                                <relationship>crm:P2_has_type</relationship>
209
                                <entity>
210
                                    <type>crm:E55_Type</type>
211
                                    <instance_info>
212
                                        <constant>ARIADNE Content Creation</constant>
213
                                    </instance_info>
214
                                    <instance_generator name="ConceptURI">
215
                                        <arg name="term" type="constant">activitytype</arg>
216
                                        <arg name="level1" type="constant">contentcreation</arg>
217
                                    </instance_generator>
218
                                    <label_generator name="SimpleLabel">
219
                                        <arg name="label" type="constant">ARIADNE Content Contribution</arg>
220
                                    </label_generator>
221
                                </entity>
222
                            </additional>
223
                        </entity>
224
                        <relationship>crm:P01i_is_domain_of</relationship>
225
                        <entity>
226
                            <type>crm:PC14_carried_out_by</type>
227
                            <instance_generator name="UUID"/>
228
                            <additional>
229
                                <relationship>crm:P14.1_in_the_role_of</relationship>
230
                                <entity>
231
                                    <type>crm:E55_Type</type>
232
                                    <instance_info>
233
                                        <constant>Contributor</constant>
234
                                    </instance_info>
235
                                    <instance_generator name="ConceptURI">
236
                                        <arg name="term" type="constant">role</arg>
237
                                        <arg name="level1" type="constant">contributor</arg>
238
                                    </instance_generator>
239
                                    <label_generator name="SimpleLabel">
240
                                        <arg name="label" type="constant">Contributor</arg>
241
                                    </label_generator>
242
                                </entity>
243
                            </additional>
244
                        </entity>
245
                        <relationship>crm:P02_has_range</relationship>
246
                    </target_relation>
247
                </path>
248
                <range>
249
                    <source_node>acdm:contributor</source_node>
250
                    <target_node>
251
                        <entity>
252
                            <type>crm:E39_Actor</type>
253
                            <instance_generator name="ActorURI">
254
                                <arg name="term" type="xpath">foaf:name/text()</arg>
255
                            </instance_generator>
256
                            <label_generator name="SimpleLabel">
257
                                <arg name="label" type="xpath">foaf:name/text()</arg>
258
                            </label_generator>
259
                        </entity>
260
                    </target_node>
261
                </range>
262
            </link>
263
            <link>
264
                <path>
265
                    <source_relation>
266
                        <relation>acdm:creator</relation>
267
                    </source_relation>
268
                    <target_relation>
269
                        <relationship>crm:P94i_was_created_by</relationship>
270
                        <entity variable="create1">
271
                            <type>crm:E65_Creation</type>
272
                            <instance_generator name="UUID"/>
273
                            <additional>
274
                                <relationship>crm:P2_has_type</relationship>
275
                                <entity>
276
                                    <type>crm:E55_Type</type>
277
                                    <instance_info>
278
                                        <constant>ARIADNE Content Creation</constant>
279
                                    </instance_info>
280
                                    <instance_generator name="ConceptURI">
281
                                        <arg name="term" type="constant">activitytype</arg>
282
                                        <arg name="level1" type="constant">ariadnecontentcreation</arg>
283
                                    </instance_generator>
284
                                    <label_generator name="SimpleLabel">
285
                                        <arg name="label" type="constant">ARIADNE Content Creation</arg>
286
                                    </label_generator>
287
                                </entity>
288
                            </additional>
289
                        </entity>
290
                        <relationship>crm:P01i_is_domain_of</relationship>
291
                        <entity>
292
                            <type>crm:PC14_carried_out_by</type>
293
                            <instance_generator name="UUID"/>
294
                            <additional>
295
                                <relationship>crm:P14.1_in_the_role_of</relationship>
296
                                <entity>
297
                                    <type>crm:E55_Type</type>
298
                                    <instance_info>
299
                                        <constant>Creator</constant>
300
                                    </instance_info>
301
                                    <instance_generator name="ConceptURI">
302
                                        <arg name="term" type="constant">role</arg>
303
                                        <arg name="level1" type="constant">creator</arg>
304
                                    </instance_generator>
305
                                    <label_generator name="SimpleLabel">
306
                                        <arg name="label" type="constant">Creator</arg>
307
                                    </label_generator>
308
                                </entity>
309
                            </additional>
310
                        </entity>
311
                        <relationship>crm:P02_has_range</relationship>
312
                    </target_relation>
313
                </path>
314
                <range>
315
                    <source_node>acdm:creator</source_node>
316
                    <target_node>
317
                        <entity>
318
                            <type>crm:E39_Actor</type>
319
                            <instance_generator name="ActorURI">
320
                                <arg name="term" type="xpath">foaf:name/text()</arg>
321
                            </instance_generator>
322
                            <label_generator name="SimpleLabel">
323
                                <arg name="label" type="xpath">foaf:name/text()</arg>
324
                            </label_generator>
325
                        </entity>
326
                    </target_node>
327
                </range>
328
            </link>
329
            <link>
330
                <path>
331
                    <source_relation>
332
                        <relation>acdm:owner</relation>
333
                    </source_relation>
334
                    <target_relation>
335
                        <relationship>crm:P104_is_subject_to</relationship>
336
                        <entity>
337
                            <type>crm:E30_Right</type>
338
                            <instance_generator name="UUID"/>
339
                        </entity>
340
                        <relationship>crm:P75i_is_possessed_by</relationship>
341
                    </target_relation>
342
                </path>
343
                <range>
344
                    <source_node>acdm:owner</source_node>
345
                    <target_node>
346
                        <entity>
347
                            <type>crm:E39_Actor</type>
348
                            <instance_generator name="ActorURI">
349
                                <arg name="term" type="xpath">foaf:name/text()</arg>
350
                            </instance_generator>
351
                            <label_generator name="SimpleLabel">
352
                                <arg name="label" type="xpath">foaf:name/text()</arg>
353
                            </label_generator>
354
                        </entity>
355
                    </target_node>
356
                </range>
357
            </link>
358
            <link>
359
                <path>
360
                    <source_relation>
361
                        <relation>acdm:legalResponsible</relation>
362
                    </source_relation>
363
                    <target_relation>
364
                        <relationship>crm:P12i_was_present_at</relationship>
365
                        <entity>
366
                            <type>crm:E7_Activity</type>
367
                            <instance_generator name="UUID"/>
368
                            <additional>
369
                                <relationship>crm:P2_has_type</relationship>
370
                                <entity>
371
                                    <type>crm:E55_Type</type>
372
                                    <instance_info>
373
                                        <constant>ARIADNE Content Legal Responsibility</constant>
374
                                    </instance_info>
375
                                    <instance_generator name="ConceptURI">
376
                                        <arg name="term" type="constant">activitytype</arg>
377
                                        <arg name="level1" type="constant">legalresponsibility</arg>
378
                                    </instance_generator>
379
                                    <label_generator name="SimpleLabel">
380
                                        <arg name="label" type="constant">ARIADNE Content Legal Responsibility</arg>
381
                                    </label_generator>
382
                                </entity>
383
                            </additional>
384
                        </entity>
385
                        <relationship>crm:P01i_is_domain_of</relationship>
386
                        <entity>
387
                            <type>crm:PC14_carried_out_by</type>
388
                            <instance_generator name="UUID"/>
389
                            <additional>
390
                                <relationship>crm:P14.1_in_the_role_of</relationship>
391
                                <entity>
392
                                    <type>crm:E55_Type</type>
393
                                    <instance_info>
394
                                        <constant>Legal Responsible</constant>
395
                                    </instance_info>
396
                                    <instance_generator name="ConceptURI">
397
                                        <arg name="term" type="constant">role</arg>
398
                                        <arg name="level1" type="constant">legalresponsible</arg>
399
                                    </instance_generator>
400
                                    <label_generator name="SimpleLabel">
401
                                        <arg name="label" type="constant">Legal Responsible</arg>
402
                                    </label_generator>
403
                                </entity>
404
                            </additional>
405
                        </entity>
406
                        <relationship>crm:P02_has_range</relationship>
407
                    </target_relation>
408
                </path>
409
                <range>
410
                    <source_node>acdm:legalResponsible</source_node>
411
                    <target_node>
412
                        <entity>
413
                            <type>crm:E39_Actor</type>
414
                            <instance_generator name="ActorURI">
415
                                <arg name="term" type="xpath">foaf:name/text()</arg>
416
                            </instance_generator>
417
                            <label_generator name="SimpleLabel">
418
                                <arg name="label" type="xpath">foaf:name/text()</arg>
419
                            </label_generator>
420
                        </entity>
421
                    </target_node>
422
                </range>
423
            </link>
424
            <link>
425
                <path>
426
                    <source_relation>
427
                        <relation>acdm:scientificResponsible</relation>
428
                    </source_relation>
429
                    <target_relation>
430
                        <relationship>crmpe:PP24i_is_dataset_snapshot_of</relationship>
431
                        <entity>
432
                            <type>crmpe:PE24_Volatile_Dataset</type>
433
                            <instance_generator name="UUID"/>
434
                        </entity>
435
                        <relationship>crmpe:PP13i_was_volatile_dataset_curated_by</relationship>
436
                        <entity>
437
                            <type>crmpe:PE12_Data_Curating_Service</type>
438
                            <instance_generator name="UUID"/>
439
                        </entity>
440
                        <relationship>crm:P01i_is_domain_of</relationship>
441
                        <entity>
442
                            <type>crm:PC14_carried_out_by</type>
443
                            <instance_generator name="UUID"/>
444
                            <additional>
445
                                <relationship>crm:P14.1_in_the_role_of</relationship>
446
                                <entity>
447
                                    <type>crm:E55_Type</type>
448
                                    <instance_info>
449
                                        <constant>Scientific Responsible</constant>
450
                                    </instance_info>
451
                                    <instance_generator name="ConceptURI">
452
                                        <arg name="term" type="constant">role</arg>
453
                                        <arg name="level1" type="constant">legalresponsible</arg>
454
                                    </instance_generator>
455
                                    <label_generator name="SimpleLabel">
456
                                        <arg name="label" type="constant">Legal Responsible</arg>
457
                                    </label_generator>
458
                                </entity>
459
                            </additional>
460
                        </entity>
461
                        <relationship>crm:P02_has_range</relationship>
462
                    </target_relation>
463
                </path>
464
                <range>
465
                    <source_node>acdm:scientificResponsible</source_node>
466
                    <target_node>
467
                        <entity>
468
                            <type>crm:E39_Actor</type>
469
                            <instance_generator name="ActorURI">
470
                                <arg name="term" type="xpath">foaf:name/text()</arg>
471
                            </instance_generator>
472
                            <label_generator name="SimpleLabel">
473
                                <arg name="label" type="xpath">foaf:name/text()</arg>
474
                            </label_generator>
475
                        </entity>
476
                    </target_node>
477
                </range>
478
            </link>
479
            <link>
480
                <path>
481
                    <source_relation>
482
                        <relation>acdm:technicalResponsible</relation>
483
                    </source_relation>
484
                    <target_relation>
485
                        <relationship>crmpe:PP8i_is_dataset_hosted_by</relationship>
486
                        <entity>
487
                            <type>crmpe:PE15_Data_E-Service</type>
488
                            <instance_generator name="UUID"/>
489
                        </entity>
490
                        <relationship>crm:P01i_is_domain_of</relationship>
491
                        <entity>
492
                            <type>crm:PC14_carried_out_by</type>
493
                            <instance_generator name="UUID"/>
494
                            <additional>
495
                                <relationship>crm:P14.1_in_the_role_of</relationship>
496
                                <entity>
497
                                    <type>crm:E55_Type</type>
498
                                    <instance_info>
499
                                        <constant>Technical Responsible</constant>
500
                                    </instance_info>
501
                                    <instance_generator name="ConceptURI">
502
                                        <arg name="term" type="constant">role</arg>
503
                                        <arg name="level1" type="xpath">technicalresponsible</arg>
504
                                    </instance_generator>
505
                                    <label_generator name="SimpleLabel">
506
                                        <arg name="label" type="constant">Technical Responsible</arg>
507
                                    </label_generator>
508
                                </entity>
509
                            </additional>
510
                        </entity>
511
                        <relationship>crm:P02_has_range</relationship>
512
                    </target_relation>
513
                </path>
514
                <range>
515
                    <source_node>acdm:technicalResponsible</source_node>
516
                    <target_node>
517
                        <entity>
518
                            <type>crm:E39_Actor</type>
519
                            <instance_generator name="ActorURI">
520
                                <arg name="term" type="xpath">foaf:name/text()</arg>
521
                            </instance_generator>
522
                            <label_generator name="SimpleLabel">
523
                                <arg name="label" type="xpath">foaf:name/text()</arg>
524
                            </label_generator>
525
                        </entity>
526
                    </target_node>
527
                </range>
528
            </link>
529
            <link>
530
                <path>
531
                    <source_relation>
532
                        <relation>acdm:hasAttachedDocuments</relation>
533
                    </source_relation>
534
                    <target_relation>
535
                        <relationship>crm:P148_has_component</relationship>
536
                    </target_relation>
537
                </path>
538
                <range>
539
                    <source_node>acdm:hasAttachedDocuments</source_node>
540
                    <target_node>
541
                        <entity>
542
                            <type>crmpe:PE22_Persistent_Dataset</type>
543
                            <instance_generator name="DatasetURI">
544
                                <arg name="term" type="xpath">text()</arg>
545
                            </instance_generator>
546
                            <label_generator name="SimpleLabel">
547
                                <arg name="label" type="xpath">text()</arg>
548
                            </label_generator>
549
                        </entity>
550
                    </target_node>
551
                </range>
552
            </link>
553
            <link>
554
                <path>
555
                    <source_relation>
556
                        <relation>dcterms:title</relation>
557
                    </source_relation>
558
                    <target_relation>
559
                        <relationship>crm:P102_has_title</relationship>
560
                    </target_relation>
561
                </path>
562
                <range>
563
                    <source_node>dcterms:title</source_node>
564
                    <target_node>
565
                        <entity>
566
                            <type>crm:E35_Title</type>
567
                            <instance_generator name="DatasetAppellationURI">
568
                                <arg name="term" type="xpath">text()</arg>
569
                            </instance_generator>
570
                            <label_generator name="SimpleLabel">
571
                                <arg name="label" type="xpath">text()</arg>
572
                            </label_generator>
573
                        </entity>
574
                    </target_node>
575
                </range>
576
            </link>
577
            <link>
578
                <path>
579
                    <source_relation>
580
                        <relation>dc:description</relation>
581
                    </source_relation>
582
                    <target_relation>
583
                        <relationship>crm:P3_has_note</relationship>
584
                    </target_relation>
585
                </path>
586
                <range>
587
                    <source_node>dc:description</source_node>
588
                    <target_node>
589
                        <entity>
590
                            <type>http://www.w3.org/2000/01/rdf-schema#Literal</type>
591
                            <instance_generator name="Literal">
592
                                <arg name="text" type="xpath">text()</arg>
593
                            </instance_generator>
594
                            <label_generator name="SimpleLabel">
595
                                <arg name="label" type="xpath">text()</arg>
596
                            </label_generator>
597
                        </entity>
598
                    </target_node>
599
                </range>
600
            </link>
601
            <link>
602
                <path>
603
                    <source_relation>
604
                        <relation>dcterms:issued</relation>
605
                    </source_relation>
606
                    <target_relation>
607
                        <relationship>crm:P94i_was_created_by</relationship>
608
                        <entity>
609
                            <type>frbr:F30_Publication_Event</type>
610
                            <instance_generator name="UUID"/>
611
                        </entity>
612
                        <relationship>crm:P4_has_time-span</relationship>
613
                        <entity>
614
                            <type>crm:E52_Time-Span</type>
615
                            <instance_generator name="UUID"/>
616
                        </entity>
617
                        <relationship>crm:P82_at_some_time_within</relationship>
618
                    </target_relation>
619
                </path>
620
                <range>
621
                    <source_node>dcterms:issued</source_node>
622
                    <target_node>
623
                        <entity>
624
                            <type>http://www.w3.org/2000/01/rdf-schema#Literal</type>
625
                            <instance_generator name="Literal">
626
                                <arg name="text" type="xpath">text()</arg>
627
                            </instance_generator>
628
                            <label_generator name="SimpleLabel">
629
                                <arg name="label" type="constant">Publication of Dataset</arg>
630
                            </label_generator>
631
                        </entity>
632
                    </target_node>
633
                </range>
634
            </link>
635
            <link>
636
                <path>
637
                    <source_relation>
638
                        <relation>dcterms:modified</relation>
639
                    </source_relation>
640
                    <target_relation>
641
                        <relationship>crmdig:L11i_was_output_of</relationship>
642
                        <entity>
643
                            <type>crmdig:D7_Digital_Machine_Event</type>
644
                            <instance_generator name="UUID"/>
645
                        </entity>
646
                        <relationship>crm:P4_has_time-span</relationship>
647
                        <entity>
648
                            <type>crm:E52_Time-Span</type>
649
                            <instance_generator name="UUID"/>
650
                        </entity>
651
                        <relationship>crm:P82_at_some_time_within</relationship>
652
                    </target_relation>
653
                </path>
654
                <range>
655
                    <source_node>dcterms:modified</source_node>
656
                    <target_node>
657
                        <entity>
658
                            <type>http://www.w3.org/2000/01/rdf-schema#Literal</type>
659
                            <instance_generator name="Literal">
660
                                <arg name="text" type="xpath">text()</arg>
661
                            </instance_generator>
662
                            <label_generator name="SimpleLabel">
663
                                <arg name="label" type="constant">Last Modification of Dataset</arg>
664
                            </label_generator>
665
                        </entity>
666
                    </target_node>
667
                </range>
668
            </link>
669
            <link>
670
                <path>
671
                    <source_relation>
672
                        <relation>acdm:originalId</relation>
673
                    </source_relation>
674
                    <target_relation>
675
                        <relationship>crm:P1_is_identified_by</relationship>
676
                    </target_relation>
677
                </path>
678
                <range>
679
                    <source_node>acdm:originalId</source_node>
680
                    <target_node>
681
                        <entity>
682
                            <type>crm:E42_Identifier</type>
683
                            <instance_generator name="DatasetAppellationURI">
684
                                <arg name="term" type="xpath">text()</arg>
685
                            </instance_generator>
686
                            <label_generator name="SimpleLabel">
687
                                <arg name="label" type="xpath">Original ID</arg>
688
                            </label_generator>
689
                            <additional>
690
                                <relationship>crm:P2_has_type</relationship>
691
                                <entity>
692
                                    <type>crm:E55_Type</type>
693
                                    <instance_info>
694
                                        <constant>OriginalID</constant>
695
                                    </instance_info>
696
                                    <instance_generator name="ConceptURI">
697
                                        <arg name="term" type="constant">idtype</arg>
698
                                        <arg name="level1" type="constant">originalid</arg>
699
                                    </instance_generator>
700
                                    <label_generator name="SimpleLabel">
701
                                        <arg name="label" type="constant">Original ID</arg>
702
                                    </label_generator>
703
                                </entity>
704
                            </additional>
705
                        </entity>
706
                    </target_node>
707
                </range>
708
            </link>
709
            <link>
710
                <path>
711
                    <source_relation>
712
                        <relation>dc:language</relation>
713
                    </source_relation>
714
                    <target_relation>
715
                        <relationship>crm:P72_has_language</relationship>
716
                    </target_relation>
717
                </path>
718
                <range>
719
                    <source_node>dc:language</source_node>
720
                    <target_node>
721
                        <entity>
722
                            <type>crm:E56_Language</type>
723
                            <instance_generator name="OneLevelCustomURI">
724
                                <arg name="level1" type="xpath">languagetype</arg>
725
                                <arg name="term" type="xpath">text()</arg>
726
                            </instance_generator>
727
                            <label_generator name="SimpleLabel">
728
                                <arg name="label" type="xpath">text()</arg>
729
                            </label_generator>
730
                        </entity>
731
                    </target_node>
732
                </range>
733
            </link>
734
            <link>
735
                <path>
736
                    <source_relation>
737
                        <relation>acdm:accessPolicy</relation>
738
                    </source_relation>
739
                    <target_relation>
740
                        <relationship>crm:P104_is_subject_to</relationship>
741
                        <entity>
742
                            <type>crm:E30_Right</type>
743
                            <instance_generator name="UUID"/>
744
                        </entity>
745
                        <relationship>crm:P2_has_type</relationship>
746
                    </target_relation>
747
                </path>
748
                <range>
749
                    <source_node>acdm:accessPolicy</source_node>
750
                    <target_node>
751
                        <entity>
752
                            <type>crm:E55_Type</type>
753
                            <instance_generator name="ConceptURI">
754
                                <arg name="term" type="xpath">text()</arg>
755
                            </instance_generator>
756
                            <label_generator name="SimpleLabel">
757
                                <arg name="label" type="xpath">text()</arg>
758
                            </label_generator>
759
                            <additional>
760
                                <relationship>crm:P2_has_type</relationship>
761
                                <entity>
762
                                    <type>crm:E55_Type</type>
763
                                    <instance_info>
764
                                        <constant>Access Policy</constant>
765
                                    </instance_info>
766
                                    <instance_generator name="ConceptURI">
767
                                        <arg name="term" type="constant">accesspolicy</arg>
768
                                    </instance_generator>
769
                                    <label_generator name="SimpleLabel">
770
                                        <arg name="label" type="constant">Access Policy</arg>
771
                                    </label_generator>
772
                                </entity>
773
                            </additional>
774
                        </entity>
775
                    </target_node>
776
                </range>
777
            </link>
778
            <link>
779
                <path>
780
                    <source_relation>
781
                        <relation>dcterms:accessRights</relation>
782
                    </source_relation>
783
                    <target_relation>
784
                        <relationship>crm:P104_is_subject_to</relationship>
785
                        <entity>
786
                            <type>crm:E30_Right</type>
787
                            <instance_generator name="UUID"/>
788
                        </entity>
789
                        <relationship>crm:P2_has_type</relationship>
790
                    </target_relation>
791
                </path>
792
                <range>
793
                    <source_node>dcterms:accessRights</source_node>
794
                    <target_node>
795
                        <entity>
796
                            <type>crm:E55_Type</type>
797
                            <instance_generator name="ConceptURI">
798
                                <arg name="term" type="xpath">text()</arg>
799
                            </instance_generator>
800
                            <label_generator name="SimpleLabel">
801
                                <arg name="label" type="xpath">text()</arg>
802
                            </label_generator>
803
                            <additional>
804
                                <relationship>crm:P2_has_type</relationship>
805
                                <entity>
806
                                    <type>crm:E55_Type</type>
807
                                    <instance_info>
808
                                        <constant>Access Rights</constant>
809
                                    </instance_info>
810
                                    <instance_generator name="ConceptURI">
811
                                        <arg name="term" type="constant">accessrights</arg>
812
                                    </instance_generator>
813
                                    <label_generator name="SimpleLabel">
814
                                        <arg name="label" type="constant">Access Rights</arg>
815
                                    </label_generator>
816
                                </entity>
817
                            </additional>
818
                        </entity>
819
                    </target_node>
820
                </range>
821
            </link>
822
            <link>
823
                <path>
824
                    <source_relation>
825
                        <relation>dc:rights</relation>
826
                    </source_relation>
827
                    <target_relation>
828
                        <relationship>crm:P104_is_subject_to</relationship>
829
                    </target_relation>
830
                </path>
831
                <range>
832
                    <source_node>dc:rights</source_node>
833
                    <target_node>
834
                        <entity>
835
                            <type>crm:E30_Right</type>
836
                            <instance_generator name="OneLevelCustomURI">
837
                                <arg name="level1" type="constant">rights</arg>
838
                                <arg name="term" type="xpath">text()</arg>
839
                            </instance_generator>
840
                            <label_generator name="SimpleLabel">
841
                                <arg name="label" type="xpath">text()</arg>
842
                            </label_generator>
843
                        </entity>
844
                    </target_node>
845
                </range>
846
            </link>
847
            <link>
848
                <path>
849
                    <source_relation>
850
                        <relation>dcat:keyword</relation>
851
                    </source_relation>
852
                    <target_relation>
853
                        <relationship>crm:P129_is_about</relationship>
854
                    </target_relation>
855
                </path>
856
                <range>
857
                    <source_node>dcat:keyword</source_node>
858
                    <target_node>
859
                        <entity>
860
                            <type>crm:E55_Type</type>
861
                            <instance_generator name="ConceptURI">
862
                                <arg name="term" type="xpath">text()</arg>
863
                            </instance_generator>
864
                            <label_generator name="SimpleLabel">
865
                                <arg name="label" type="xpath">text()</arg>
866
                            </label_generator>
867
                        </entity>
868
                    </target_node>
869
                </range>
870
            </link>
871
            <link>
872
                <path>
873
                    <source_relation>
874
                        <relation>dcat:landingPage</relation>
875
                    </source_relation>
876
                    <target_relation>
877
                        <relationship>crmpe:PP8i_is_dataset_hosted_by</relationship>
878
                        <entity variable="datserv1">
879
                            <type>crmpe:PE15_Data_E-Service</type>
880
                            <instance_generator name="UUID"/>
881
                        </entity>
882
                        <relationship>crmpe:PP49_provides_access_point</relationship>
883
                    </target_relation>
884
                </path>
885
                <range>
886
                    <source_node>dcat:landingPage</source_node>
887
                    <target_node>
888
                        <entity>
889
                            <type>crmpe:PE29_Access_Point</type>
890
                            <instance_generator name="URIorUUID">
891
                                <arg name="text" type="xpath">text()</arg>
892
                            </instance_generator>
893
                            <label_generator name="SimpleLabel">
894
                                <arg name="label" type="xpath">text()</arg>
895
                            </label_generator>
896
                        </entity>
897
                    </target_node>
898
                </range>
899
            </link>
900
            <link>
901
                <path>
902
                    <source_relation>
903
                        <relation>dcat:contactPoint/vcard</relation>
904
                    </source_relation>
905
                    <target_relation>
906
                        <relationship>crmpe:PP8i_is_dataset_hosted_by</relationship>
907
                        <entity variable="datserv1">
908
                            <type>crmpe:PE15_Data_E-Service</type>
909
                            <instance_generator name="UUID"/>
910
                        </entity>
911
                        <relationship>crm:P11_had_participant</relationship>
912
                        <entity>
913
                            <type>crm:E39_Actor</type>
914
                            <instance_generator name="UUID"/>
915
                        </entity>
916
                        <relationship>crm:P76_has_contact_point</relationship>
917
                    </target_relation>
918
                </path>
919
                <range>
920
                    <source_node>dcat:contactPoint/vcard</source_node>
921
                    <target_node>
922
                        <entity>
923
                            <type>crm:E51_Contact_Point</type>
924
                            <instance_generator name="OneLevelCustomURI">
925
                                <arg name="level1" type="constant">contactpoint</arg>
926
                                <arg name="term" type="xpath">text()</arg>
927
                            </instance_generator>
928
                            <label_generator name="SimpleLabel">
929
                                <arg name="label" type="xpath">text()</arg>
930
                            </label_generator>
931
                        </entity>
932
                    </target_node>
933
                </range>
934
            </link>
935
            <link>
936
                <path>
937
                    <source_relation>
938
                        <relation>acdm:temporal</relation>
939
                    </source_relation>
940
                    <target_relation>
941
                        <relationship>crm:P129_is_about</relationship>
942
                    </target_relation>
943
                </path>
944
                <range>
945
                    <source_node>acdm:temporal</source_node>
946
                    <target_node>
947
                        <entity>
948
                            <type>crm:E4_Period</type>
949
                            <instance_generator name="OneLevelCustomURI">
950
                                <arg name="level1" type="constant">period</arg>
951
                                <arg name="term" type="xpath">acdm:periodName/text()</arg>
952
                            </instance_generator>
953
                            <label_generator name="SimpleLabel">
954
                                <arg name="label" type="xpath">acdm:periodName/text()</arg>
955
                            </label_generator>
956
                        </entity>
957
                    </target_node>
958
                </range>
959
            </link>
960
            <link>
961
                <path>
962
                    <source_relation>
963
                        <relation>acdm:spatial</relation>
964
                    </source_relation>
965
                    <target_relation>
966
                        <relationship>crm:P129_is_about</relationship>
967
                    </target_relation>
968
                </path>
969
                <range>
970
                    <source_node>acdm:spatial</source_node>
971
                    <target_node>
972
                        <entity>
973
                            <type>crm:E53_Place</type>
974
                            <instance_generator name="PlaceURI">
975
                                <arg name="term" type="xpath">acdm:country/text()</arg>
976
                            </instance_generator>
977
                            <label_generator name="SimpleLabel">
978
                                <arg name="label" type="xpath">acdm:country/text()</arg>
979
                            </label_generator>
980
                        </entity>
981
                    </target_node>
982
                </range>
983
            </link>
984
            <link>
985
                <path>
986
                    <source_relation>
987
                        <relation>dcterms:extent</relation>
988
                    </source_relation>
989
                    <target_relation>
990
                        <relationship>crm:P43_has_dimension</relationship>
991
                    </target_relation>
992
                    <comments>
993
                        <comment type="">
994
                            <rationale/>
995
                            <alternatives/>
996
                            <typical_mistakes/>
997
                            <local_habits/>
998
                            <link_to_cook_book/>
999
                            <example>
1000
                                <example_source/>
1001
                                <example_target/>
1002
                            </example>
1003
                            <comments_last_update date="" person=""/>
1004
                        </comment>
1005
                    </comments>
1006
                </path>
1007
                <range>
1008
                    <source_node>dcterms:extent</source_node>
1009
                    <target_node>
1010
                        <entity>
1011
                            <type>crm:E54_Dimension</type>
1012
                            <instance_generator name="URIorUUID">
1013
                                <arg name="text" type="xpath">text()</arg>
1014
                            </instance_generator>
1015
                            <label_generator name="SimpleLabel">
1016
                                <arg name="label" type="xpath">text()</arg>
1017
                            </label_generator>
1018
                        </entity>
1019
                    </target_node>
1020
                </range>
1021
            </link>
1022
            <link>
1023
                <path>
1024
                    <source_relation>
1025
                        <relation>acdm:archaeologicalResourceType</relation>
1026
                    </source_relation>
1027
                    <target_relation>
1028
                        <relationship>crm:P2_has_type</relationship>
1029
                    </target_relation>
1030
                </path>
1031
                <range>
1032
                    <source_node>acdm:archaeologicalResourceType</source_node>
1033
                    <target_node>
1034
                        <entity>
1035
                            <type>crm:E55_Type</type>
1036
                            <instance_generator name="ConceptURI">
1037
                                <arg name="term" type="xpath">text()</arg>
1038
                            </instance_generator>
1039
                            <label_generator name="SimpleLabel">
1040
                                <arg name="label" type="xpath">text()</arg>
1041
                            </label_generator>
1042
                        </entity>
1043
                    </target_node>
1044
                </range>
1045
            </link>
1046
            <link>
1047
                <path>
1048
                    <source_relation>
1049
                        <relation>acdm:distribution</relation>
1050
                    </source_relation>
1051
                    <target_relation>
1052
                        <relationship>crmdig:L10i_was_input_of</relationship>
1053
                        <entity>
1054
                            <type>crmdig:D3_Formal_Derivation</type>
1055
                            <instance_generator name="UUID"/>
1056
                        </entity>
1057
                        <relationship>crmdig:L22_created_derivative</relationship>
1058
                    </target_relation>
1059
                </path>
1060
                <range>
1061
                    <source_node>acdm:distribution</source_node>
1062
                    <target_node>
1063
                        <entity>
1064
                            <type>crmpe:PE22_Persistent_Dataset</type>
1065
                            <instance_generator name="DatasetURI">
1066
                                <arg name="term" type="xpath">dcterms:title/text()</arg>
1067
                            </instance_generator>
1068
                            <label_generator name="SimpleLabel">
1069
                                <arg name="label" type="xpath">dcterms:title/text()</arg>
1070
                            </label_generator>
1071
                        </entity>
1072
                    </target_node>
1073
                </range>
1074
            </link>
1075
            <link>
1076
                <path>
1077
                    <source_relation>
1078
                        <relation>acdm:hasItemMetadataStructure</relation>
1079
                    </source_relation>
1080
                    <target_relation>
1081
                        <relationship>crmdig:L11i_was_output_of</relationship>
1082
                        <entity>
1083
                            <type>crmdig:D7_Digital_Machine_Event</type>
1084
                            <instance_generator name="UUID"/>
1085
                        </entity>
1086
                        <relationship>crmdig:L23_used_software_or_firmware</relationship>
1087
                    </target_relation>
1088
                </path>
1089
                <range>
1090
                    <source_node>acdm:hasItemMetadataStructure</source_node>
1091
                    <target_node>
1092
                        <entity>
1093
                            <type>crmpe:PE38_Schema</type>
1094
                            <instance_generator name="OneLevelCustomURI">
1095
                                <arg name="level1" type="constant">schematype</arg>
1096
                                <arg name="term" type="xpath">acdm:xsd/text()</arg>
1097
                            </instance_generator>
1098
                            <label_generator name="SimpleLabel">
1099
                                <arg name="label" type="xpath">acdm:xsd/text()</arg>
1100
                            </label_generator>
1101
                        </entity>
1102
                    </target_node>
1103
                </range>
1104
            </link>
1105
            <link>
1106
                <path>
1107
                    <source_relation>
1108
                        <relation>acdm:hasMetadataRecord</relation>
1109
                    </source_relation>
1110
                    <target_relation>
1111
                        <relationship>crmpe:PP39i_has_metadata</relationship>
1112
                    </target_relation>
1113
                </path>
1114
                <range>
1115
                    <source_node>acdm:hasMetadataRecord</source_node>
1116
                    <target_node>
1117
                        <entity>
1118
                            <type>crmpe:PE22_Persistent_Dataset</type>
1119
                            <instance_generator name="DatasetURI">
1120
                                <arg name="term" type="xpath">acdm:xmlDoc/text()</arg>
1121
                            </instance_generator>
1122
                            <label_generator name="SimpleLabel">
1123
                                <arg name="label" type="xpath">acdm:xmlDoc/text()</arg>
1124
                            </label_generator>
1125
                            <additional>
1126
                                <relationship>crm:P2_has_type</relationship>
1127
                                <entity>
1128
                                    <type>crm:E55_Type</type>
1129
                                    <instance_info>
1130
                                        <constant>metadata</constant>
1131
                                    </instance_info>
1132
                                    <instance_generator name="ConceptURI">
1133
                                        <arg name="term" type="constant">metadata</arg>
1134
                                    </instance_generator>
1135
                                    <label_generator name="SimpleLabel">
1136
                                        <arg name="label" type="constant">Metadata</arg>
1137
                                    </label_generator>
1138
                                </entity>
1139
                            </additional>
1140
                        </entity>
1141
                    </target_node>
1142
                </range>
1143
            </link>
1144
            <link>
1145
                <path>
1146
                    <source_relation>
1147
                        <relation>acdm:ariadneSubject</relation>
1148
                    </source_relation>
1149
                    <target_relation>
1150
                        <relationship>crm:P129_is_about</relationship>
1151
                    </target_relation>
1152
                </path>
1153
                <range>
1154
                    <source_node>acdm:ariadneSubject</source_node>
1155
                    <target_node>
1156
                        <entity>
1157
                            <type>crm:E55_Type</type>
1158
                            <instance_generator name="ConceptURI">
1159
                                <arg name="term" type="xpath">acdm:providedSubject/skos:prefLabel/text()</arg>
1160
                            </instance_generator>
1161
                            <label_generator name="SimpleLabel">
1162
                                <arg name="label" type="xpath">acdm:providedSubject/skos:prefLabel/text()</arg>
1163
                            </label_generator>
1164
                            <additional>
1165
                                <relationship>crm:P2_has_type</relationship>
1166
                                <entity>
1167
                                    <type/>
1168
                                    <instance_info>
1169
                                        <constant>ariadneSubject</constant>
1170
                                    </instance_info>
1171
                                    <instance_generator name="ConceptURI">
1172
                                        <arg name="term" type="constant">ariadnesubject</arg>
1173
                                    </instance_generator>
1174
                                    <label_generator name="SimpleLabel">
1175
                                        <arg name="label" type="constant">Ariadne Subject</arg>
1176
                                    </label_generator>
1177
                                </entity>
1178
                            </additional>
1179
                        </entity>
1180
                    </target_node>
1181
                </range>
1182
            </link>
1183
            <link>
1184
                <path>
1185
                    <source_relation>
1186
                        <relation>acdm:nativeSubject</relation>
1187
                    </source_relation>
1188
                    <target_relation>
1189
                        <relationship>crm:P129_is_about</relationship>
1190
                    </target_relation>
1191
                </path>
1192
                <range>
1193
                    <source_node>acdm:nativeSubject</source_node>
1194
                    <target_node>
1195
                        <entity>
1196
                            <type>crm:E55_Type</type>
1197
                            <instance_generator name="ConceptURI">
1198
                                <arg name="term" type="xpath">skos:Concept/skos:prefLabel/text()</arg>
1199
                            </instance_generator>
1200
                            <label_generator name="SimpleLabel">
1201
                                <arg name="label" type="xpath">skos:Concept/skos:prefLabel/text()</arg>
1202
                            </label_generator>
1203
                            <additional>
1204
                                <relationship>crm:P2_has_type</relationship>
1205
                                <entity>
1206
                                    <type>crm:E55_Type</type>
1207
                                    <instance_info>
1208
                                        <constant>nativeSubject</constant>
1209
                                    </instance_info>
1210
                                    <instance_generator name="ConceptURI">
1211
                                        <arg name="term" type="constant">nativesubject</arg>
1212
                                    </instance_generator>
1213
                                    <label_generator name="SimpleLabel">
1214
                                        <arg name="label" type="xpath">text()</arg>
1215
                                    </label_generator>
1216
                                </entity>
1217
                            </additional>
1218
                        </entity>
1219
                    </target_node>
1220
                </range>
1221
            </link>
1222
            <link>
1223
                <path>
1224
                    <source_relation>
1225
                        <relation>dcterms:hasParts</relation>
1226
                    </source_relation>
1227
                    <target_relation>
1228
                        <relationship>crmpe:PP20_has_persistent_dataset_part</relationship>
1229
                    </target_relation>
1230
                </path>
1231
                <range>
1232
                    <source_node>dcterms:hasParts</source_node>
1233
                    <target_node>
1234
                        <entity>
1235
                            <type>crmpe:PE22_Persistent_Dataset</type>
1236
                            <instance_generator name="DatasetURI">
1237
                                <arg name="term" type="xpath">text()</arg>
1238
                            </instance_generator>
1239
                            <label_generator name="SimpleLabel">
1240
                                <arg name="label" type="xpath">text()</arg>
1241
                            </label_generator>
1242
                        </entity>
1243
                    </target_node>
1244
                </range>
1245
            </link>
1246
            <link>
1247
                <path>
1248
                    <source_relation>
1249
                        <relation>acdm:hasRecordStructure</relation>
1250
                    </source_relation>
1251
                    <target_relation>
1252
                        <relationship>crm:P2_has_type</relationship>
1253
                    </target_relation>
1254
                </path>
1255
                <range>
1256
                    <source_node>acdm:hasRecordStructure</source_node>
1257
                    <target_node>
1258
                        <entity>
1259
                            <type>crm:E55_Type</type>
1260
                            <instance_generator name="OneLevelCustomURI">
1261
                                <arg name="level1" type="constant">recordstructure</arg>
1262
                                <arg name="term" type="xpath">dcterms:title/text()</arg>
1263
                            </instance_generator>
1264
                            <label_generator name="SimpleLabel">
1265
                                <arg name="label" type="xpath">dcterms:title/text()</arg>
1266
                            </label_generator>
1267
                        </entity>
1268
                    </target_node>
1269
                </range>
1270
            </link>
1271
        </mapping>
1272
        <mapping>
1273
            <domain>
1274
                <source_node>//acdm:publisher</source_node>
1275
                <target_node>
1276
                    <entity>
1277
                        <type>crm:E39_Actor</type>
1278
                        <instance_generator name="ActorURI">
1279
                            <arg name="term" type="xpath">foaf:name/text()</arg>
1280
                        </instance_generator>
1281
                        <label_generator name="SimpleLabel">
1282
                            <arg name="label" type="xpath">foaf:name/text()</arg>
1283
                        </label_generator>
1284
                    </entity>
1285
                </target_node>
1286
            </domain>
1287
            <link>
1288
                <path>
1289
                    <source_relation>
1290
                        <relation>foaf:name</relation>
1291
                    </source_relation>
1292
                    <target_relation>
1293
                        <relationship>crm:P1_is_identified_by</relationship>
1294
                    </target_relation>
1295
                </path>
1296
                <range>
1297
                    <source_node>foaf:name</source_node>
1298
                    <target_node>
1299
                        <entity>
1300
                            <type>crm:E41_Appellation</type>
1301
                            <instance_generator name="ActorAppellationURI">
1302
                                <arg name="term" type="xpath">text()</arg>
1303
                            </instance_generator>
1304
                            <label_generator name="SimpleLabel">
1305
                                <arg name="label" type="xpath">text()</arg>
1306
                            </label_generator>
1307
                        </entity>
1308
                    </target_node>
1309
                </range>
1310
            </link>
1311
            <link>
1312
                <path>
1313
                    <source_relation>
1314
                        <relation>acdm:typeOfAnAgent</relation>
1315
                    </source_relation>
1316
                    <target_relation>
1317
                        <relationship>crm:P2_has_type</relationship>
1318
                    </target_relation>
1319
                </path>
1320
                <range>
1321
                    <source_node>acdm:typeOfAnAgent</source_node>
1322
                    <target_node>
1323
                        <entity>
1324
                            <type>crm:E55_Type</type>
1325
                            <instance_generator name="ConceptURI">
1326
                                <arg name="term" type="xpath">text()</arg>
1327
                            </instance_generator>
1328
                            <label_generator name="SimpleLabel">
1329
                                <arg name="label" type="xpath">text()</arg>
1330
                            </label_generator>
1331
                        </entity>
1332
                    </target_node>
1333
                </range>
1334
            </link>
1335
            <link>
1336
                <path>
1337
                    <source_relation>
1338
                        <relation>foaf:mbox</relation>
1339
                    </source_relation>
1340
                    <target_relation>
1341
                        <relationship>crm:P76_has_contact_point</relationship>
1342
                    </target_relation>
1343
                </path>
1344
                <range>
1345
                    <source_node>foaf:mbox</source_node>
1346
                    <target_node>
1347
                        <entity>
1348
                            <type>crm:E51_Contact_Point</type>
1349
                            <instance_generator name="TwoLevelCustomURI">
1350
                                <arg name="level1" type="constant">Thing</arg>
1351
                                <arg name="level2" type="constant">Appellation</arg>
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff