org.opentox.toxotis.util.spiders
Class CompoundSpider

java.lang.Object
  extended by org.opentox.toxotis.util.spiders.Tarantula<Compound>
      extended by org.opentox.toxotis.util.spiders.CompoundSpider
All Implemented Interfaces:
Closeable

public class CompoundSpider
extends Tarantula<Compound>

Downloader and parser for a compound resource available in RDF.

Author:
Charalampos Chomenides, Pantelis Sopasakis

Field Summary
 
Fields inherited from class org.opentox.toxotis.util.spiders.Tarantula
model, parseTime, readRemoteTime, resource
 
Constructor Summary
CompoundSpider(com.hp.hpl.jena.ontology.OntModel model, String uri)
           
CompoundSpider(com.hp.hpl.jena.rdf.model.Resource resource, com.hp.hpl.jena.ontology.OntModel model)
           
CompoundSpider(String keyword, String lookUpService)
           
CompoundSpider(VRI uri)
           
 
Method Summary
 Compound parse()
          Parse the data model of an OpenTox entity and create an ToxOtis object according to the data content of the data model.
 void setDownloadDetails(boolean downloadDetails)
           
 
Methods inherited from class org.opentox.toxotis.util.spiders.Tarantula
assessHttpStatus, close, getOntModel, getOntologicalTypes, getOTATypes, getParseTime, getReadRemoteTime, retrievePropertyLiterals, retrievePropertyNodes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompoundSpider

public CompoundSpider(String keyword,
                      String lookUpService)
               throws ServiceInvocationException,
                      ToxOtisException
Throws:
ServiceInvocationException
ToxOtisException

CompoundSpider

public CompoundSpider(VRI uri)
               throws ServiceInvocationException,
                      ToxOtisException
Throws:
ServiceInvocationException
ToxOtisException

CompoundSpider

public CompoundSpider(com.hp.hpl.jena.rdf.model.Resource resource,
                      com.hp.hpl.jena.ontology.OntModel model)

CompoundSpider

public CompoundSpider(com.hp.hpl.jena.ontology.OntModel model,
                      String uri)
Method Detail

setDownloadDetails

public void setDownloadDetails(boolean downloadDetails)

parse

public Compound parse()
               throws ServiceInvocationException
Description copied from class: Tarantula
Parse the data model of an OpenTox entity and create an ToxOtis object according to the data content of the data model.

Specified by:
parse in class Tarantula<Compound>
Returns:
The parsed object.
Throws:
ServiceInvocationException


Copyright © 2011-2012 OpenTox. All Rights Reserved.