de.fuberlin.wiwiss.d2rq
Class CommandLineTool

java.lang.Object
  extended by de.fuberlin.wiwiss.d2rq.CommandLineTool
Direct Known Subclasses:
d2r_query, dump_rdf, generate_mapping, server

public abstract class CommandLineTool
extends Object

Base class for the D2RQ command line tools. They share much of their argument list and functionality, therefore this is extracted into this superclass.

Author:
Richard Cyganiak (richard@cyganiak.de)

Constructor Summary
CommandLineTool()
           
 
Method Summary
abstract  void initArgs(jena.cmdline.CommandLine cmd)
           
 void printConnectionOptions()
           
 void printStandardArguments(boolean withMappingFile)
           
 void process(String[] args)
           
static void reportException(D2RQException ex)
           
 void reportException(Exception ex)
           
abstract  void run(jena.cmdline.CommandLine cmd, SystemLoader loader)
           
 void setMinMaxArguments(int min, int max)
           
 void setSupportImplicitJdbcURL(boolean flag)
           
abstract  void usage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLineTool

public CommandLineTool()
Method Detail

usage

public abstract void usage()

initArgs

public abstract void initArgs(jena.cmdline.CommandLine cmd)

run

public abstract void run(jena.cmdline.CommandLine cmd,
                         SystemLoader loader)
                  throws D2RQException,
                         IOException
Throws:
D2RQException
IOException

setMinMaxArguments

public void setMinMaxArguments(int min,
                               int max)

setSupportImplicitJdbcURL

public void setSupportImplicitJdbcURL(boolean flag)

process

public void process(String[] args)

reportException

public static void reportException(D2RQException ex)

reportException

public void reportException(Exception ex)

printStandardArguments

public void printStandardArguments(boolean withMappingFile)

printConnectionOptions

public void printConnectionOptions()