Skip to content

Commit

Permalink
bugfix2: the same entity in different spo rules has different alias
Browse files Browse the repository at this point in the history
  • Loading branch information
wangsff committed Sep 11, 2024
1 parent 58f9584 commit c6001df
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ class ThinkerRuleParser extends RuleExprParser {
val entity_str = concept_name.getText
if (spoRuleToSpoSetMap.contains(entity_str)) {
val (s, p, o) = spoRuleToSpoSetMap(entity_str)
if (!isDefaultAlias(conceptAlias) && !isDefaultAlias(conceptAlias)) {
if (StringUtils.isNotBlank(conceptAlias) &&
!isDefaultAlias(conceptAlias) && !isDefaultAlias(o.alias())) {
throw new IllegalArgumentException(
"The same entity %s has different alias".format(entity_str))
}
Expand Down

0 comments on commit c6001df

Please sign in to comment.