owltools.cli
Class CommandRunner
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
owlObjectCachedSet
public Set<org.semanticweb.owlapi.model.OWLObject> owlObjectCachedSet
pw
protected ParserWrapper pw
owlpp
protected OWLPrettyPrinter owlpp
CommandRunner
public CommandRunner()
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.