Steve Hedden
Aug 3, 2023

--

Hi Udit.

Earlier in the code, you'll see a line like this: g.serialize('SDKG.ttl',format='turtle',prefixes = prefixes, encoding='urf-8')

That saves the KG as a file called 'SDKG.ttl'. Usually, the file will be saved in the same folder that you are running your notebook. If it is in the same folder, you should be able to replace "path to your KG" with "SDKG.ttl". If it is in a different folder, you'll need to write the full file path to that ttl file. For example, "/Users/uditanand/knowledgeGraphs/SDKG.ttl"

Let me know if that makes sense or if you run into any other problems.

--

--

Steve Hedden
Steve Hedden

Written by Steve Hedden

Product management, international development, data science and network analysis.

No responses yet