Class MissingObsoleteLabelError

java.lang.Object
org.incenp.obofoundry.odk.fixreport.LiteralAnnotationError
org.incenp.obofoundry.odk.fixreport.MissingObsoleteLabelError
All Implemented Interfaces:
IFixableError

public class MissingObsoleteLabelError extends LiteralAnnotationError
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.

  • Constructor Details

    • MissingObsoleteLabelError

      public MissingObsoleteLabelError(org.semanticweb.owlapi.model.IRI subject, String value)
  • 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: LiteralAnnotationError
      Fixes the annotation value.
      Specified by:
      fixValue in class LiteralAnnotationError
      Parameters:
      oldValue - The literal representing the invalid annotation value.
      factory - A factory that can be used to create the correct value.
      dubious - If true, 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 null if correction could not be performed for any reason.