amoghpj / citation-graph-builder

Build your own citation graph based on your bibtex file!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is this?

My attempt to build a citation network for the papers I read. Meant for command line usage. Emacs wrappers welcome.

Overview

python citation-graph-builder.py -h
Usage: citation-graph-builder.py [options]

Options:
  -h, --help            show this help message and exit
  -i, --initialize      Create yaml file with entries in bib file. Required
                        step.
  -u, --update          update yaml file with new entries in bib file
  -b BIB_PATH, --bib-path=BIB_PATH
                        path to yaml file
  -y YAML_PATH, --yaml-path=YAML_PATH
                        path to yaml file
  -a, --add-edge        Add edge between head and tail
  --head=HEAD           bib key of head. this is the paper that cites.
  --tail=TAIL           bib key of tail. this is the paper that is cited

Usage

Step 1: Initialize the graph. Populate yaml file with nodes.

python citation-graph-builder.py -i -b path/to/bib/file -y path/to/yaml/file

Step 2: Add edges by specifying the bib keys

python citation-graph-builder.py -a --head citing_key --tail cited_key

Step 3: Update graph whenever the source bib file changes

python citation-graph-builder.py -u -b path/to/bib/file -y path/to/yaml/file

About

Build your own citation graph based on your bibtex file!


Languages

Language:Python 100.0%