This step by step guide allows you to import your Obsidian network data directly into a software such as Gephi, or any other graph analysis software.
- Using the command "this.app.metadataCache.resolvedLinks" in the Obsidian developer console, you can get a JSON object containing all your notes and links.
All you have to do now is to produce a CSV from this JSON object and import it into Gephi.
-
Copy the obtained object (right click on it) in your clipboard and paste it in a file that you will name "obsidian_data.json"
-
Use the script network_json_to_csv.js, download it and run it in the same directory as your JSON file.
-
You normally get a .csv file named obsidian_data.csv that you can import directly into Gephi
-
Get your JSON data in the same way as in the first method
-
Use the python json_to_gexf.py script
usage: json_to_gexf.py [-h] [--i I] [--o O]
Convert your JSON Obsidian Network to GEXF.
options:
-h, --help show this help message and exit
--i I, --input I specify the JSON file for input.
--o O, --output O specify the GEXF file for output.
python json_to_gexf.py --i obsidian_data.json --o graph.gexf
- Marc Julian for his python script