org.opentox.toxotis.ontology
Class WonderWebValidator

java.lang.Object
  extended by org.opentox.toxotis.ontology.WonderWebValidator

public class WonderWebValidator
extends Object

Validate an ontological model against the online OWL validator at http://www.mygrid.org.uk/OWL/Validator. A method returns either true or false depending on whether the submitted OntModel object is OWL-* compliant or not. Users can configure the validator to use a certain specification such as OWL-DL, OWL-Full or OWL-Lite.

Author:
Pantelis Sopasakis, Charalampos Chomenides

Nested Class Summary
static class WonderWebValidator.OWL_SPECIFICATION
          An enumeration of supported OWL specifications.
 
Field Summary
static VRI WONDERWEB_VLD
          The URI that identifies the online OWL-DL validation service.
 
Constructor Summary
WonderWebValidator()
          Dummy constructor for an WonderWebValidator object.
WonderWebValidator(IStAXWritable stax)
           
WonderWebValidator(com.hp.hpl.jena.ontology.OntModel model)
          Construct a WonderWebValidator object providing an OntModel which is to be checked for compliance against some OWL specification.
 
Method Summary
 void setValidatable(IStAXWritable stax)
           
 void setValidatable(com.hp.hpl.jena.ontology.OntModel model)
           
 boolean validate(WonderWebValidator.OWL_SPECIFICATION specification)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WONDERWEB_VLD

public static final VRI WONDERWEB_VLD
The URI that identifies the online OWL-DL validation service.

Constructor Detail

WonderWebValidator

public WonderWebValidator()
Dummy constructor for an WonderWebValidator object.


WonderWebValidator

public WonderWebValidator(com.hp.hpl.jena.ontology.OntModel model)
Construct a WonderWebValidator object providing an OntModel which is to be checked for compliance against some OWL specification.

Parameters:
model - Ontological Data Model.

WonderWebValidator

public WonderWebValidator(IStAXWritable stax)
Method Detail

setValidatable

public void setValidatable(com.hp.hpl.jena.ontology.OntModel model)

setValidatable

public void setValidatable(IStAXWritable stax)

validate

public boolean validate(WonderWebValidator.OWL_SPECIFICATION specification)
                 throws ServiceInvocationException
Throws:
ServiceInvocationException


Copyright © 2011-2012 OpenTox. All Rights Reserved.