torchcell.knowledge_graphs.incremental_import.incremental_node_header

incremental_node_header(columns: list[str], label: str) → list[str][source]

Rewrite a BioCypher node header for incremental import.

:ID becomes id:ID{label:Entity} (the id is stored as property id and matched through the global Entity.id uniqueness constraint; label names the file only for error messages), and the separate id column becomes id:IGNORE so the property is not declared twice.