Previous: Merge Tool Up: Tools Index Next: Stats Processor Development Guide

Topic Map Statistics Tool

Description

The stats tool is a command-line utility for extracting useful statistical information from a topic map - if only to boast about its size to your friends :-). The processor loads and walks the topic map, gathering various counts and computing a set of measures. The default processor currently implements the following measures:

The processor used by the tool is replacable - in otherwords, the org.tm4j.topicmap.cmd.Stats utility is a 'framework' for topic map stats tools. For more information about developing alternate stats processors, see Stats Processor Development Guide

A list of files may be provided on the command line for input. In this case, the files are merged in much the same way as the command-line merge tool and the stats process is run on the merged result (Note, however that the merged topic map is never written to a file).

Usage

java org.tm4j.topicmap.cmd.Stats {options} input_file [input_file...]

or, if using the scripts provided in the bin directory:

stats {options} input_file [input_file...]

Options

-v| -verbose
Produce verbose/exhaustive statistics.
-m| -minimal
Produce a minimal set of statistics. Exactly what constitutes the minimal set is dependant on the processor used.
-o| -out
Specifies the file to which the stats are written. If not specified, stats are written to the standard output stream.
-p| -processor
Specifies the class to be used as the processor engine. If not specified, it defaults to org.tm4j.topicmap.cmd.DefaultStatsProcesor
-n | --nomerge
If specified, then mergeMap directives in the read topic maps will not be processed and references to topics in other topic maps will not cause the referenced topic maps to be processed.

Last modified $Date: 2003/03/20 21:25:40 $