org.semwebcentral.sweetrules.sweetonto
Class SweetOWL2RuleMLTranslator

java.lang.Object
  extended byorg.semwebcentral.sweetrules.infrastructure.AbstractSweetTranslator
      extended byorg.semwebcentral.sweetrules.sweetonto.SweetOWL2DLPCompilerTranslator
          extended byorg.semwebcentral.sweetrules.sweetonto.SweetOWL2RuleMLTranslator
All Implemented Interfaces:
java.lang.Cloneable, ISweetTranslator

public class SweetOWL2RuleMLTranslator
extends SweetOWL2DLPCompilerTranslator


Class representing the BRML to RuleML translation

Modified on: Aug 25, 2004, 2:10:12 PM

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

Field Summary
private static java.lang.String ruleMLSerializer
          The serializer method to be used when the target is RuleML
 
Fields inherited from class org.semwebcentral.sweetrules.sweetonto.SweetOWL2DLPCompilerTranslator
 
Fields inherited from class org.semwebcentral.sweetrules.infrastructure.AbstractSweetTranslator
logger, sourceKBDescriptor, targetKBDescriptor, translatorDescriptor
 
Constructor Summary
SweetOWL2RuleMLTranslator()
          Constructor for the OWL to RuleML translator
 
Method Summary
 java.lang.String translate()
          Perfroms translation from the specified source format to the target format This is a modification of Rapheal's code
 
Methods inherited from class org.semwebcentral.sweetrules.sweetonto.SweetOWL2DLPCompilerTranslator
translateUtil
 
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
 

Field Detail

ruleMLSerializer

private static final java.lang.String ruleMLSerializer
The serializer method to be used when the target is RuleML

See Also:
Constant Field Values
Constructor Detail

SweetOWL2RuleMLTranslator

public SweetOWL2RuleMLTranslator()
Constructor for the OWL to RuleML translator

Method Detail

translate

public java.lang.String translate()
                           throws SweetTranslatorException
Perfroms translation from the specified source format to the target format This is a modification of Rapheal's code

Returns:
The translated string in the target format
Throws:
TranslatorException - If translation cannot be performed then an exception is thrown
SweetTranslatorException