Class DIGger

Description

DIGger class as a interface to the dig reasoner.

Located in /DIGger.php (line 45)


	
			
Direct descendents
Class Description
DigAsk build a question for the DIG Server
DIGTell DIGger class as a interface to the dig reasoner.
Variable Summary
ConfigFile $ConfigFile
debug $debug
internal $error
error $msg
string $_HOST
integer $_PORT
string $_URI
array $_XMLIndex
Parser $_XMLParser
array $_XMLValues
XML $_XML_NS
XML $_XML_XSI
Method Summary
DIGger DIGger ([ $debug = false])
void ask ( $question)
void CheckResponse ()
void connect ( $URI, [ $HOST = "localhost"], [ $PORT = 8081])
void DIGIn ( $infile)
string getURI ()
void identify ()
bool, isError ()
string newKB ()
void readConfigFile ( $FileName)
void releaseKB ()
void SaveConfig ()
array sendRequest (string $msg, [ $checkURI = true])
void setHeader ()
void setURI ( $URI)
void tell ( $knowledge, [ $filemode = false])
void testConnection ()
Variables
ConfigFile $ConfigFile = 'digger.ini' (line 102)
  • var: to use
  • access: public
debug $debug = false (line 98)
  • access: public
internal $error (line 110)
  • var: error code.
  • access: public
error $msg = "" (line 106)
  • var: message that we have got.
  • access: public
error $response_val (line 114)
  • var: for the value:
  • access: public
string $_HOST (line 54)
  • var: host to connect to
  • access: public
integer $_PORT (line 58)
  • var: Port to connect on host
  • access: public
string $_URI (line 50)
  • var: contains the Identifier that is needed by the reasoner
  • access: public
XML $_XMLHeader (line 94)
  • var: the header for the XML Request
  • access: public
array $_XMLIndex (line 86)
  • var: Respnse values
  • access: public
Parser $_XMLParser (line 82)
  • var: the XML parser object
  • access: public
array $_XMLResponse (line 78)
  • var: answer from the server
  • access: public
array $_XMLValues (line 90)
  • var: Response Values
  • access: public
XML $_XML_Identifier (line 74)
  • var: Identify string
  • access: public
XML $_XML_NS (line 62)
  • var: Namespase to be used
  • access: public
XML $_XML_NS_XSI (line 66)
  • var: Namespace to used
  • access: public
XML $_XML_XSI (line 70)
  • var: Namespace
  • access: public
Methods
Constructor DIGger (line 120)

Constructor sets some Standard config parameters

  • access: public
DIGger DIGger ([ $debug = false])
  • $debug
ask (line 190)

not realized so far but should later realize a ask request for the DIG Server.

  • access: public
void ask ( $question)
  • $question
CheckResponse (line 303)
  • access: public
void CheckResponse ()
connect (line 136)

does not what it sound so far. it just sets parameter for the server to connect

  • access: public
void connect ( $URI, [ $HOST = "localhost"], [ $PORT = 8081])
  • $URI
  • $HOST
  • $PORT
DIGIn (line 174)

read DIG from $infile

  • access: public
void DIGIn ( $infile)
  • $infile
getURI (line 241)

get the URI name

  • return: URI
  • access: public
string getURI ()
identify (line 224)

sends a identify request to the DIG Server. can be later used to check if the server is online.

  • access: public
void identify ()
isError (line 319)

check for errormessages

  • return: true if error occured. else false
  • access: public
bool, isError ()
newKB (line 249)

creates a new Knowledgebase and gives back the access URI

  • return: URI
  • access: public
string newKB ()
readConfigFile (line 147)

Parameters from Config file Section [General] are set as Class variables.

A [var] from the config file is read and will translated to the class var [_var]

  • access: public
void readConfigFile ( $FileName)
  • $FileName
releaseKB (line 183)

Releasing a knowledgebase means to delete its content from the server. so use this function with care.

  • access: public
void releaseKB ()
SaveConfig (line 331)

saves the config to a file.

  • access: public
void SaveConfig ()
sendRequest (line 266)

Send a Request to the DIG Server.

  • return: Answer from the Server.
  • access: public
array sendRequest (string $msg, [ $checkURI = true])
  • string $msg: request that should be sent to the server.
  • $checkURI
setHeader (line 158)

not realized so far

  • access: public
void setHeader ()
setURI (line 233)

set a new URI

  • access: public
void setURI ( $URI)
  • $URI
tell (line 198)

performs a tell request. either from file or from the String.

  • access: public
void tell ( $knowledge, [ $filemode = false])
  • $knowledge
  • $filemode
testConnection (line 164)

outputs a string instead of true false.

  • access: public
void testConnection ()

Documentation generated on Fri, 12 Jan 2007 17:04:07 +0100 by phpDocumentor 1.3.1