owltools.ontologyverification
Class OntologyCheckRunner
java.lang.Object
owltools.ontologyverification.OntologyCheckRunner
public class OntologyCheckRunner
- extends Object
Identify and run ontology checks for an ontology (OWLGraphWrapper
).
The identification uses reflection and annotations to identify suitable
ontology check methods from a list of classes.
The relevant annotations are Check
, AfterLoading
, AfterMireot
,
and AfterReasoning
.
The Check
annotation identify a methods as an ontology check.
The rest indicate the stage for each check. If no stage is specified,
default to AfterLoading
. You can add multiple stages to each method.
Requirements for check classes and methods:
- Each check class needs an unparameterized constructor
- Check methods are public
- Check methods have one parameter:
OWLGraphWrapper
- Check methods return a
CheckResult
or null
- Check methods need to be thread safe, state-less
- Check methods should not modify the ontology
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Copyright © 2010-2011. All Rights Reserved.