org.opentox.toxotis.util.spiders
Class ErrorReportSpider

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

public class ErrorReportSpider
extends Tarantula<ErrorReport>

Parser for an ErrorReport RDF representation.

Author:
Charalampos Chomenides, Pantelis Sopasakis

Field Summary
 
Fields inherited from class org.opentox.toxotis.util.spiders.Tarantula
model, parseTime, readRemoteTime, resource
 
Constructor Summary
ErrorReportSpider()
          Create an empty error report.
ErrorReportSpider(com.hp.hpl.jena.ontology.OntModel model)
          Create an ErrorReportSpider over a given ontological model.
ErrorReportSpider(com.hp.hpl.jena.rdf.model.Resource resource, com.hp.hpl.jena.ontology.OntModel model)
          Create an ErrorReportSpider entity using a given ontological resource and ontological model.
 
Method Summary
 ErrorReport 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

ErrorReportSpider

public ErrorReportSpider()
Create an empty error report.


ErrorReportSpider

public ErrorReportSpider(com.hp.hpl.jena.rdf.model.Resource resource,
                         com.hp.hpl.jena.ontology.OntModel model)
Create an ErrorReportSpider entity using a given ontological resource and ontological model.

Parameters:
resource - The error report resource - the basis element.
model - The ontological model to contain the resource.

ErrorReportSpider

public ErrorReportSpider(com.hp.hpl.jena.ontology.OntModel model)
Create an ErrorReportSpider over a given ontological model.

Parameters:
model - An instance of OntModel.
Method Detail

parse

public ErrorReport parse()
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<ErrorReport>
Returns:
The parsed object.


Copyright © 2011-2012 OpenTox. All Rights Reserved.