Skip to content

Conversation

@apdavison
Copy link
Member

No description provided.

if name in key:
matches.extend(instances)
else:
raise ValueError("'match' must be either 'exact' or 'contains'")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
raise ValueError("'match' must be either 'exact' or 'contains'")
raise ValueError("'match' must be either 'equals' or 'contains'")

match (str, optional): either "equals" (exact match - default) or "contains".
all (bool, optional): Whether to return all objects that match the name, or only the first. Defaults to False.
"""
namelike_properties = ("name", "lookup_label", "family_name", "full_name", "short_name", "abbreviation", "synonyms")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
namelike_properties = ("name", "lookup_label", "family_name", "full_name", "short_name", "abbreviation", "synonyms")
namelike_properties = ("name", "lookup_label", "family_name", "full_name", "short_name", "abbreviation")

The logic for synonyms is handled differently.

@Raphael-Gazzotti Raphael-Gazzotti merged commit 8ebae02 into openMetadataInitiative:pipeline Nov 18, 2025
3 checks passed
@apdavison apdavison deleted the improved-by-name branch November 18, 2025 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants