org.opentox.toxotis.util.spiders
Class DataEntrySpider

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

public class DataEntrySpider
extends Tarantula<DataEntry>

Parser for a DataEntry individual in an RDF graph.

Author:
Charalampos Chomenides, Pantelis Sopasakis

Field Summary
 
Fields inherited from class org.opentox.toxotis.util.spiders.Tarantula
model, parseTime, readRemoteTime, resource
 
Constructor Summary
DataEntrySpider()
          Dummy empty constructor.
DataEntrySpider(com.hp.hpl.jena.rdf.model.Resource resource, com.hp.hpl.jena.ontology.OntModel model)
          DataEntrySpider constructor with an ontological resource and an ontological model.
 
Method Summary
 DataEntry 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

DataEntrySpider

public DataEntrySpider()
Dummy empty constructor.


DataEntrySpider

public DataEntrySpider(com.hp.hpl.jena.rdf.model.Resource resource,
                       com.hp.hpl.jena.ontology.OntModel model)
DataEntrySpider constructor with an ontological resource and an ontological model.

Parameters:
resource - Ontological resource to be parsed.
model - Ontological model to be used for parsing.
Method Detail

parse

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


Copyright © 2011-2012 OpenTox. All Rights Reserved.