Knowledge-Graph-Hub / kg-phenio

A graph for accessing and comparing knowledge concerning phenotypes across species and genetic backgrounds.
BSD 3-Clause "New" or "Revised" License
4 stars 4 forks source link

No node types beyond NamedThing #58

Closed caufieldjh closed 2 years ago

caufieldjh commented 2 years ago

We really would like to have Biolink node categories in KG-Phenio, but right now even the types KGX is capable of assigning categories to aren't getting them:

~/kg-phenio/data/merged$ grep MONDO: merged-kg_nodes.tsv | cut -f 2 | sort | uniq
biolink:NamedThing

So there should be some categories for nodes.

Barring KGX assignment, these can be mapped by prefix.

matentzn commented 2 years ago

FYI in the old monarch ontology, we merged the biolink model itself into phenio and ran a custom sparql query:

https://github.com/monarch-initiative/monarch-ontology/blob/master/Makefile#L88

Not sure this should be the strategy moving forward.

caufieldjh commented 2 years ago

I see some pros and cons to that approach - it would be consistent with the other preprocessing steps to include biolink categories in phenio, but this leaves it unclear which version of the model is being used. The potential to use a modified Monarch-specific version of the model has also come up more than once, so ideally we should have a process in which the desired model version is just specified and applied (and perhaps this is more efficiently done over the graph rather than the OWL).

We see similar issues with KG-OBO: https://github.com/Knowledge-Graph-Hub/kg-obo/issues/111

matentzn commented 2 years ago

Maybe the best way is to manually curate top level mappings in an sssom file (bl:phenotype exactMatch UPHENO:123) merge that into phenio and then propagate the bl categories using sparql update dynamically..

caufieldjh commented 2 years ago

So the current plan is to attack this on multiple fronts:

matentzn commented 2 years ago

This sounds perfect to my ears as well!

caufieldjh commented 2 years ago

Fixed in build 20220930