Let's include these four fields for Taxonomy ontology:
- "parents" (list): Immediate parent node IDs in the ontology hierarchy.
- "children" (list): Immediate child node IDs in the ontology hierarchy.
- "ancestors" (list): All ancestor node IDs (transitive closure).
- "descendants" (list): All descendant node IDs (transitive closure).
Currently we have a lineage field, which is basically the ancestors field, and a children field. Both fields are calculated on the fly. We can evaluate if we should precompute all four fields as we did for other ontologies (see this example parser from biothings/pending.api repo)
Let's include these four fields for Taxonomy ontology:
Currently we have a
lineage
field, which is basically theancestors
field, and achildren
field. Both fields are calculated on the fly. We can evaluate if we should precompute all four fields as we did for other ontologies (see this example parser from biothings/pending.api repo)