org.semwebcentral.sweetrules.sweetjess
Class SweetJess2RuleMLTranslator

java.lang.Object
  extended byorg.semwebcentral.sweetrules.infrastructure.AbstractSweetTranslator
      extended byorg.semwebcentral.sweetrules.sweetjess.SweetJess2RuleMLTranslator
All Implemented Interfaces:
java.lang.Cloneable, ISweetTranslator

public class SweetJess2RuleMLTranslator
extends AbstractSweetTranslator

Created on Nov 5, 2004

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

Field Summary
 
Fields inherited from class org.semwebcentral.sweetrules.infrastructure.AbstractSweetTranslator
logger, sourceKBDescriptor, targetKBDescriptor, translatorDescriptor
 
Constructor Summary
SweetJess2RuleMLTranslator()
           
 
Method Summary
 java.lang.String translate()
          Perfroms translation from the specified source format to the target format
private  java.lang.String useObjectModelBasedConversion()
          Translates by loading the Rete engine with the source data
private  java.lang.String useOLDCode()
          Uses the old code by Mahesh Gandhe, based on text parsing
 
Methods inherited from class org.semwebcentral.sweetrules.infrastructure.AbstractSweetTranslator
clone, getSourceData, getTranslatorDescriptor, loadAllNamespacesAndEntities, print, setSourceData, setSourceKBDescriptor, setTargetKBDescriptor, setTranslatorDescriptor, trace, writeToTargetKB
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SweetJess2RuleMLTranslator

public SweetJess2RuleMLTranslator()
Method Detail

translate

public java.lang.String translate()
                           throws SweetTranslatorException
Description copied from interface: ISweetTranslator
Perfroms translation from the specified source format to the target format

Returns:
The translated string in the target format
Throws:
SweetTranslatorException

useObjectModelBasedConversion

private java.lang.String useObjectModelBasedConversion()
                                                throws SweetTranslatorException
Translates by loading the Rete engine with the source data

Returns:
The translated data
Throws:
SweetTranslatorException - if an error occurs

useOLDCode

private java.lang.String useOLDCode()
                             throws SweetTranslatorException
Uses the old code by Mahesh Gandhe, based on text parsing

Returns:
The translated data
Throws:
SweetTranslatorException - if an error occurs