org.opentox.formatters
Class AlgorithmRdfFormatter

java.lang.Object
  extended by org.opentox.error.ErrorSource
      extended by org.opentox.formatters.AbstractAlgorithmFormatter
          extended by org.opentox.formatters.AlgorithmRdfFormatter
All Implemented Interfaces:
IFormatter, IProne2Error

public class AlgorithmRdfFormatter
extends AbstractAlgorithmFormatter

Build an RDF representation for an Algorithm. Validated at http://www.rdfabout.com/demo/validator/ !

Author:
OpenTox - http://www.opentox.org, Sopasakis Pantelis, Kolotouros Dimitris, Sarimveis Harry

Field Summary
private static long serialVersionUID
           
 
Fields inherited from class org.opentox.formatters.AbstractAlgorithmFormatter
metainf
 
Fields inherited from class org.opentox.error.ErrorSource
errorRep
 
Constructor Summary
AlgorithmRdfFormatter(AlgorithmMeta metainf)
          Class Constructor.
 
Method Summary
 org.restlet.representation.Representation getRepresentation(org.restlet.data.MediaType mediatype)
          Returns the Corresponding Representation.
 
Methods inherited from class org.opentox.error.ErrorSource
getErrorRep
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

AlgorithmRdfFormatter

public AlgorithmRdfFormatter(AlgorithmMeta metainf)
Class Constructor.

Parameters:
metainf - Algorithm Meta-information one has to provide to construct an AlgorithmRdfFormater object.
Method Detail

getRepresentation

public org.restlet.representation.Representation getRepresentation(org.restlet.data.MediaType mediatype)
Description copied from class: AbstractAlgorithmFormatter
Returns the Corresponding Representation.

Specified by:
getRepresentation in interface IFormatter
Specified by:
getRepresentation in class AbstractAlgorithmFormatter
Returns:
representation in proper media type.