monarch-initiative / ontogpt

LLM-based ontological extraction tools, including SPIRES
https://monarch-initiative.github.io/ontogpt/
BSD 3-Clause "New" or "Revised" License
589 stars 74 forks source link

Fixes for #355 - more parsing for KGX output #360

Closed caufieldjh closed 6 months ago

caufieldjh commented 6 months ago

The remaining bit here is to translate the output slot to its corresponding class name: e.g., the gocam schema has a class called GoCamAnnotations with a slot named gene_organisms, and relations between genes and organisms populate that slot. We'd prefer to refer to them by their class name, GeneOrganismRelationship, since they are objects of that class.

Schemaview will do this with get_slot I think - then just get the domain from the slot definition.