torchcell.knowledge_graphs.head_ontology.HeadOntologyMirror

class HeadOntologyMirror(*, ontology: str, root_node: str, retrieval_command: str, file: ArtifactRecord)[source]

Bases: BaseModel

Provenance of one mirrored head-ontology file, written beside it as JSON.

file is the shared per-file ArtifactRecord (the record the literature and raw-data mirrors use); its retrieval names the versioned retriever (torchcell.literature.retrieve.direct_url) that check_source re-runs. retrieval_command is the exact shell command that produced the stored bytes.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].