diff --git a/src/main/java/widoco/ExternalPropertyParser.java b/src/main/java/widoco/ExternalPropertyParser.java index 38380f6..6ab370c 100644 --- a/src/main/java/widoco/ExternalPropertyParser.java +++ b/src/main/java/widoco/ExternalPropertyParser.java @@ -292,7 +292,7 @@ private Optional getLabelAnnotation(OWLEntity entity, String lang continue; } label = getLabel(entity, langPrefix, importedOntology); - if (label != null) return label; + if (!label.isEmpty()) return label; } return Optional.empty(); }