All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ShoeKb.ParkaFileInterface

java.lang.Object
   |
   +----ShoeKb.KBInterface
           |
           +----ShoeKb.ParkaFileInterface

public class ParkaFileInterface
extends KBInterface
Implements the KBInterface by creating Parka data files which can then be used to create a new Parka knowledge base.


Constructor Index

 o ParkaFileInterface()

Method Index

 o closeConnection()
Closes the current connection.
 o closeKB()
Closes the current knowledge base.
 o createClass(String)
Creates a new class with the specified name.
 o createKB(String)
Creates a new KB with the name supplied by the user.
 o createPredicate(String, int)
Creates a new predicate with given name and arity.
 o createPredicate(String, String[])
Creates a new predicate with given name and types for arguments.
 o deleteClaims(String)
Deletes all claims made by the source.
 o displayMessage(String)
 o establishConnection(String, int)
Establish a connection to the given host and port number.
 o openKB(String)
Opens an existing knowledge base using the default location.
 o openKB(String, String, int)
Opens an existing knowledge base that is avaiable through the given host and port number.
 o queryKB(Query)
Issues an arbitrary query to the KB.
 o storeAxiom(Axiom)
Asserts a new axiom to the KB.
 o storeClaim(String, String, String[])
Stores a claim consisting of the predicate and array of arguments and attributes it to the given source.
 o writePredicates()

Constructors

 o ParkaFileInterface
 public ParkaFileInterface()

Methods

 o establishConnection
 public void establishConnection(String newHost,
                                 int newPort) throws KBException
Establish a connection to the given host and port number.

Overrides:
establishConnection in class KBInterface
 o createKB
 public void createKB(String kbName) throws KBException
Creates a new KB with the name supplied by the user.

Overrides:
createKB in class KBInterface
 o openKB
 public void openKB(String kbName) throws KBException
Opens an existing knowledge base using the default location. Parka files are only used to create new knowledge bases, so this method is unimplemented.

Overrides:
openKB in class KBInterface
 o openKB
 public void openKB(String kbName,
                    String host,
                    int port) throws KBException
Opens an existing knowledge base that is avaiable through the given host and port number. Parka files are only used to create new knowledge bases, so this method is unimplemented.

Overrides:
openKB in class KBInterface
 o closeKB
 public void closeKB()
Closes the current knowledge base.

Overrides:
closeKB in class KBInterface
 o closeConnection
 public void closeConnection()
Closes the current connection. Any open KBs will be closed as well.

Overrides:
closeConnection in class KBInterface
 o queryKB
 public ResultSet queryKB(Query query)
Issues an arbitrary query to the KB. Variable arguments are preceded by question marks. The answers are returned in a matrix.

Overrides:
queryKB in class KBInterface
 o storeClaim
 public void storeClaim(String source,
                        String predicate,
                        String args[])
Stores a claim consisting of the predicate and array of arguments and attributes it to the given source.

Overrides:
storeClaim in class KBInterface
 o deleteClaims
 public void deleteClaims(String source)
Deletes all claims made by the source.

Overrides:
deleteClaims in class KBInterface
 o storeAxiom
 public void storeAxiom(Axiom anAxiom)
Asserts a new axiom to the KB.

Overrides:
storeAxiom in class KBInterface
 o displayMessage
 public void displayMessage(String msg)
 o createClass
 public void createClass(String className)
Creates a new class with the specified name.

Overrides:
createClass in class KBInterface
 o createPredicate
 public void createPredicate(String predicate,
                             int arity)
Creates a new predicate with given name and arity.

Overrides:
createPredicate in class KBInterface
 o createPredicate
 public void createPredicate(String predicate,
                             String argTypes[])
Creates a new predicate with given name and types for arguments.

Overrides:
createPredicate in class KBInterface
 o writePredicates
 public void writePredicates()

All Packages  Class Hierarchy  This Package  Previous  Next  Index