diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/validation/Validator.java b/src/main/java/cz/cvut/kbss/termit/persistence/validation/Validator.java index 2b0b8a767..63b0689cc 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/validation/Validator.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/validation/Validator.java @@ -20,6 +20,7 @@ import com.github.sgov.server.ValidationResultSeverityComparator; import cz.cvut.kbss.jopa.model.EntityManager; import cz.cvut.kbss.jopa.model.MultilingualString; +import cz.cvut.kbss.jsonld.JsonLd; import cz.cvut.kbss.termit.exception.TermItException; import cz.cvut.kbss.termit.model.validation.ValidationResult; import cz.cvut.kbss.termit.persistence.context.VocabularyContextMapper; @@ -154,7 +155,7 @@ public List validate(final Collection vocabularyIris) { .map(RDFNode::asLiteral) .collect(Collectors.toMap( lit -> lit.getLanguage().isBlank() ? - Constants.DEFAULT_LANGUAGE : lit.getLanguage(), + JsonLd.NONE : lit.getLanguage(), Literal::getLexicalForm))); return new ValidationResult()