{ "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", " 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": [] }, "outputs": [], "source": [ "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')" ] }, { "cell_type": "markdown", "metadata": {}, "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", "execution_count": 2, "metadata": { "tags": [] }, "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", "\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", "execution_count": 5, "metadata": { "tags": [] }, "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", "\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", "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": [] }, "outputs": [], "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": { "display_name": "Python 3 (ipykernel)", "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", "version": "3.8.12" }, "vscode": { "interpreter": { "hash": "86152e4984a8eeddffd673b8a40ea9a3bfe66b19f1d4e2fbcbd65936a43d9c06" } } }, "nbformat": 4, "nbformat_minor": 4 }