Skip to content

Commit 0d25285

Browse files
authored
Merge pull request #1 from jyaistMap/jy-rvw-kg-sample
update markdown hashes to work with Gatsby nav syntax
2 parents fc8502c + 871f067 commit 0d25285

File tree

1 file changed

+23
-21
lines changed

1 file changed

+23
-21
lines changed

samples/05_content_publishers/create_and_load_knowledge_graph_backups.ipynb

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@
4949
"id": "6c9288de",
5050
"metadata": {},
5151
"source": [
52-
"## Never lose your graphs again with backups!\n",
52+
"_**Never lose your graphs again with backups!**_\n",
53+
"\n",
5354
"Create a backup of an ArcGIS Knowledge graph you have created to store your data model and data. The backup will be in the format of json files that can read to recreate your graph or be shared for others to be able to create the same graph on a different server.\n",
54-
"## Load a new graph easily from your backup files!\n",
55+
"\n",
56+
"_**Load a new graph easily from your backup files!**_\n",
5557
"Use the backup files with the load backup files portion of this notebook to create a graph with the same data model and data."
5658
]
5759
},
@@ -60,15 +62,15 @@
6062
"id": "b373d48b",
6163
"metadata": {},
6264
"source": [
63-
"# Setup"
65+
"## Setup"
6466
]
6567
},
6668
{
6769
"cell_type": "markdown",
6870
"id": "d20f5e6c",
6971
"metadata": {},
7072
"source": [
71-
"## Import necessary libraries\n",
73+
"### Import necessary libraries\n",
7274
"Start by importing the libraries we need for connecting to portal, accessing knowledge graph, and manipulating data as needed"
7375
]
7476
},
@@ -92,7 +94,7 @@
9294
"id": "b14f1c6e",
9395
"metadata": {},
9496
"source": [
95-
"## Define folder and file names\n",
97+
"### Define folder and file names\n",
9698
"Define all names for files so we can stay consistent for backing up and loading files"
9799
]
98100
},
@@ -119,15 +121,15 @@
119121
"id": "8efc688e",
120122
"metadata": {},
121123
"source": [
122-
"# Create backup files"
124+
"## Create backup files"
123125
]
124126
},
125127
{
126128
"cell_type": "markdown",
127129
"id": "b58d0f34",
128130
"metadata": {},
129131
"source": [
130-
"## Connect to portal and knowledge graph\n",
132+
"### Connect to portal and knowledge graph\n",
131133
"Connect to the portal and knowledge graph on that portal, also ensure knowledge graph service exists (url is correct)"
132134
]
133135
},
@@ -155,7 +157,7 @@
155157
"id": "ced3a37e",
156158
"metadata": {},
157159
"source": [
158-
"## Write data model entity types to backup json file\n",
160+
"### Write data model entity types to backup json file\n",
159161
"Iterate through the data model of the knowledge graph to write all entity type objects to a backup json file"
160162
]
161163
},
@@ -195,7 +197,7 @@
195197
"id": "dff06f42",
196198
"metadata": {},
197199
"source": [
198-
"## Write data model relationship types to backup json file\n",
200+
"### Write data model relationship types to backup json file\n",
199201
"Iterate through the data model of the knowledge graph to write all relationship type objects to a backup json file"
200202
]
201203
},
@@ -235,7 +237,7 @@
235237
"id": "dd6f9f53",
236238
"metadata": {},
237239
"source": [
238-
"## Write entities to backup json file\n",
240+
"### Write entities to backup json file\n",
239241
"Get all entities from the knowledge graph using a streaming query, clean them up for better writing when loading, and save the resulting entities to a json backup file"
240242
]
241243
},
@@ -292,7 +294,7 @@
292294
"id": "53d50a65",
293295
"metadata": {},
294296
"source": [
295-
"## Write relationships to backup json file\n",
297+
"### Write relationships to backup json file\n",
296298
"Get all relationships from the knowledge graph using a streaming query, clean them up for better writing when loading, and save the resulting relationships to a json backup file"
297299
]
298300
},
@@ -414,15 +416,15 @@
414416
"id": "c21c8066",
415417
"metadata": {},
416418
"source": [
417-
"# Load backup files"
419+
"## Load backup files"
418420
]
419421
},
420422
{
421423
"cell_type": "markdown",
422424
"id": "db4a59d8",
423425
"metadata": {},
424426
"source": [
425-
"## Connect to portal and create knowledge graph\n",
427+
"### Connect to portal and create knowledge graph\n",
426428
"Connect to the portal and create a new knowledge graph service to load data model and data into"
427429
]
428430
},
@@ -453,7 +455,7 @@
453455
"id": "70b11b8a",
454456
"metadata": {},
455457
"source": [
456-
"## Populate data model from saved json files\n",
458+
"### Populate data model from saved json files\n",
457459
"Populate entity and relationship types from saved json files. This is using the variables defined in the 'Setup' section above."
458460
]
459461
},
@@ -479,7 +481,7 @@
479481
"id": "85163b0a",
480482
"metadata": {},
481483
"source": [
482-
"## Get original documents names to correctly load data\n",
484+
"### Get original documents names to correctly load data\n",
483485
"This section will get the names of the document entity and relationship types from the original graph data, using the above commands the document types get their default names of 'Document' and 'HasDocument'. Just in case they have been named differently in the original knowledge graph, this steps allows us to match them up in later loading steps."
484486
]
485487
},
@@ -521,7 +523,7 @@
521523
"id": "fd1eecc7",
522524
"metadata": {},
523525
"source": [
524-
"## Add additional document entity and relationship type properties\n",
526+
"### Add additional document entity and relationship type properties\n",
525527
"In the case additional properties exist in the original graph on document entity or relationship types, since the type was created at the time of knowledge graph creation we need to additional properties using graph_property_adds."
526528
]
527529
},
@@ -569,7 +571,7 @@
569571
"id": "31027810",
570572
"metadata": {},
571573
"source": [
572-
"## Get list of date properties from the data model json files\n",
574+
"### Get list of date properties from the data model json files\n",
573575
"From the data model type json files, find and make a list of date files so we can correctly create datetime objects when loading the data into the knowledge graph."
574576
]
575577
},
@@ -607,7 +609,7 @@
607609
"id": "33eca61c",
608610
"metadata": {},
609611
"source": [
610-
"## Add all entities to the knowledge graph\n",
612+
"### Add all entities to the knowledge graph\n",
611613
"Add all entities from json file to the knowledge graph, formatting UUIDs, dates, and documents before loading the values. This loads the data in batches of 20,000 entities."
612614
]
613615
},
@@ -665,7 +667,7 @@
665667
"id": "034ed628",
666668
"metadata": {},
667669
"source": [
668-
"## Add all relationships to the knowledge graph\n",
670+
"### Add all relationships to the knowledge graph\n",
669671
"Add all relationships from json file to the knowledge graph, formatting UUIDs, dates, and documents before loading the values. This loads the data in batches of 20,000 relationships."
670672
]
671673
},
@@ -729,7 +731,7 @@
729731
"id": "7d67f4ed",
730732
"metadata": {},
731733
"source": [
732-
"## Add search indexes to all text properties\n",
734+
"### Add search indexes to all text properties\n",
733735
"Adding search indexes to all text properties will allow for the values in those properties to be searched for when using search in any client."
734736
]
735737
},
@@ -835,7 +837,7 @@
835837
"name": "python",
836838
"nbconvert_exporter": "python",
837839
"pygments_lexer": "ipython3",
838-
"version": "3.9.16"
840+
"version": "3.9.17"
839841
}
840842
},
841843
"nbformat": 4,

0 commit comments

Comments
 (0)