Class LowercaseDefinitionError

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

public class LowercaseDefinitionError extends LiteralAnnotationError
Represents the lowercase_definition error.

This error is fixed simply by upper-casing the first character of the original value. However we avoid doing that by default if the initial lowercase character is followed by an uppercase character, as this could indicate the initial character is purposefully lowercase.

  • Constructor Details

    • LowercaseDefinitionError

      public LowercaseDefinitionError(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.