torchcell.paper.ontology_graph.OntologyGraph
- class OntologyGraph(*, classes: dict[str, ~torchcell.paper.ontology_graph.OntologyClass] = <factory>, composition_edges: list[~torchcell.paper.ontology_graph.CompositionEdge] = <factory>)[source]
Bases:
BaseModelThe whole schema as classes plus inheritance and composition edges.
- children_of(name: str) list[str][source]
Direct inheritance children, in stable alphabetical order.
- descendants_of(name: str) list[str][source]
Every class below
namein the inheritance tree, excluding itself.
- lane_roots(lane: str) list[str][source]
Classes in
lanewhose inheritance parent sits outside the lane.
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].