Coder Social home page Coder Social logo

aatmunbaxi / orgroamtools Goto Github PK

View Code? Open in Web Editor NEW
21.0 2.0 0.0 3.46 MB

Helper library for data analysis of org-roam collections

Home Page: https://aatmunbaxi.github.io/orgroamtools/

License: MIT License

Python 100.00%
data-science org-roam personal-knowledge-management python emacs exploratory-data-analysis library

orgroamtools's Introduction

orgroamtools ๐Ÿ““๐Ÿ”ฌ

viz/COVER.svg

orgroamtools is a Python library to assist in data analysis of org-roam collection, written in as close to pure Python as possible. It can pull various bits of information out of your org-roam, including some body-text based information like source blocks and LaTeX snippets. The information you extract about the natural graph structure of your collection can be used for many types of exploratory data analysis involving graph neural networks, natural language processing, and topological data analysis.

To use it, all you need is a healthy org-roam v2 database! Take a minute to locate the database by inspecting the value of (org-roam-db-location) in Emacs, then make sure it is up to date by running (org-roam-db-sync).

Getting Started

Install the library, putting it in a virtual environment if desired:

python -m pip install orgroamtools

Import the library and pass in your database path:

from orgroamtools.data import RoamGraph
collection = RoamGraph(PATH_TO_ORG_ROAM_DB)

You can extract the graph structure via adjacency lists for use in graph data analysis methods like GNNs and TDA:

graph = collection.adjacency_list

Or you can extract the body texts of the nodes for text preprocessing for NLP:

node_bodies = collection.body_index

Full documentation of functions and features for the library can be read here.

Dependencies

  • Python 3.10+
  • networkx: a graph analysis library for Python
  • orgparse: a Python library for parsing org-mode files

Related

  • obsidiantools

orgroamtools's People

Contributors

aatmunbaxi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.