Skip to content

Commit

Permalink
Include title and definition in vskit expand (#677)
Browse files Browse the repository at this point in the history
add: title and definition
  • Loading branch information
Nolan Nichols authored Nov 23, 2023
1 parent c069273 commit 433bc7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/oaklib/utilities/subsets/value_set_expander.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ def _generate_permissible_value(
oi: BasicOntologyInterface,
enum_definition: EnumDefinition = None,
) -> PermissibleValue:
definition = oi.definition(curie)
label = oi.label(curie)
pv_formula = enum_definition.pv_formula if enum_definition else None
if str(pv_formula) == "CURIE":
Expand All @@ -194,7 +195,7 @@ def _generate_permissible_value(
text = curie.split(":")[1]
else:
text = curie
return PermissibleValue(text=text, meaning=curie, description=label)
return PermissibleValue(text=text, meaning=curie, description=definition, title=label)

def expand_in_place(
self,
Expand Down

0 comments on commit 433bc7b

Please sign in to comment.