org.semwebcentral.sweetrules.infrastructure
Interface ISweetKBRepository


public interface ISweetKBRepository

An abstraction of a Knowledge base repository It maintains the list of known knowledge bases

TODO: 1) remove KB 2) Handle KB preferences for inference engines, translation? 3) Improve find to search based on other criteria like krtype etc

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

Method Summary
 void addKB(ISweetKBDescriptor kbDescriptor)
          Add the descriptor to the repository
 ISweetKBDescriptor findKB(java.lang.String kbName)
          Searches through the repository and returns the descriptor corresponding to the name specified
 ISweetKBDescriptor[] listKBs()
          Returns a list of available KBs
 

Method Detail

addKB

public void addKB(ISweetKBDescriptor kbDescriptor)
Add the descriptor to the repository

Parameters:
kbDescriptor - The descriptor to be stored/registered

findKB

public ISweetKBDescriptor findKB(java.lang.String kbName)
Searches through the repository and returns the descriptor corresponding to the name specified

Parameters:
kbName - The name of the KB whose descriptor is to be found
Returns:
The KB descriptor corresponding to the KB name

listKBs

public ISweetKBDescriptor[] listKBs()
Returns a list of available KBs

Returns:
The supported knowledge descriptors