org.semwebcentral.sweetrules.infrastructure
Interface ISweetKBMergeManager

All Known Implementing Classes:
SweetKBMergeManager

public interface ISweetKBMergeManager

This class handles merging of multiple knowledges by expanding the INCLUDE directives

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

Method Summary
 java.lang.String mergeKBs(ISweetKBMergeDescriptor mergeDescriptor, ISweetInvocationDescriptor invocationDesc, ISweetInvocationPreferences preferenceDesc)
          This API merges multiple heterogenous KBs by using appropriate translators.
 

Method Detail

mergeKBs

public java.lang.String mergeKBs(ISweetKBMergeDescriptor mergeDescriptor,
                                 ISweetInvocationDescriptor invocationDesc,
                                 ISweetInvocationPreferences preferenceDesc)
                          throws SweetException
This API merges multiple heterogenous KBs by using appropriate translators. It also processes knowledge base INCLUDE directives.

Parameters:
mergeDescriptor - The merge descriptor on which the merge should be performed Note: The sources specified in the mergeDescriptor must be unique after merging and should not cause conflicts
invocationDesc - Options to be set on specific tools (for e.g. use courteous compiler while using translator provided by SWEET)
preferenceDesc - These dictate which tool is to be preferred if there are multiple tools (e.g. use IBM CommonRules XSB translator as opposed some other XSB translator)
Throws:
SweetException - if translation cannot be performed