Skip to content

Commit

Permalink
[Fix] Return validation message with '@none' language when it has none.
Browse files Browse the repository at this point in the history
  • Loading branch information
ledsoft committed Aug 5, 2024
1 parent 548fd6e commit 7be1d2b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -154,7 +155,7 @@ public List<ValidationResult> validate(final Collection<URI> 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()
Expand Down

0 comments on commit 7be1d2b

Please sign in to comment.