Using a Wiki as a Research Notebook
Friday, March 4th, 2005...7:47 am
Using MoinMoin to keep track of research notes and references as part of my PhD.
h2. Introduction
I started a PhD in January 2005 and needed a way to keep track of all my notes, the papers I’d read, the quotes I’d like to remember etc. Initially, I spend (far too long) writing a Java outliner to keep track of my thoughts. This quickly snowballed into a complicated project but wasn’t giving me what I wanted, so I abandoned it. Next, I thought an existing framework would help me to concentrate on the real issues – I tried using “NetBeans”:http://www.netbeans.org as a base but it was, again, far too complicated for a quick project. Recently, I’ve been using a “moleskine notebook”:http://www.moleskine.com (and nothing is ever going to make me stop using it) but this isn’t particularly searchable etc. So, I’ve been looking for a reasonably easy Wiki I could use on my laptop, work PC and this website. I chose MoinMoin but others may also be suitable.
MoinMoin is written in Python, which I am discovering makes it ideal for a little hacking. Until last week, I’d never written any Python scripts but then I started playing around with Python and the Amazon API. This gave me enough confidence to write two macros for MoinMoin.
h2. Installation
Download the two macros “BibKeys.txt”:/research/BibKeys.txt and “BibEntry.txt”:/research/BibEntry.txt and their dependant libraries (described at the end of this page). Install the libraries using their instructions. Copy the macros to your MoinMoin macros directory and change the extension from .txt to .py. Both of the macros need to know the location of your BibTeX file so open them up and edit the following line to reflect your configuration:
file = 'c:/Documents and Settings/jel03r/Desktop/PhD/reports/9mth Report/bibtex/references.bib'
h3. BibKeys.py
The first macro, BibKeys, creates a list of WikiNames from the keys in a BibTeX file. Insert this macro into your page like this
[[BibKeys]]
and you’ll get a list of the bibtex keys in your file. You can now go and write comments/quotes etc about each paper
[[BibKeys]]
h3. BibEntry.py
This macro, BibEntry inserts the BibTeX entry into the page like such:
[[BibEntry(Lawrence2004a)]]
[[BibEntry]]
The first line will insert the bibtex entry for the key “Lawrence2004a”:
@ARTICLE{Lawrence2004a,
author = {Jamie Lawrence and Terry Payne},
title = {Making use of Insignificant Interactions},
journal = {Equator All-hands Meeting},
year = {2004},
month = {February},
owner = {jamie},
pdf = {Lawrence2004a.pdf},
}
The second line is useful if you create pages from a BibKeys macro: It inserts the bibtex entry using the current pagename as the key. So, if the current page is called “Lawrence2004a” then is will have the same output as [[BibEntry(Lawrence2004a)]]
h2. Dependancies
These macros depend on “bibstuff”:http://www.pricklysoft.org/software/bibstuff.html, “seqdict”:http://home.germany.net/100-366919/Python/Modules/Modules.html, “Simple Parser”:http://simpleparse.sourceforge.net/ and “mxTextTools”:http://www.egenix.com/files/python/mxTextTools.html. These must be installed first. I’ve tested this on Apache/Apache2, Python 2.2/2.3 and MoinMoin 1.2.2/1.3.3, on both Linux and Windows.
Contact me via this website if you want more details, or leave a comment below
5 Comments
September 2nd, 2005 at 7:57 am
Just thought you might be interested in TiddlyWiki. It is javascript page, acts like a wiki, but is a single html page. http://www.tiddlywiki.com. I use it on a usb thumb drive. This way no matter what computer I am at, I can view my notes, internet connection or not.
January 20th, 2006 at 7:23 am
Hi nice idea! I use moinmoin as my scientific notebook, it’s a real productivity gain (especially with latex formulas…).
I had a similar idea of using MoinMoin which in fact is a great database management system for sharing bibliographic knowledge in a scientific intranet (a nightmare for the moment). every paper, author or journal would be a wiki page. but no real solution yet, it would require the possibility of im/exporting everything in a Bibtex format.
September 18th, 2006 at 11:48 pm
Hey, I’ve been trying to get this working but I think that bibstuff is no longer compatable with your macros. It would be great if you could post to the verison you’re using.
September 22nd, 2006 at 3:19 am
Noah, I’ll have to look into any changes to Bibstuff. I’ve recently upgraded to the latest moinmoin installation so there might be other changes I’ve made to the macros. I’ll post a comment when I’ve updated them.
December 8th, 2006 at 3:48 pm
I’ve modified your scripts so that they work with the latest bibstuff. If you’d like I could email them to you.
These scripts are really helpful! Thanks!
Leave a Reply