Class COjDA

java.lang.Object
  extended by COjDA

public class COjDA
extends java.lang.Object

This class implements the Complete OO jDREW API (COjDA)

Author:
craigb

Field Summary
(package private)  jdrew.oo.td.BackwardReasoner br
           
(package private)  jdrew.oo.util.DefiniteClause dc
           
(package private)  boolean noKB
           
(package private)  boolean noTaxonomy
           
static int POSL
           
(package private)  jdrew.oo.util.POSLParser pp
           
static int RDFS
           
(package private)  jdrew.oo.util.RuleMLParser rp
           
(package private)  jdrew.oo.util.RDFSParser rr
           
static int RULEML91
           
(package private)  jdrew.oo.util.TaxonomyQueryAPI taxonomyAPI
           
(package private)  int varSize
           
 
Constructor Summary
COjDA(int profile_KB, java.io.File KB)
          This COjDA constructor requires only a Knowledge base to be constructed.
COjDA(int profile_KB, int profile_Taxonomy, java.io.File KB, java.io.File taxonomy)
          This COjDA constructor requires a Knowledge base and Taxonomy to be constructed.
COjDA(int profile_KB, int profile_Taxonomy, java.io.File KB, java.lang.String taxonomy)
          This COjDA constructor requires a Knowledge base and Taxonomy to be constructed.
COjDA(int profile_KB, int profile_Taxonomy, java.lang.String KB, java.io.File taxonomy)
          This COjDA constructor requires a Knowledge base and Taxonomy to be constructed.
COjDA(int profile_KB, int profile_Taxonomy, java.lang.String KB, java.lang.String taxonomy)
          This COjDA constructor requires a Knowledge base and Taxonomy to be constructed.
COjDA(int profile_KB, java.lang.String KB)
          This COjDA constructor requires only a Knowledge base to be constructed.
 
Method Summary
 java.lang.String issueKBQuery_POSL(java.io.File query)
          This method will issue a Query on the KB using a POSL Query
 java.lang.String issueKBQuery_POSL(java.lang.String query)
          This method will issue a Query on the KB using a POSL Query
 java.lang.String issueKBQuery_RuleML(java.io.File query)
          This method will issue a Query on the KB using a RuleML Query
 java.lang.String issueKBQuery_RuleML(java.lang.String query)
          This method will issue a Query on the KB using a RuleML Query
 java.lang.String issueTaxonomyQuery_POSL(java.io.File query)
          This method will issue a POSL query on the Taxonomy.
 java.lang.String issueTaxonomyQuery_POSL(java.lang.String query)
          This method will issue a POSL query on the Taxonomy.
 java.lang.String issueTaxonomyQuery_RuleML(java.io.File query)
          This method will issue a RuleML query on the Taxonomy.
 java.lang.String issusTaxonomyQuery_RuleML(java.lang.String query)
          This method will issue a RuleML query on the Taxonomy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

varSize

int varSize

br

jdrew.oo.td.BackwardReasoner br

dc

jdrew.oo.util.DefiniteClause dc

rp

jdrew.oo.util.RuleMLParser rp

pp

jdrew.oo.util.POSLParser pp

rr

jdrew.oo.util.RDFSParser rr

taxonomyAPI

jdrew.oo.util.TaxonomyQueryAPI taxonomyAPI

noTaxonomy

boolean noTaxonomy

noKB

boolean noKB

POSL

public static final int POSL
See Also:
Constant Field Values

RULEML91

public static final int RULEML91
See Also:
Constant Field Values

RDFS

public static final int RDFS
See Also:
Constant Field Values
Constructor Detail

COjDA

COjDA(int profile_KB,
      java.io.File KB)
throws antlr.RecognitionException,
       antlr.TokenStreamException,
       java.io.IOException,
       nu.xom.ValidityException,
       jdrew.oo.util.ParseException,
       nu.xom.ParsingException
This COjDA constructor requires only a Knowledge base to be constructed.

Parameters:
profile_KB - - The format the KB is in. 1 For POSL, 2 for RuleML91.
KB - - This File contains the KB to be parsed.
Throws:
antlr.RecognitionException
antlr.TokenStreamException
java.io.IOException
nu.xom.ValidityException
jdrew.oo.util.ParseException
nu.xom.ParsingException

COjDA

COjDA(int profile_KB,
      java.lang.String KB)
throws antlr.RecognitionException,
       antlr.TokenStreamException,
       nu.xom.ValidityException,
       jdrew.oo.util.ParseException,
       nu.xom.ParsingException,
       java.io.IOException
This COjDA constructor requires only a Knowledge base to be constructed.

Parameters:
profile_KB - - The format the KB is in. 1 For POSL, 2 for RuleML91.
KB - - This String contains the KB to be parsed.
Throws:
antlr.RecognitionException
antlr.TokenStreamException
nu.xom.ValidityException
jdrew.oo.util.ParseException
nu.xom.ParsingException
java.io.IOException

COjDA

COjDA(int profile_KB,
      int profile_Taxonomy,
      java.lang.String KB,
      java.lang.String taxonomy)
throws antlr.RecognitionException,
       antlr.TokenStreamException,
       nu.xom.ValidityException,
       jdrew.oo.util.ParseException,
       nu.xom.ParsingException,
       java.io.IOException,
       jdrew.oo.util.SubException
This COjDA constructor requires a Knowledge base and Taxonomy to be constructed.

Parameters:
profile_KB - - The format the KB is in. 1 For POSL, 2 for RuleML91.
profile_Taxonomy - - The format the Taxonomy is in. 1 For POSL, 3 for RDFS.
KB - - This String contains the KB to be parsed.
taxonomy - -This String contains the Taxonomy to be parsed.
Throws:
antlr.RecognitionException
antlr.TokenStreamException
nu.xom.ValidityException
jdrew.oo.util.ParseException
nu.xom.ParsingException
java.io.IOException
jdrew.oo.util.SubException

COjDA

COjDA(int profile_KB,
      int profile_Taxonomy,
      java.lang.String KB,
      java.io.File taxonomy)
throws antlr.RecognitionException,
       antlr.TokenStreamException,
       nu.xom.ValidityException,
       jdrew.oo.util.ParseException,
       nu.xom.ParsingException,
       java.io.IOException,
       jdrew.oo.util.SubException
This COjDA constructor requires a Knowledge base and Taxonomy to be constructed.

Parameters:
profile_KB - - The format the KB is in. 1 For POSL, 2 for RuleML91.
profile_Taxonomy - - The format the Taxonomy is in. 1 For POSL, 3 for RDFS..
KB - - This String contains the KB to be parsed.
taxonomy - -This File contains the Taxonomy to be parsed.
Throws:
antlr.RecognitionException
antlr.TokenStreamException
nu.xom.ValidityException
jdrew.oo.util.ParseException
nu.xom.ParsingException
java.io.IOException
jdrew.oo.util.SubException

COjDA

COjDA(int profile_KB,
      int profile_Taxonomy,
      java.io.File KB,
      java.lang.String taxonomy)
throws antlr.RecognitionException,
       antlr.TokenStreamException,
       java.io.IOException,
       nu.xom.ValidityException,
       jdrew.oo.util.ParseException,
       nu.xom.ParsingException,
       jdrew.oo.util.SubException
This COjDA constructor requires a Knowledge base and Taxonomy to be constructed.

Parameters:
profile_KB - - The format the KB is in. 1 For POSL, 2 for RuleML91.
profile_Taxonomy - - The format the Taxonomy is in. 1 For POSL, 3 for RDFS.
KB - - This File contains the KB to be parsed.
taxonomy - -This String contains the Taxonomy to be parsed.
Throws:
antlr.RecognitionException
antlr.TokenStreamException
java.io.IOException
nu.xom.ValidityException
jdrew.oo.util.ParseException
nu.xom.ParsingException
jdrew.oo.util.SubException

COjDA

COjDA(int profile_KB,
      int profile_Taxonomy,
      java.io.File KB,
      java.io.File taxonomy)
throws antlr.RecognitionException,
       antlr.TokenStreamException,
       java.io.IOException,
       nu.xom.ValidityException,
       jdrew.oo.util.ParseException,
       nu.xom.ParsingException,
       jdrew.oo.util.SubException
This COjDA constructor requires a Knowledge base and Taxonomy to be constructed.

Parameters:
profile_KB - - The format the KB is in. 1 For POSL, 2 for RuleML91.
profile_Taxonomy - - The format the Taxonomy is in. 1 For POSL, 3 for RDFS..
KB - - This File contains the KB to be parsed.
taxonomy - - This File contains the Taxonomy to be parsed.
Throws:
antlr.RecognitionException
antlr.TokenStreamException
java.io.IOException
nu.xom.ValidityException
jdrew.oo.util.ParseException
nu.xom.ParsingException
jdrew.oo.util.SubException
Method Detail

issueKBQuery_POSL

public java.lang.String issueKBQuery_POSL(java.lang.String query)
                                   throws antlr.RecognitionException,
                                          antlr.TokenStreamException
This method will issue a Query on the KB using a POSL Query

Parameters:
query - - a POSL query as a String.
Returns:
returns the RuleML answer expression as a String.
Throws:
antlr.RecognitionException
antlr.TokenStreamException

issueKBQuery_POSL

public java.lang.String issueKBQuery_POSL(java.io.File query)
                                   throws antlr.RecognitionException,
                                          antlr.TokenStreamException,
                                          java.io.IOException
This method will issue a Query on the KB using a POSL Query

Parameters:
query - - a POSL query stored in a File.
Returns:
returns the RuleML answer expression as a String.
Throws:
antlr.RecognitionException
antlr.TokenStreamException
java.io.IOException

issueKBQuery_RuleML

public java.lang.String issueKBQuery_RuleML(java.lang.String query)
                                     throws nu.xom.ValidityException,
                                            jdrew.oo.util.ParseException,
                                            nu.xom.ParsingException,
                                            java.io.IOException
This method will issue a Query on the KB using a RuleML Query

Parameters:
query - - a RuleML query as a String.
Returns:
returns the RuleML answer expression as a String.
Throws:
nu.xom.ValidityException
jdrew.oo.util.ParseException
nu.xom.ParsingException
java.io.IOException

issueKBQuery_RuleML

public java.lang.String issueKBQuery_RuleML(java.io.File query)
                                     throws nu.xom.ValidityException,
                                            jdrew.oo.util.ParseException,
                                            nu.xom.ParsingException,
                                            java.io.IOException
This method will issue a Query on the KB using a RuleML Query

Parameters:
query - - a RuleML query stored in a File.
Returns:
returns the RuleML answer expression as a String.
Throws:
nu.xom.ValidityException
jdrew.oo.util.ParseException
nu.xom.ParsingException
java.io.IOException

issueTaxonomyQuery_POSL

public java.lang.String issueTaxonomyQuery_POSL(java.lang.String query)
                                         throws nu.xom.ValidityException,
                                                jdrew.oo.util.ParseException,
                                                nu.xom.ParsingException,
                                                java.io.IOException,
                                                java.lang.Exception
This method will issue a POSL query on the Taxonomy.

Parameters:
query - - a POSL query as a String.
Returns:
returns the RuleML answer expression as a String.
Throws:
nu.xom.ValidityException
jdrew.oo.util.ParseException
nu.xom.ParsingException
java.io.IOException
java.lang.Exception

issueTaxonomyQuery_POSL

public java.lang.String issueTaxonomyQuery_POSL(java.io.File query)
                                         throws nu.xom.ValidityException,
                                                jdrew.oo.util.ParseException,
                                                nu.xom.ParsingException,
                                                java.io.IOException,
                                                java.lang.Exception
This method will issue a POSL query on the Taxonomy.

Parameters:
query - - a POSL query stored in a File.
Returns:
returns the RuleML answer expression as a String.
Throws:
nu.xom.ValidityException
jdrew.oo.util.ParseException
nu.xom.ParsingException
java.io.IOException
java.lang.Exception

issusTaxonomyQuery_RuleML

public java.lang.String issusTaxonomyQuery_RuleML(java.lang.String query)
                                           throws nu.xom.ValidityException,
                                                  jdrew.oo.util.ParseException,
                                                  nu.xom.ParsingException,
                                                  java.io.IOException,
                                                  java.lang.Exception
This method will issue a RuleML query on the Taxonomy.

Parameters:
query - - a RuleML query as a String.
Returns:
returns the RuleML answer expression as a String.
Throws:
nu.xom.ValidityException
jdrew.oo.util.ParseException
nu.xom.ParsingException
java.io.IOException
java.lang.Exception

issueTaxonomyQuery_RuleML

public java.lang.String issueTaxonomyQuery_RuleML(java.io.File query)
                                           throws nu.xom.ValidityException,
                                                  jdrew.oo.util.ParseException,
                                                  nu.xom.ParsingException,
                                                  java.io.IOException,
                                                  java.lang.Exception
This method will issue a RuleML query on the Taxonomy.

Parameters:
query - - a RuleML query stored in a File.
Returns:
returns the RuleML answer expression as a String.
Throws:
nu.xom.ValidityException
jdrew.oo.util.ParseException
nu.xom.ParsingException
java.io.IOException
java.lang.Exception