org.opentox.ontology.rdf
Class Feature

java.lang.Object
  extended by org.opentox.error.ErrorSource
      extended by org.opentox.ontology.rdf.RDFHandler
          extended by org.opentox.ontology.rdf.Feature
All Implemented Interfaces:
java.io.Serializable, IFeature, IProne2Error

public class Feature
extends RDFHandler
implements java.io.Serializable, IFeature

Version:
1.3.3 (Last update: Dec 23, 2009)
Author:
OpenTox - http://www.opentox.org/, Sopasakis Pantelis, Sarimveis Harry
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.opentox.ontology.rdf.RDFHandler
jenaModel
 
Fields inherited from class org.opentox.error.ErrorSource
errorRep
 
Constructor Summary
Feature()
           
 
Method Summary
 void createNewFeature(java.lang.String sameAs, java.io.OutputStream output)
          Creates a new Feature and writes it to an OutputStream.
 org.restlet.data.Response createNewFeature(java.lang.String sameAs, java.net.URI featureService)
          Generates a new Feature and POSTs it to a feature service
 
Methods inherited from class org.opentox.ontology.rdf.RDFHandler
getClassMemberIteratorFor, getJenaModel
 
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
 
Methods inherited from interface org.opentox.interfaces.IProne2Error
getErrorRep
 

Constructor Detail

Feature

public Feature()
Method Detail

createNewFeature

public void createNewFeature(java.lang.String sameAs,
                             java.io.OutputStream output)
Creates a new Feature and writes it to an OutputStream.

Specified by:
createNewFeature in interface IFeature
Parameters:
sameAs - Declares a same-as relationship between this feature and some other feature.
output - Outputstream used to write the output.

createNewFeature

public org.restlet.data.Response createNewFeature(java.lang.String sameAs,
                                                  java.net.URI featureService)
                                           throws org.restlet.resource.ResourceException,
                                                  java.io.IOException
Generates a new Feature and POSTs it to a feature service

Specified by:
createNewFeature in interface IFeature
Parameters:
sameAs - Declares a same-as relationship between this feature and some other feature.
featureService - Some feature service where the generated feature should be stored.
Returns:
The response of the feature service to the request for feature creation.
Throws:
org.restlet.resource.ResourceException
java.io.IOException