262
262
copy_field("@pEventID","edm:Agent.$last.*edm:wasPresent")
263
263
264
264
265
+ do list(path:"1001 |1101 |7001 |7101", "var":"CREATOR")
266
+ do list(path: "CREATOR.0", "var":"CREATORID")
267
+ if any match("CREATORID", "^\\(DE-588\\)(.*)")
268
+ copy_field("CREATORID","edm.Agent.$append.~rdf:about")
269
+ replace_all("edm.Agent.$last.~rdf:about", "^\\(DE-588\\)(.*)","http://d-nb.info/gnd/$1")
270
+ copy_field("CREATOR.a","edm.Agent.$last.skos:prefLabel$de")
271
+ copy_field("@cEventID","edm.Agent.$last.*edm:wasPresent")
272
+ end
273
+ end
274
+ end
275
+
265
276
<data name =" @creatorID" source =" 1001 .0|1101 .0|7001 .0|7101 .0" >
266
277
<regexp match =" ^\(DE-588\)(.*)" format =" http://d-nb.info/gnd/${1}" />
267
278
</data >
@@ -276,9 +287,14 @@ copy_field("@pEventID","edm:Agent.$last.*edm:wasPresent")
276
287
<data name =" @cEventID" source =" 001" >
277
288
<compose prefix =" #/event/" postfix =" -c" />
278
289
</data >
290
+
291
+ paste("@cEventID", "~#/event/", "001", "~-c", join_char:"")
292
+
279
293
<data name =" @pEventID" source =" 001" >
280
294
<compose prefix =" #/event/" postfix =" -p" />
281
295
</data >
296
+ paste("@cEventID", "~#/event/", "001", "~-p", join_char:"")
297
+
282
298
<entity name =" edm:Event" flushWith =" record" >
283
299
<data name =" ~rdf:about" source =" @cEventID" />
284
300
<data name =" edm:hasType" source =" _id" >
@@ -288,6 +304,15 @@ copy_field("@pEventID","edm:Agent.$last.*edm:wasPresent")
288
304
<regexp match =" ^\(DE-588\)(.*)" format =" http://d-nb.info/gnd/${1}" />
289
305
</data >
290
306
</entity >
307
+
308
+ copy_field("@cEventID","edm:Event.$append.~rdf:about")
309
+ add_field("edm:Event.$last.edm:hasType", "http://terminology.lido-schema.org/lido00012")
310
+ do list(path:"edm.Agent","var":"AGENT")
311
+ if any_match("AGENT..~rdf:about", "http://d-nb.info/gnd/")
312
+ copy_field("AGENT.~rdf:about", "edm:Event.$last.*crm:P11_had_participant.$append")
313
+ end
314
+ end
315
+
291
316
<entity name =" edm:Event" flushWith =" record" >
292
317
<data name =" ~rdf:about" source =" @pEventID" />
293
318
<!-- <data name="*edm:hasType" source="_id"> -->
@@ -300,21 +325,36 @@ copy_field("@pEventID","edm:Agent.$last.*edm:wasPresent")
300
325
<data name =" *edm:occuredAt" source =" @timeID" />
301
326
<data name =" *edm:happenedAt" source =" @placeID" />
302
327
</entity >
328
+ copy_field("@pEventID","edm:Event.$append.~rdf:about")
329
+ add_field("edm:Event.$last.edm:hasType", "http://terminology.lido-schema.org/lido00228")
330
+ copy_field("@publisherID", "edm:Event.$last.*crm:P11_had_participant.$append")
331
+ copy_field("@timeID", "edm:Event.$last.*edm:occuredAt")
332
+ copy_field("@placeID", "edm:Event.$last.*edm:happenedAt")
333
+
303
334
<data name =" @place" source =" 2603 .a" >
304
335
<replace pattern =" \[?u.a.\]?.*$" with =" " />
305
336
<split delimiter =" ; " />
306
337
<occurrence only =" 1" />
307
338
</data >
339
+
340
+ copy_field("2603 .a","@place")
341
+ replace_all("@place"," \\[?u.a.\\]?.*$","")
342
+ paste("@placeID","~#/place/","001","~_place","@place",join_char:"") # what is the count doing?
308
343
<combine name =" @placeID" value =" #/place/${id}_place${c}" >
309
344
<data name =" c" source =" @place" >
310
345
<count />
311
346
</data >
312
347
<data source =" 001" name =" id" />
313
348
</combine >
349
+
350
+
314
351
<entity name =" edm:Place" >
315
352
<data name =" ~rdf:about" source =" @placeID" />
316
353
<data name =" skos:prefLabel" source =" @place" />
317
354
</entity >
355
+
356
+
357
+
318
358
<combine name =" @timeID" value =" #/timespan/${id}_timespan${c}" >
319
359
<data name =" c" source =" 260 .c|2603 .c" >
320
360
<count />
0 commit comments