kgx icon indicating copy to clipboard operation
kgx copied to clipboard

Add Plant Trait Ontology to obograph_source.py

Open diatomsRcool opened this issue 4 years ago • 2 comments

Is your feature request related to a problem? Please describe. When I transform the Plant Ontology and the Plant Trait Ontology from json to tsv, everything is labeled as biolink:NamedThing.

Describe the solution you'd like I would like for kgx to correctly transform the entities in the Plant Ontology as either biolink:AnatomicalEntity or biolink:LifeStage and entities in the Plant Trait Ontology as biolink:PhenotypicFeature. This could include hard coding that all entities in TO are biolink:PhenotypicFeature, same as with HPO. PO will be trickier because it contains anatomical entities and growth stages.

Describe alternatives you've considered For the moment, I can adjust the ontology files to make this work, but it would be better if these ontologies were appropriately included. If I can change the OBONameSpace used in the ontology files, I am willing to do that, but I don't know what the acceptable values are.

Additional context See https://github.com/diatomsRcool/eco-kg/issues/10

diatomsRcool avatar Jun 24 '21 18:06 diatomsRcool

@diatomsRcool Thanks for raising this issue. I have had this on my todo for a while now :)

I'll take a look and report back how to do this more efficiently and systematically.

deepakunni3 avatar Jul 25 '21 07:07 deepakunni3

As @caufieldjh mentions above, we are running into this in kg-obo too, it's not a show-stopper though - lots or possibly all transformed OBO ontologies have nodes that are all of type biolink:NamedThing.

I'm curious what strategy we could use to get more specific node types

justaddcoffee avatar Oct 20 '21 17:10 justaddcoffee