org.semwebcentral.sweetrules.infrastructure
Interface ISweetKBDescriptor

All Superinterfaces:
java.lang.Cloneable
All Known Implementing Classes:
AbstractSweetKBDescriptor

public interface ISweetKBDescriptor
extends java.lang.Cloneable

The fields of this class describe a knowledge base

Author:
Shashidhara K Ganjugunte, Dr. Benjamin Grosof, Dr. Said Tabet, Chitravanu Neogy

Method Summary
 java.lang.Object clone()
          The clone method to clone this object
 ISweetKRDescriptor getKRDescriptor()
          Returns the KR descriptor corresponding to the KB described
 java.lang.String readData()
          Reads the data from the KB and returns it
 void setKRDescriptor(ISweetKRDescriptor krDescriptor)
          Sets KR descriptor corresponding to the KB being described
 void writeData(java.lang.String data)
          Writes the data to the specified KB
 

Method Detail

readData

public java.lang.String readData()
                          throws SweetException
Reads the data from the KB and returns it

Returns:
The data from the KB
Throws:
SweetException - if read fails

writeData

public void writeData(java.lang.String data)
               throws SweetException
Writes the data to the specified KB

Parameters:
data - The data to be written
Throws:
SweetException - if an error occurs

getKRDescriptor

public ISweetKRDescriptor getKRDescriptor()
Returns the KR descriptor corresponding to the KB described

Returns:
The KR descriptor

setKRDescriptor

public void setKRDescriptor(ISweetKRDescriptor krDescriptor)
Sets KR descriptor corresponding to the KB being described

Parameters:
krDescriptor - The KR descriptor of this KB

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
The clone method to clone this object

Returns:
The cloned object
Throws:
java.lang.CloneNotSupportedException - if an error occurs