Related link: http://www.discursive.com
As promised, the code for drawing graphs from the O’Reilly Connection FOAF documents is available. The Subversion repository linked to below contains a very straightforward Python script which can be used to generate dot files for Graphviz. I’ve applied the Apache Software License 2.0, so feel free to do what you will with this logic. Read on for SVN repository URL…
Python is to Ruby as Java is to….
The code can be found at the following locations:
- Subversion: repository is available here: http://brahe.discursive.com/svn/ora-graph/tags/PREVIEW/
- ViewCVS: Or, if you prefer to browse the code, take a look at the ViewCVS interface here: http://brahe.discursive.com/viewcvs/ora-graph/tags/PREVIEW/
If you are going to run this code, here are a few guidelines/suggestions:
- You must not graph past 3 levels of separation. Why? For starters, it will take you forever. It will
also tie up the O’Reilly servers with requests for FOAF documents. - Read the README and don’t expect elegant Python code.
- In case you missed the previous bullet point: Read the README file.
Happy graphing. For my next trick, I’m currently working on a way to generate the appropriate format for a 3D fly through. Stay tuned.

