Skip to content

Commit

Permalink
VSKit Permissible Value Label Fix (#689)
Browse files Browse the repository at this point in the history
if no label use curie
  • Loading branch information
plbremer authored Dec 19, 2023
1 parent 09bf298 commit 65f95f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/oaklib/utilities/subsets/value_set_expander.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,11 @@ def _generate_permissible_value(
if str(pv_formula) == "CURIE":
text = curie
elif str(pv_formula) == "LABEL":
text = label
# not all ontologies will have text for every element
if label is not None:
text = label
else:
text = curie
elif str(pv_formula) == "URI":
text = curie
elif str(pv_formula) == "CODE":
Expand Down

0 comments on commit 65f95f1

Please sign in to comment.