Skip to content

Commit

Permalink
Add properties to probonto nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
nanglo123 committed Jul 12, 2024
1 parent 1efca3b commit 4e07e2b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions mira/dkg/construct.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,11 @@ def get_probonto_data():
term["name"],
term["parameters"],
)
properties = {
"has_parameter": [parameter["name"].replace("\n", " ") for parameter
in
parameters]
}
nodes.append(
{
"id": curie,
Expand All @@ -220,10 +225,11 @@ def get_probonto_data():
"description": "",
"obsolete": False,
"xrefs": [Xref(id=eq.get("curie", ""), type=eq.get("name", ""))
for eq in term.get("equivalent", [])]
for eq in term.get("equivalent", [])],
"properties": properties

}
)

for parameter in term.get("parameters", []):
parameter_curie, parameter_name = (
parameter["curie"],
Expand Down

0 comments on commit 4e07e2b

Please sign in to comment.