Skip to content

Commit

Permalink
Update construct.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Jul 5, 2023
1 parent 65407db commit 2e45c92
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mira/dkg/construct.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,8 @@ def construct(
property_values="",
xref_types="", # TODO
synonym_types=";".join(
synonym.type.curie for synonym in term.synonyms or []
synonym.type.curie if synonym.type is not None else "skos:exactMatch"
for synonym in term.synonyms or []
),
)
for parent in term.parents:
Expand Down Expand Up @@ -979,7 +980,8 @@ def get_node_info(term: pyobo.Term, type: EntityType = "class"):
property_values="",
xref_types="",
synonym_types=";".join(
synonym.type.curie for synonym in term.synonyms or []
synonym.type.curie if synonym.type is not None else "skos:exactMatch"
for synonym in term.synonyms or []
),
)

Expand Down

0 comments on commit 2e45c92

Please sign in to comment.