Hi folks - I’ve seen a couple of threads requesting or asking for some ways of getting the graph out of obsidian into something else for visualization or analysis. I’d like to do this too; it seems to me that network metrics like centrality or modularity (community detection) would be useful to know - how do my notes/ideas cluster? which ideas hold everything together?
I managed a bit of a kludgy way to do this this morning; I imagine someone could probably turn this into a single python script (alternatively, maybe there’s a way to calculate centrality/modularity as a plugin for obsidian). Anyway, here goes -
1 - find the json file in obsidian/ObsidianCache that represents the vault I’m interested in
2 - use jq to get the note title and the note links; something like .metadata[] | [.frontmatter.title, .links] gets me most of the way there
3 - convert the result to csv
4 - manually clean things up so I have two columns, source and target; save as csv
5 - import into gephi
Anyway, ta da - my little vault in obsidian, and now in gephi:
Thanks for this workflow. It seems manageable for small amounts of data. What about importing Gephi data in Obsidian? Any thoughts or examples even out there?
If the script exports the current pattern of linkages in a network format, then the autogeneration shouldn’t be an issue? But I confess, I am only a week into Obsidian, so I don’t know the issues at all.
Cool, I’ll give that an explore! I do find neo4j a bit intimidating; it’s been on my list of things to explore, so I guess I’ll move it up a few notches now.
Hi, Thank you for sharing.
I recently stumbled on Noda(https://noda.io), a visualization network in VR. Thought it would be super cool to see my Obsidian graph in it.
Noda support importing CSV file, so I’m piggy beg on your method. However, I can NOT find the obsidian/ObsidianCache file you mentioned.
Also maybe I’m using Mac, could you be a bit more specific on where it is? Is it in the value? or is it in the System Application Library file?
Really appreciated it.