Class OntologyValidator


  • public class OntologyValidator
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean stringExceedsMaxLuceneUtf8StorageSize​(java.lang.String textValue, int maxUtf8Length)
      ES stores data in lucene indexes that have 32Kb max limit per token.
      com.fasterxml.jackson.databind.node.ObjectNode verifyAndReplaceFields​(com.fasterxml.jackson.databind.JsonNode jsonNode)
      Verify and replace fields.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OntologyValidator

        public OntologyValidator​(OntologyLoader ontologyLoader)
    • Method Detail

      • verifyAndReplaceFields

        public com.fasterxml.jackson.databind.node.ObjectNode verifyAndReplaceFields​(com.fasterxml.jackson.databind.JsonNode jsonNode)
                                                                              throws MetadataValidationException
        Verify and replace fields.
        Parameters:
        jsonNode - to modify
        Returns:
        error list
        Throws:
        MetadataValidationException
      • stringExceedsMaxLuceneUtf8StorageSize

        public static boolean stringExceedsMaxLuceneUtf8StorageSize​(java.lang.String textValue,
                                                                    int maxUtf8Length)
        ES stores data in lucene indexes that have 32Kb max limit per token.