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.
-
ParkaFileInterface()
-
-
closeConnection()
- Closes the current connection.
-
closeKB()
- Closes the current knowledge base.
-
createClass(String)
- Creates a new class with the specified name.
-
createKB(String)
- Creates a new KB with the name supplied by the user.
-
createPredicate(String, int)
- Creates a new predicate with given name and arity.
-
createPredicate(String, String[])
- Creates a new predicate with given name and types for
arguments.
-
deleteClaims(String)
- Deletes all claims made by the source.
-
displayMessage(String)
-
-
establishConnection(String, int)
- Establish a connection to the given host and port number.
-
openKB(String)
- Opens an existing knowledge base using the default location.
-
openKB(String, String, int)
- Opens an existing knowledge base that is avaiable through the
given host and port number.
-
queryKB(Query)
- Issues an arbitrary query to the KB.
-
storeAxiom(Axiom)
- Asserts a new axiom to the KB.
-
storeClaim(String, String, String[])
- Stores a claim consisting of the predicate and array of arguments
and attributes it to the given source.
-
writePredicates()
-
ParkaFileInterface
public ParkaFileInterface()
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
createKB
public void createKB(String kbName) throws KBException
- Creates a new KB with the name supplied by the user.
- Overrides:
- createKB in class KBInterface
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
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
closeKB
public void closeKB()
- Closes the current knowledge base.
- Overrides:
- closeKB in class KBInterface
closeConnection
public void closeConnection()
- Closes the current connection. Any open KBs will be closed as well.
- Overrides:
- closeConnection in class KBInterface
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
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
deleteClaims
public void deleteClaims(String source)
- Deletes all claims made by the source.
- Overrides:
- deleteClaims in class KBInterface
storeAxiom
public void storeAxiom(Axiom anAxiom)
- Asserts a new axiom to the KB.
- Overrides:
- storeAxiom in class KBInterface
displayMessage
public void displayMessage(String msg)
createClass
public void createClass(String className)
- Creates a new class with the specified name.
- Overrides:
- createClass in class KBInterface
createPredicate
public void createPredicate(String predicate,
int arity)
- Creates a new predicate with given name and arity.
- Overrides:
- createPredicate in class KBInterface
createPredicate
public void createPredicate(String predicate,
String argTypes[])
- Creates a new predicate with given name and types for
arguments.
- Overrides:
- createPredicate in class KBInterface
writePredicates
public void writePredicates()
All Packages Class Hierarchy This Package Previous Next Index