org.opentox.toxotis.util.spiders
Class ModelSpider

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

public class ModelSpider
extends Tarantula<Model>

Downloader and Parser for RDF representation of OpenTox Model resources.

Author:
Charalampos Chomenides, Pantelis Sopasakis

Field Summary
 
Fields inherited from class org.opentox.toxotis.util.spiders.Tarantula
model, parseTime, readRemoteTime, resource
 
Constructor Summary
ModelSpider(com.hp.hpl.jena.ontology.OntModel model, String uri)
           
ModelSpider(com.hp.hpl.jena.rdf.model.Resource resource, com.hp.hpl.jena.ontology.OntModel model)
           
ModelSpider(VRI uri)
           
ModelSpider(VRI uri, AuthenticationToken token)
           
 
Method Summary
 Model parse()
          Parse the data model of an OpenTox entity and create an ToxOtis object according to the data content of the data model.
 
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

ModelSpider

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

ModelSpider

public ModelSpider(VRI uri,
                   AuthenticationToken token)
            throws ServiceInvocationException
Throws:
ServiceInvocationException

ModelSpider

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

ModelSpider

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

parse

public Model 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<Model>
Returns:
The parsed object.
Throws:
ServiceInvocationException


Copyright © 2011-2012 OpenTox. All Rights Reserved.