org.semanticweb.HermiT.debugger.commands
Class QueryCommand

java.lang.Object
  extended by org.semanticweb.HermiT.debugger.commands.AbstractCommand
      extended by org.semanticweb.HermiT.debugger.commands.QueryCommand
All Implemented Interfaces:
ICommand

public class QueryCommand
extends AbstractCommand
implements ICommand


Field Summary
 
Fields inherited from class org.semanticweb.HermiT.debugger.commands.AbstractCommand
args, debugger
 
Constructor Summary
QueryCommand()
           
 
Method Summary
 void execute()
          Prints all facts for the given unary or binary predicate and node IDs.
 java.lang.String getHelpText()
           
protected  void printFact(java.lang.Object[] fact, java.io.PrintWriter writer)
           
 
Methods inherited from class org.semanticweb.HermiT.debugger.commands.AbstractCommand
formatBlockingStatus, getArgs, getDebugger, selectConsoleWindow, setArgs, setDebugger, showTextInWindow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.semanticweb.HermiT.debugger.commands.ICommand
setArgs, setDebugger
 

Constructor Detail

QueryCommand

public QueryCommand()
Method Detail

execute

public void execute()
Prints all facts for the given unary or binary predicate and node IDs. DLPredicate and nodeID can be replaced with ? for unrestricted querying. q can be used instead of query.

Specified by:
execute in interface ICommand
Specified by:
execute in class AbstractCommand

printFact

protected void printFact(java.lang.Object[] fact,
                         java.io.PrintWriter writer)

getHelpText

public java.lang.String getHelpText()
Specified by:
getHelpText in interface ICommand
Specified by:
getHelpText in class AbstractCommand