|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.ac.man.cs.img.owl.validation.SpeciesValidator
This class provides functionality for identifying the particular species that an ontology belongs to. See the uk.ac.man.cs.img.owl.validation documentation for further information.
| Field Summary | |
protected static int |
OTHER
|
| Fields inherited from interface org.semanticweb.owl.validation.OWLValidationConstants |
BUILTINREDEFINITION, CARDINALITY, COMPLEMENT, COMPLETE, COMPLEXTRANSITIVE, DATARANGE, DATATYPE, DIFFERENTINDIVIDUAL, DISJOINT, DL, EQUIVALENCE, EQUIVALENTPROPERTY, EXPRESSIONINAXIOM, EXPRESSIONINRESTRICTION, FULL, FUNCTIONAL, INDIVIDUALDATA, INDIVIDUALS, INTERSECTION, INVERSE, INVERSEFUNCTIONAL, LITE, ONEOF, OWLNAMESPACEUSED, PARTIAL, RELATEDINDIVIDUALS, SAMEINDIVIDUAL, SEPARATIONVIOLATION, SUBCLASS, SUBPROPERTY, SYMMETRIC, TRANSITIVE, UNION, UNKNOWN, UNTYPEDINDIVIDUAL, ZEROONECARDINALITY |
| Constructor Summary | |
SpeciesValidator()
Create a new validator. |
|
| Method Summary | |
protected void |
explain(int l,
int code,
String str)
Provide an explanation as to why the validator considers the ontology to be in a particular species. |
Map |
getOptions()
Get options for this validator |
boolean |
isOWLDL(OWLOntology ontology)
Returns true if the ontology is OWL-DL. |
boolean |
isOWLDL(URI uri)
Returns true if the ontology obtained by parsing
the URI is in OWL DL. |
boolean |
isOWLFull(OWLOntology ontology)
Returns true if the ontology is OWL-Full. |
boolean |
isOWLFull(URI uri)
Returns true if the ontology obtained by parsing
the URI is in OWL Full. |
boolean |
isOWLLite(OWLOntology ontology)
Returns true if the ontology is OWL-Lite. |
boolean |
isOWLLite(URI uri)
Returns true if the ontology obtained by parsing
the URI is in OWL Lite. |
protected static String |
level(int l)
|
static void |
main(String[] args)
|
protected void |
message(String str)
Write a message. |
static String |
readableCode(int code)
|
void |
setConnection(OWLConnection connection)
Set the connection (e.g. the implementation that the validator will choose to use when constructing ontologies. |
void |
setOptions(Map options)
Set options for this validator |
void |
setReporter(SpeciesValidatorReporter reporter)
Set the reporter that this speciesValidator will use. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final int OTHER
| Constructor Detail |
public SpeciesValidator()
throws OWLException
| Method Detail |
public void setConnection(OWLConnection connection)
setConnection in interface SpeciesValidatorpublic void setReporter(SpeciesValidatorReporter reporter)
setReporter in interface SpeciesValidator
protected void explain(int l,
int code,
String str)
l - an int valuestr - a String valueprotected void message(String str)
str - a String valueprotected static String level(int l)
public void setOptions(Map options)
setOptions in interface SpeciesValidatoroptions - a Map value. Should contain a map from Strings to Strings.public Map getOptions()
getOptions in interface SpeciesValidatorMap value. Contains a map from Strings to Strings.public boolean isOWLLite(URI uri)
true if the ontology obtained by parsing
the URI is in OWL Lite. Will report findings to the reporter as
it goes. Note that the inner workings of the validator assume
that the ontology has not already been parsed.
isOWLLite in interface SpeciesValidatoruri - an URI value
boolean valuepublic boolean isOWLDL(URI uri)
true if the ontology obtained by parsing
the URI is in OWL DL. Will report findings to the reporter as
it goes. Note that the inner workings of the validator assume
that the ontology has not already been parsed.
isOWLDL in interface SpeciesValidatoruri - an URI value
boolean valuepublic boolean isOWLFull(URI uri)
true if the ontology obtained by parsing
the URI is in OWL Full. Will report findings to the reporter as
it goes. Note that the inner workings of the validator assume
that the ontology has not already been parsed.
isOWLFull in interface SpeciesValidatoruri - an URI value
boolean value
public boolean isOWLLite(OWLOntology ontology)
throws OWLException
true if the ontology is OWL-Lite. Will
report findings to the reporter as it goes.
isOWLLite in interface SpeciesValidatorontology - an OWLOntology value
boolean value
OWLException - if an error occurs
public boolean isOWLDL(OWLOntology ontology)
throws OWLException
true if the ontology is OWL-DL. Will
report findings to the reporter as it goes.
isOWLDL in interface SpeciesValidatorontology - an OWLOntology value
boolean value
OWLException - if an error occurs
public boolean isOWLFull(OWLOntology ontology)
throws OWLException
true if the ontology is OWL-Full. Will
report findings to the reporter as it goes.
isOWLFull in interface SpeciesValidatorontology - an OWLOntology value
boolean value
OWLException - if an error occurspublic static String readableCode(int code)
public static void main(String[] args)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||