Newer
Older
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Pipeline to create research dataset"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"from rdflib import Graph\n",
"\n",
"def merge_graphs(input_path_1, input_path_2, output_path):\n",
" g = Graph()\n",
" g.parse(input_path_1)\n",
" g.parse(input_path_2)\n",
" g.serialize(destination=output_path, format='ttl')"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"/home/jovyan/dho-knowledge-graph-data-integration/src/rdf-mappings/map-tblBranch.py:463: DtypeWarning: Columns (2,9,11,16,17,18,19,20,21,31,38,39,49,56,58,62,67,71,72,73,74,75,77,79,82,85,86,88,94,97,98,99,100,102,104,106,109,110,112,114,117,118,119,122,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,149,150,151,152,153,154,157,165,166,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,188,189,190,194,196) have mixed types. Specify dtype option on import or set low_memory=False.\n",
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
" df_tblBranch = pd.read_csv(csv_input_path, sep='\\t')\n",
" Column Column2 BranchID ... GpSel TinctChanged Column 201\n",
"0 0 NaN 1 ... NaN 1.0 NaN\n",
"1 1 NaN 2 ... NaN 1.0 NaN\n",
"2 2 NaN 3 ... NaN 1.0 NaN\n",
"3 3 NaN 4 ... NaN 1.0 NaN\n",
"4 4 NaN 5 ... NaN 1.0 NaN\n",
"... ... ... ... ... ... ... ...\n",
"40859 40859 NaN 8318_A_1 ... NaN NaN NaN\n",
"40860 40860 NaN 8425_1 ... 0.0 NaN 0.0\n",
"40861 40861 NaN 8425_A_1 ... NaN NaN NaN\n",
"40862 40862 NaN 8425_B_1 ... NaN NaN NaN\n",
"40863 40863 NaN 13770_1 ... 0.0 NaN 1.0\n",
"\n",
"[40864 rows x 205 columns]\n",
"chief\n",
"compon\n",
"chief\n",
"chief\n",
"chief\n",
"chief\n",
"chief\n",
"eschutch\n",
"chief\n",
"chief\n",
"chief\n",
"chief\n",
"chief\n",
"shield\n",
"stag\n",
"compon de Harcourt\n",
"chief\n",
"chief\n",
"chief\n",
"\n",
"chief\n",
"border\n",
"lozenge\n",
"lozenge\n",
"\n",
"\n",
"chief\n",
"chief\n",
"lozenge\n",
"chief\n",
"chief\n",
"compon\n",
"compon\n",
"escuch\n",
"chief\n",
"\n",
"\n",
"escurch\n",
"banner\n",
"chief\n",
"banner\n",
"banner\n",
"banner\n",
"banner\n",
"banner\n",
"escuch\n",
"Created data/rdf-output/research-dataset/knowledge-graph-blazon-research-dataset.ttl\n",
"Created data/rdf-output/research-dataset/knowledge-graph-blazon-research-dataset.jsonld\n",
"Export TBox to file...\n",
"Create data/rdf-output/digital-heraldry-ontology.ttl\n"
]
}
],
"source": [
"!python src/rdf-mappings/map-tblBranch.py"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {
"tags": []
},
"merge_graphs('data/rdf-output/research-dataset/knowledge-graph-blazon-research-dataset.ttl', 'data/ontologies/digital-heraldry-ontology-heraldry.ttl', 'data/rdf-output/research-dataset/knowledge-graph-blazon-research-dataset.ttl')"
"source": [
"Add class structure for `dhoh:Modifier`s"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"merge_graphs('data/rdf-output/research-dataset/knowledge-graph-blazon-research-dataset.ttl', 'data/ontologies/research-dataset/modifier-class-structure.ttl', 'data/rdf-output/research-dataset/knowledge-graph-blazon-research-dataset.ttl')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Create the occurances of the coats of arms (`dhor:CoatOfArmsRepresentation`) from `tblArmItem`"
]
},
{
"cell_type": "code",
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"src/rdf-mappings/map-tblArmItems.py:79: DtypeWarning: Columns (0,7,10,11,13,14,42) have mixed types. Specify dtype option on import or set low_memory=False.\n",
" df_tblArmItems = pd.read_csv(csv_input_path, sep='\\t')\n",
"src/rdf-mappings/map-tblArmItems.py:92: FutureWarning: Inferring datetime64[ns] from data containing strings is deprecated and will be removed in a future version. To retain the old behavior explicitly pass Series(data, dtype=datetime64[ns])\n",
" df_metadata = pd.read_excel(metadata_file)\n",
" Column ArmItemID ArmCode ItemNr ... CreMulti CreTint CreOrnIDR TGmember\n",
"61929 22033.0 25909.0 QPB 2.0 ... NaN NaN NaN False\n",
"61930 22034.0 25910.0 QPB 3.0 ... NaN NaN NaN False\n",
"61931 22035.0 25911.0 QPB 4.0 ... NaN NaN NaN False\n",
"61932 22036.0 25912.0 QPB 5.0 ... NaN NaN NaN False\n",
"61933 22037.0 25913.0 QPB 6.0 ... NaN NaN NaN False\n",
"... ... ... ... ... ... ... ... ... ...\n",
"62173 61935.0 72915.0 QPB 245.0 ... NaN NaN NaN False\n",
"62174 61936.0 72916.0 QPB 246.0 ... NaN NaN NaN False\n",
"62175 61937.0 72917.0 QPB 247.0 ... NaN NaN NaN False\n",
"62176 61938.0 72918.0 QPB 248.0 ... NaN NaN NaN False\n",
"62177 61939.0 72919.0 QPB 249.0 ... NaN NaN NaN False\n",
"[249 rows x 46 columns]\n",
"Created data/rdf-output/research-dataset/knowledge-graph-representation-research-dataset.ttl\n",
"Created data/rdf-output/research-dataset/knowledge-graph-representation-research-dataset.jsonld\n"
]
}
],
"source": [
"!python src/rdf-mappings/map-tblArmItems.py"
]
},
{
"cell_type": "code",
"execution_count": 23,
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"merge_graphs('data/rdf-output/research-dataset/knowledge-graph-representation-research-dataset.ttl' , 'data/ontologies/digital-heraldry-ontology-representation.ttl', 'data/rdf-output/research-dataset/knowledge-graph-representation-research-dataset.ttl')"
]
},
{
"cell_type": "code",
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"src/rdf-mappings/integrate_manuscript_metadata_into_kg.py:69: FutureWarning: Inferring datetime64[ns] from data containing strings is deprecated and will be removed in a future version. To retain the old behavior explicitly pass Series(data, dtype=datetime64[ns])\n",
" df_metadata = pd.read_excel(metadata_file)\n",
" dho-kg-id Bestellen ... Zugriff_Internet.1 Herkunft\n",
"1004 1005.0 NaN ... NaN Summary\n",
"[1 rows x 94 columns]\n",
"Creating manuscript entities...\n",
"Created data/rdf-output/research-dataset/knowledge-graph-object-research-dataset.ttl\n",
"Created data/rdf-output/research-dataset/knowledge-graph-object-research-dataset.jsonld\n",
"Loading Knowledge Graph file...\n",
"Linking coat of arms representations to manuscript entities...\n",
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"http://digitalheraldry.org/digital-heraldry-ontology/object#MSQPB\n",
"Serializing representation graph...\n"
]
}
],
"source": [
"!python src/rdf-mappings/integrate_manuscript_metadata_into_kg.py"
]
},
{
"cell_type": "code",
"execution_count": 25,
"metadata": {
"tags": []
},
"source": [
"merge_graphs('data/rdf-output/research-dataset/knowledge-graph-object-research-dataset.ttl', 'data/ontologies/digital-heraldry-ontology-object.ttl', 'data/rdf-output/research-dataset/knowledge-graph-object-research-dataset.ttl')"
]
},
{
"cell_type": "code",
"execution_count": 26,
"metadata": {
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Merging data/rdf-output/research-dataset/knowledge-graph-blazon-research-dataset.ttl into Knowledge Graph\n",
"Merging data/rdf-output/research-dataset/knowledge-graph-object-research-dataset.ttl into Knowledge Graph\n",
"Merging data/rdf-output/research-dataset/knowledge-graph-representation-research-dataset.ttl into Knowledge Graph\n",
"Created data/rdf-output/research-dataset/digital-heraldry-knowledge-graph-research-dataset.ttl\n",
"Created data/rdf-output/research-dataset/digital-heraldry-knowledge-graph-research-dataset.jsonld\n"
]
}
],
"source": [
"!python src/rdf-mappings/merge_rdf_files_into_kg.py -i data/rdf-output/research-dataset/knowledge-graph-blazon-research-dataset.ttl data/rdf-output/research-dataset/knowledge-graph-object-research-dataset.ttl data/rdf-output/research-dataset/knowledge-graph-representation-research-dataset.ttl"
]
}
],
"metadata": {
"kernelspec": {
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
},
"vscode": {
"interpreter": {
"hash": "86152e4984a8eeddffd673b8a40ea9a3bfe66b19f1d4e2fbcbd65936a43d9c06"
}
}
},
"nbformat": 4,