edu.lehigh.swat.obione
Class KAON2AbstractConnection

java.lang.Object
  extended by edu.lehigh.swat.obione.KAON2AbstractConnection
Direct Known Subclasses:
AnsweringEngine, LAVProcessor, MiniConQuery, OBI1Query, Reformulator, SourceProcessor

public abstract class KAON2AbstractConnection
extends java.lang.Object

Author:
denny // modified by Abir to meet SWAT needs Here is some common code to make the rest a bit less cluttered

Field Summary
protected  org.semanticweb.kaon2.api.KAON2Connection m_connection
           
 
Constructor Summary
KAON2AbstractConnection()
           
 
Method Summary
(package private)  org.semanticweb.kaon2.api.Ontology createOntology(java.lang.String name)
           
(package private)  void endConnection()
           
(package private)  org.semanticweb.kaon2.api.Ontology loadOntology(java.lang.String name)
           
(package private)  void makeConnection()
          Creates a new connection if there is none yet
(package private)  void showOntologyAxioms(org.semanticweb.kaon2.api.Ontology ont)
          Displays all the axioms of an ontology
(package private)  void showOntologyEntities(org.semanticweb.kaon2.api.Ontology ont)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_connection

protected org.semanticweb.kaon2.api.KAON2Connection m_connection
Constructor Detail

KAON2AbstractConnection

public KAON2AbstractConnection()
Method Detail

makeConnection

void makeConnection()
              throws org.semanticweb.kaon2.api.KAON2Exception
Creates a new connection if there is none yet

Throws:
org.semanticweb.kaon2.api.KAON2Exception

endConnection

void endConnection()
             throws org.semanticweb.kaon2.api.KAON2Exception
Throws:
org.semanticweb.kaon2.api.KAON2Exception

loadOntology

org.semanticweb.kaon2.api.Ontology loadOntology(java.lang.String name)
                                          throws org.semanticweb.kaon2.api.KAON2Exception,
                                                 java.lang.InterruptedException
Throws:
org.semanticweb.kaon2.api.KAON2Exception
java.lang.InterruptedException

createOntology

org.semanticweb.kaon2.api.Ontology createOntology(java.lang.String name)
                                            throws org.semanticweb.kaon2.api.KAON2Exception
Throws:
org.semanticweb.kaon2.api.KAON2Exception

showOntologyAxioms

void showOntologyAxioms(org.semanticweb.kaon2.api.Ontology ont)
                  throws org.semanticweb.kaon2.api.KAON2Exception
Displays all the axioms of an ontology

Throws:
org.semanticweb.kaon2.api.KAON2Exception

showOntologyEntities

void showOntologyEntities(org.semanticweb.kaon2.api.Ontology ont)
                    throws org.semanticweb.kaon2.api.KAON2Exception
Throws:
org.semanticweb.kaon2.api.KAON2Exception