This is version . It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]

Okay. So these guys at TouchGraph create a very fast visualization engine. No biggie. But they can use it to visualize a wiki!

Go to this page, then download the TGWikiBrowser. You'll need Java for this - and I recommend JDK1.4 for the sheer speed increase.

They come with a MeatballWiki visualizer installed. You can play with that, or you can download a JSPWiki link file (generated on 21-Apr-2002), by clicking here.

Then, launch the TGWikiBrowser with the following simple command (on UNIX systems):

java -cp TGWikiBrowser.jar:BrowserLauncher.jar com.touchgraph.wikibrowser.TGWikiBrowser jspwiki.txt 
http://www.ecyrd.com/JSPWiki/Wiki.jsp\?page= Main

or on Windows systems:

java -cp TGWikiBrowser.jar;BrowserLauncher.jar com.touchgraph.wikibrowser.TGWikiBrowser jspwiki.txt 
http://www.ecyrd.com/JSPWiki/Wiki.jsp?page= Main

Creating the link file via XML-RPC#

You can also use the following snippet of Java to recreate the JSPWiki link list at any time. You need the Hula package from MahlenMorris to do this.


import org.mahlen.hula.rpcclient.*;

/**
 *  Creates a simple link map for the TouchGraph WikiBrowser v1.1 to standard
 *  output.
 *
 *  <P>
 *  Usage: java Visualizer [optional url] > wikiname.txt
 *  <P>
 *  If the optional url is not defined, contacts JSPWiki.  Requires
 *  the Hula library from Mahlen Morris, and the Jakarta XML-RPC library 
 *  for Java.
 *
 *  @author Janne Jalkanen
 */
public class Visualizer
{
    public static void main(String argv[])
    {
        String wikiAddress = "http://www.ecyrd.com/JSPWiki/RPC2/";

        if( argv.length > 0 )
        {
            wikiAddress = argv[0];
        }

        try
        {
            RPCClient client = new RPCClient(wikiAddress);

            String[] allPages = client.getAllPages();

            for( int i = 0; i < allPages.length; i++ )
            {
                System.out.print( allPages[i] );

                LinkInfo[] l = client.listLinks(allPages[i]);
                
                for( int j = 0; j < l.length; j++ )
                {
                    System.out.print(" "+l[j].getLink());
                }
                System.out.print("\n");
            }
        }
        catch( Exception e )
        {
            System.err.println("Failed to do my thang.");
            e.printStackTrace( System.err );
        }
    }
}

Add new attachment

Only authorized users are allowed to upload new attachments.
« This particular version was published on 21-Apr-2002 22:59 by JanneJalkanen.