Class MissingObsoleteLabelError
java.lang.Object
org.incenp.obofoundry.odk.fixreport.LiteralAnnotationError
org.incenp.obofoundry.odk.fixreport.MissingObsoleteLabelError
- All Implemented Interfaces:
IFixableError
Represents the
missing_obsolete_label error.
This error is fixed simply by appending "obsolete " in front of
the original value, but only if the original value either has no language
tag, or has an English language tag.
-
Field Summary
Fields inherited from class org.incenp.obofoundry.odk.fixreport.LiteralAnnotationError
property, subject, value -
Constructor Summary
ConstructorsConstructorDescriptionMissingObsoleteLabelError(org.semanticweb.owlapi.model.IRI subject, String value) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.semanticweb.owlapi.model.OWLLiteralfixValue(org.semanticweb.owlapi.model.OWLLiteral oldValue, org.semanticweb.owlapi.model.OWLDataFactory factory, boolean dubious) Fixes the annotation value.Methods inherited from class org.incenp.obofoundry.odk.fixreport.LiteralAnnotationError
fixError
-
Constructor Details
-
MissingObsoleteLabelError
-
-
Method Details
-
fixValue
protected org.semanticweb.owlapi.model.OWLLiteral fixValue(org.semanticweb.owlapi.model.OWLLiteral oldValue, org.semanticweb.owlapi.model.OWLDataFactory factory, boolean dubious) Description copied from class:LiteralAnnotationErrorFixes the annotation value.- Specified by:
fixValuein classLiteralAnnotationError- Parameters:
oldValue- The literal representing the invalid annotation value.factory- A factory that can be used to create the correct value.dubious- Iftrue, fix the error even if we are not certain it is actually an error.- Returns:
- The correct value to use to replace the original one, or
nullif correction could not be performed for any reason.
-