com.bbn.swede.tools.translator
Class JenaTranslator

java.lang.Object
  extended bycom.bbn.swede.tools.translator.AbstractTranslator
      extended bycom.bbn.swede.tools.translator.JenaTranslator
All Implemented Interfaces:
ITranslator

public class JenaTranslator
extends AbstractTranslator
implements ITranslator

Initial example implementation of a SWeDE translator.

This translator uses the Jena libraries to support translations in both directions among RDF/XML, N3 and N-Triples.

Author:
aperezlo

Constructor Summary
JenaTranslator()
          Default constructor.
 
Method Summary
 String doTranslation(File inputFile, OutputStream outputStream, String inputFormatExtension, String outputFormatExtension)
          This method is specified by the ITranslator interface, and it is the method that actually does the translation.
 
Methods inherited from class com.bbn.swede.tools.translator.AbstractTranslator
doTranslation, getFileFor, getIFileFor, getOWLDocumentFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JenaTranslator

public JenaTranslator()
Default constructor.

Method Detail

doTranslation

public String doTranslation(File inputFile,
                            OutputStream outputStream,
                            String inputFormatExtension,
                            String outputFormatExtension)
                     throws Exception
This method is specified by the ITranslator interface, and it is the method that actually does the translation. There is a lot more explanation in the interface itself, so please refer there for mor information.

Specified by:
doTranslation in interface ITranslator
Overrides:
doTranslation in class AbstractTranslator
Throws:
Exception
See Also:
ITranslator.doTranslation( java.io.File, java.io.OutputStream, java.lang.String, java.lang.String)


Copyright © 2004-2005 BBN Technologies. All Rights Reserved.