Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MMesch/ObsidianToGraph
Extracts node.csv and edge.csv from an Obsidian vault folder for visualization with Gephi
https://github.com/MMesch/ObsidianToGraph
Last synced: 3 months ago
JSON representation
Extracts node.csv and edge.csv from an Obsidian vault folder for visualization with Gephi
- Host: GitHub
- URL: https://github.com/MMesch/ObsidianToGraph
- Owner: MMesch
- Created: 2024-05-16T12:43:47.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-16T12:54:51.000Z (7 months ago)
- Last Synced: 2024-06-02T09:22:34.051Z (6 months ago)
- Language: Haskell
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - MMesch/ObsidianToGraph - Extracts node.csv and edge.csv from an Obsidian vault folder for visualization with Gephi (Haskell)
README
# Obsidian To Graph
This script extracts nodes and edges from a folder in an Obsidian vault and
saves them as `nodes.csv` and `edges.csv`. It uses the full path (without
extension) as node `ID`, and also writes a `Type` column which contains the
full folder name (that is with all subfolders).You can run it with `nix run github:mmesch/ObsidianToGraph -- FOLDER` where
`FOLDER` is the folder in your vault that you want to convert.**CAREFUL** you need to convert all links in your Obsidian vault to "absolute"
first. You can do that with the
[link converter plugin](https://github.com/ozntel/obsidian-link-converter) after
selecting "absolute" links under settings.Gephi is sometimes a pain to run. If `nix run nixpkgs#gephi` doesn't really
work because of OpenGL issues, you can download the latest gephi package from
their website, extract it and run the executable with:`NIXPKGS_ALLOW_UNFREE=1 nix run nixpkgs#steam-run --impure -- ./gephi`
Afterwards you go on "open" in the main menu, select the `nodes.csv` file
first, click through the dialogs making sure "Append to Existing Workspace" is
selected. Afterwards you do the same with `edges.csv` and that's it.