owltools.cli
Class CommandRunner

java.lang.Object
  extended by owltools.cli.CommandRunner
Direct Known Subclasses:
GafCommandRunner

public class CommandRunner
extends Object

An instance of this class can execute owltools commands in sequence. Typically, this class is called from a wrapper within its main() method. Extend this class to implement additional functions. Use the CLIMethod annotation, to designate the relevant methods.

Author:
cjm
See Also:
GafCommandRunner, SolrCommandRunner, SimCommandRunner

Nested Class Summary
 class CommandRunner.OptionException
           
 class CommandRunner.Opts
           
 
Field Summary
 boolean exitOnException
           
 OWLGraphWrapper g
           
protected  OWLPrettyPrinter owlpp
           
protected  ParserWrapper pw
           
 org.semanticweb.owlapi.model.OWLOntology queryOntology
           
 org.semanticweb.owlapi.reasoner.OWLReasoner reasoner
           
 String reasonerName
           
 
Constructor Summary
CommandRunner()
           
 
Method Summary
protected  void exit(int code)
           
 void help()
           
 void helpFooter()
           
 List<String> parseArgString(String str)
           
 org.semanticweb.owlapi.model.OWLClass resolveClass(String id)
           
 org.semanticweb.owlapi.model.OWLObject resolveEntity(CommandRunner.Opts opts)
           
 org.semanticweb.owlapi.model.OWLObject resolveEntity(String id)
           
 Set<org.semanticweb.owlapi.model.OWLObject> resolveEntityList(CommandRunner.Opts opts)
           
 org.semanticweb.owlapi.model.OWLObjectProperty resolveObjectProperty(String id)
           
 void run(CommandRunner.Opts opts)
           
 void run(String[] args)
           
 void summarizeOntology(org.semanticweb.owlapi.model.OWLOntology ont)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

g

public OWLGraphWrapper g

queryOntology

public org.semanticweb.owlapi.model.OWLOntology queryOntology

exitOnException

public boolean exitOnException

reasoner

public org.semanticweb.owlapi.reasoner.OWLReasoner reasoner

reasonerName

public String reasonerName

pw

protected ParserWrapper pw

owlpp

protected OWLPrettyPrinter owlpp
Constructor Detail

CommandRunner

public CommandRunner()
Method Detail

exit

protected void exit(int code)

parseArgString

public List<String> parseArgString(String str)

run

public void run(String[] args)
         throws Exception
Throws:
Exception

run

public void run(CommandRunner.Opts opts)
         throws Exception
Throws:
Exception

summarizeOntology

public void summarizeOntology(org.semanticweb.owlapi.model.OWLOntology ont)

resolveEntityList

public Set<org.semanticweb.owlapi.model.OWLObject> resolveEntityList(CommandRunner.Opts opts)

resolveEntity

public org.semanticweb.owlapi.model.OWLObject resolveEntity(CommandRunner.Opts opts)

resolveEntity

public org.semanticweb.owlapi.model.OWLObject resolveEntity(String id)

resolveObjectProperty

public org.semanticweb.owlapi.model.OWLObjectProperty resolveObjectProperty(String id)

resolveClass

public org.semanticweb.owlapi.model.OWLClass resolveClass(String id)

help

public void help()

helpFooter

public void helpFooter()


Copyright © 2010-2012. All Rights Reserved.