Skip to content

salmund/obsidian_network_to_gephi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to import your network data into Gephi for Graph Analysis

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.

Salmund's JSON to CSV method

  1. 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.

  1. Copy the obtained object (right click on it) in your clipboard and paste it in a file that you will name "obsidian_data.json"

  2. Use the script network_json_to_csv.js, download it and run it in the same directory as your JSON file.

  3. You normally get a .csv file named obsidian_data.csv that you can import directly into Gephi

Marc Julian's JSON to GEXF method

  1. Get your JSON data in the same way as in the first method

  2. 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.

Basic usage

python json_to_gexf.py --i obsidian_data.json --o graph.gexf

Requirements

Acknowledgements

About

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published