WorksComputer Science
Tablassert: Declarative Extraction of Knowledge Graphs from Biomedical Tables
Abstract
Tables published in biomedical research papers, particularly supplemental tables, capture knowledge assertions that may not be in the main text of the manuscript for several reasons, including low statistical significance, space limitations, and narrative scope. These tables include data (e.g., association statistics, assay readouts, curated gene lists, and omics) encoding relationships between biological entities. Tablassert converts such tabular data (Excel, CSV, TSV, Parquet) into knowledge graphs ready for the NCATS Biomedical Data Translator (Fecho et al. 2025). A user declares in YAML how each table's data map to subject-predicate-object-qualifier statements; Tablassert resolves free text (e.g., ''lung cancer'') to standard identifiers, attaches provenance and statistics, and emits graph files conforming to Translator standards (D. Unni, Bruskiewich, and Moxon 2026; D. R. Unni et al. 2022).
Statement of Need {#sec:Statement of Need}
Biomedical knowledge graphs classically rely on bespoke ingest scripts for each source. When data sources lack standardization, such as the millions of tables published in biomedical literature, bespoke scripts impose three costs that limit scalability. First, mapping each table’s rows, columns, and cells to biological assertions is idiosyncratic, making them hard to inspect, review, or reuse. Second, entity resolution may depend on hosted network services, making graph builds unreproducible. Third, and most importantly, because each source requires a new pipeline, most published tables are never ingested and remain neither interoperable nor reusable.
Tablassert supports knowledge-graph engineers and bioinformaticians working with tabular biomedical sources who need standards-conformant output. Declarative YAML recipes make data-to-statement mapping scalable, inspectable, and reusable. Batched resolution against an embedded identifier database removes runtime service dependencies. These recipes extend beyond journal supplemental tables to any relational source (trial registries, drug approval records, or a researcher’s own tables). Each build can emit a standardized resource descriptor, like the Resource Ingest Guide metadata required for integration with Translator.
State of the Field
Several tools address aspects of biomedical knowledge graph compilation. KGX [26] exchanges and validates graphs, including schema-driven Biolink conformance checks, but provides no column-to-statement mapping, study-level structural invariants, offline Translator infores checks, or in-place pruning. LinkML [16] models and validates schemas but does not perform entity resolution. Koza [20], the Monarch Initiative’s [18] ingest engine, pairs YAML configuration with semi-declarative Python transforms, so complex sources often require repetitive procedural code and external mappings for resolution. BioCypher (Lobentanzer et al. 2023) standardizes biomedical graph construction, and OntoWeaver [3] adds declarative tabular mappings. However, Translator Biolink qualifier semantics and Resource Ingest Guide metadata fall outside their scope. SPIRES [2] extracts assertions from free text using zero-shot prompting rather than semi-structured tables. HarmoMed [27] uses agentic AI to create unified cross-dataset views instead of reasoning-ready knowledge assertions. Finally, the hosted SRI NameResolution service [22] and Node Normalization service [23] provide identifier resolution and canonical records through network APIs. Their need for hosting makes them dependent on service availability, and makes historical results hard to reproduce.
We built Tablassert rather than contributing to an existing project for three reasons. First, Tablassert’s recipe model is not backward-compatible with the translator-ingests transform interface [17]; migrating would discard provenance, certain edge types, and several qualifiers attributed to each edge. Second, Tablassert targets many heterogeneous tables, making additions easy by editing simple recipes rather than writing new code. Third, deterministic Tablassert builds run locally on demand, whereas shared ingests run as periodic batch jobs with unpinnable dependencies, slowing iteration and harming reproducibility. Together, these choices define Tablassert as a local, declarative, reproducible table-to-graph system.
Software Design
Tablassert uses declarative configuration to transform tabular data into one aggregated, Biolink-conformant knowledge graph exported as KGX with RIG metadata (Figure 1). It has three main trade-offs: an embedded NoSQL (fullmap) database enables local batched resolution without service calls; declarative YAML favors accessibility, validation, and speed over procedural flexibility; and a hybrid Python-Rust Maturin build system favors performance over implementation simplicity.

Figure 1. Tablassert Architecture. Graph and table YAMLs encode declarative transformations that are validated and coerced, compiled into operations, lazily optimized, and executed using a Python-Rust runtime, embedded named-entity recognition, and cryptographic caching. Outputs from individual tables are aggregated into one Biolink-conformant knowledge graph, exported as KGX nodes and edges alongside Translator Resource Ingest Guide (RIG) metadata.
Embedded fullmap database
Built from BABEL ([15]) exports, the embedded fullmap maps normalized synonyms and cross-vocabulary meta-identifiers to canonical identifiers with category and taxon metadata. Synonyms and queries share normalization. Builds rely on Redb ([1]) for parallel, read-only, memory-bounded point lookups without SQL or runtime service calls.
Storage is the main cost: the current BABEL 22.2.0 archive is 44.5 GB compressed, while the 2026-07-22 redb store benchmarked here occupies 92.9 GB. Resolution uses exact matches over normalized keys. To limit storage and lookup cost, the current build retains the top 100 experimental taxa by Translator knowledge-graph node frequency, all OrganismTaxon rows, and rows without taxon metadata, potentially excluding rare species-specific identifiers. Sixteen smaller shards accelerate lookups and support multithreaded reads. After the initial build, read-only access needs no writer coordination, and a bounded in-process cache reuses hits and misses with minimal memory and synchronization costs.
Node columns declare an NCBI taxon filter that retains matches for the declared species and taxon-less rows, Biolink category priority and avoid lists, and CURIE-prefix and regex exclusions. Before lookup, the cleaning trims raw preferred names and synonyms, strips surrounding quotes, and lowercases. A first normalization stems ASCII tokens, removes duplicates, and sorts remaining tokens; matching is thus unaffected by word repetition and order. A second pass removes non-word characters. Candidates are ranked in this order: exact preferred-name agreement, normalized-name agreement, category priority, and normalization level required for the match, with ties retained in the best tier. Optional column-category frequencies provide a heuristic tie-breaker.
Optional quality control applies a four-stage cascade: exact or alias matching, fuzzy string similarity, Schwartz-Hearst abbreviation expansion [21], then SapBERT [13, 19] embedding similarity using a checkpoint fine-tuned on BABEL synonyms. Each stage handles only what cheaper stages could not clear, and suspect mappings are dropped and logged with scores. For example, an audit rejected “factor ii” mapped to HMDB:HMDB0000607 (cyanocobalamin; SapBERT cosine 0.444): BABEL lists “Factor II” as its synonym, but the coagulation drug context calls for prothrombin, not vitamin B12 [24].
Declarative YAML configuration
YAML recipes declare source tables, transformations, and statement mappings instead of code. Pydantic models validate these recipes before execution with field-specific errors. The non-Turing-complete DSL favors common, fast transformations over arbitrary computation, so complex cross-table mappings and non-Polars-compatible regular expressions fall outside its scope. This reduces code changes needed for new sources and helps nontechnical contributors and AI agents author graphs.
Recipes compile into TCode, an ordered sequence of (callable, arguments) operations executed through Polars lazy frames. Independent transformations fuse until batched resolution, quality control, or output writing requires materialization. Sections are statement mappings that inherit a template’s shared source, provenance, metadata, and qualifier declarations. For example, a section can select another entity column and predicate while reusing everything else, avoiding a second nearly identical recipe. Sections that share the same instructions reuse snapshots from a cryptographic cache. Lazy optimization decouples recipe order from execution order. It often improves performance but can be suboptimal for some workloads and rules out transformations requiring strict procedural ordering.
Builds emit deduplicated KGX nodes and can emit a Resource Ingest Guide. Edges carry recipe-declared structured provenance, supporting-study metadata, and statistical qualifiers, including source URLs and publications when provided; traceability depends on the source and configuration.
An optional study stage checks structural invariants; validate-kgx checks category-specific Biolink records and Translator infores identity offline. The --prune option removes failing edges and gates the post-prune exit status. These validations establish structure, not biological validity.
Maturin build system
Tablassert’s Python layer handles recipe parsing, validation, lazy execution planning, and build coordination, while compiled Rust supplies repeated low-level operations. PyO3, a Rust-Python bridge, exposes those Rust functions as an ordinary Python extension. For example, Rust normalizes terms, queries the sharded fullmap, streams database construction through sorted temporary files, and writes KGX output as NDJSON, a line-oriented JSON format.
CPython’s global interpreter lock (GIL) allows only one thread to execute Python bytecode at a time. Rust calls release the GIL and use Rayon to spread work across CPU cores on standard CPython (trading build complexity for multicore performance). Maturin packages the extension as Linux and macOS PyPI wheels, so users can install them without a Rust toolchain. However, Windows requires WSL or a source build.
Research Impact Statement
Tablassert underlies several production knowledge graphs. MicrobiomeKG [12] was first built with an early version and its current deployment and maintenance builds use Tablassert. Multiomics Knowledge Provider (MOKP) [11] uses Tablassert. The Drug Approvals Knowledge Provider (DAKP), originally developed in the Airflow-based glusman-team/dakp repository [8] and now maintained in glusman-team/graph-monorepo [10], publishes validated, versioned drug-approval graphs with per-edge evidence linkouts [9] with Tablassert. As of release, Multiomics KP 3.1.3 contains 222,994 nodes and 18,206,965 edges derived from 2,136 PubMed Central (PMC) publications [11], and DAKP 1.28.1 contains 24,008 nodes and 164,662 edges (Goetz and Glusman 2026b). KRAKEN [5], Phenome Health’s unified knowledge graph, integrates MicrobiomeKG, MOKP, and DAKP as domain-specific sources. Translator ingest integration is in progress, beginning with a Multiomics passthrough (Goetz 2026a, 2026b). Future directions entail expanding MOKP to integrate a comprehensive subset of rare disease supplemental tables. Tablassert’s generality will also support knowledge extraction in other fields, including Synthetic Chemistry, Materials Science, and the Geosciences.
AI Usage Disclosure
Generative AI assisted with code generation, test writing, security analyses, documentation, reviewing, drafting, and revising. Coding-agent use began in January 2026. Models used include claude-opus-5, claude-sonnet-5, deepseek-v4, gemini-3.8-flash, glm-5.3, gpt-5.6, gpt-6, kimi-k2, kimi-k3, muse-spark-1.3-contributor, nemotron-3-ultra, laguna-s-2.1, qwen3.8, mimo-v2.5, and mimo-v2.6-pro in a custom Pi coding agent harness (v0.81.1) with prompt engineering from promptfoo (v0.121.17) and GEPA (v0.1.4). AI evaluation with CodeRabbit supplemented human code review. Grammarly also revised documentation and manuscripts. The authors made all architecture decisions, reviewed all outputs, and retain full responsibility for the software and manuscript.
Author Contributions
Skye Goetz developed the software, led design, and performed analyses. Jared Roach helped design the software and analyses, and provided feedback. Gwênlyn Glusman conceptualized the project, helped design the software and analyses, and provided feedback. All authors wrote the manuscript.
Acknowledgements
This work was supported by the National Science Foundation (Award 2150265) and by the National Center for Advancing Translational Sciences, Biomedical Translator Program (Other Transaction Awards OT2TR003443 and OT2TR005706). Any opinions expressed in this manuscript are those of the Translator community at large and do not necessarily reflect the views of NCATS, individual Translator team members, or affiliated organizations and institutions.
NCATS provided financial support but had no role in software design, analysis, or manuscript preparation.
References
References
- [1]Berner, C. 2026. “Redb: An Embedded Key-Value Database in Pure Rust.” https://github.com/cberner/redb. https://github.com/cberner/redb/tree/a35e7cc86f191d08a444d5973469b34673d586fc.
- [2]Caufield, J. H., Hegde, H., Emonet, V., Harris, N. L., Joachimiak, M. P., Matentzoglu, N., Kim, H., et al. 2024. “Structured Prompt Interrogation and Recursive Extraction of Semantics (SPIRES): A Method for Populating Knowledge Bases Using Zero-Shot Learning.” Bioinformatics 40: btae104. https://doi.org/10.1093/bioinformatics/btae104.
- [3]Dreo, J., Laudy, C., Lobentanzer, S., Baric, M., Gaydukova, E., and Schwikowski, B. 2024. “Reproducible Mapping of Tabular Data into Seman- tic Knowledge Graphs with OntoWeaver and BioCypher.” In Proceedings of the 2024 27th International Conference on Information Fusion (FUSION), 1–8. https://doi.org/10.23919/FUSION59988.2024.10706497.
- [5]Glen, A. K., Witherington, D., Leslie, T., Baumgartner, A., Fernando, A., Vemuri, B., Nahman, O., et al. 2026. “KRAKEN: A Provenance-Tracked Knowledge Graph for Multiomic and Wellness Research.” bioRxiv. https://doi.org/10.64898/2026.08.18.745544.
- [8]Goetz, S. L., and Glusman, G. 2026a. “DAKP: Drug Approvals Knowledge Provider.” https://github.com/glusman-team/dakp.
- [9]Goetz, S. L., and Glusman, G. 2026b. “Drug Approvals Knowledge Provider (DAKP) Dataset.” https://huggingface.co/datasets/SkyeAv/drug-approvals-kp.
- [10]Goetz, S. L., and Glusman, G. 2026c. “Glusman-Team Graph Monorepo.” https://github.com/glusman-team/graph-monorepo.
- [11]Goetz, S. L., and Glusman, G. 2026d. “Multiomics Knowledge Provider (MOKG) Dataset.” https://huggingface.co/datasets/SkyeAv/multiomics-kp.
- [12]Goetz, S. L., Glen, A. K., and Glusman, G. 2025. “MicrobiomeKG: Bridging Microbiome Research and Host Health Through Knowledge Graphs.” Frontiers in Systems Biology 5: 1544432. https://doi.org/10.3389/fsysb.2025.1544432.
- [13]Liu, F., Shareghi, E., Meng, Z., Basaldella, M., and Collier, N. 2021. “Self-Alignment Pretraining for Biomedical Entity Representations.” In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, 4228–38. https://doi.org/10.18653/v1/2021.naacl-main.334.
- [15]Morris, E., Vaidya, G., Owen, P., Reilly, J., Fecho, K., Wang, P., Kebede, Y., Carter, E. K., and Bizon, C. 2026. “The ‘i’ in FAIR: Translating from Interoperability in Principle to Interoperation in Practice.” arXiv Preprint arXiv:2601.10008. https://doi.org/10.48550/arXiv.2601.10008.
- [16]Moxon, S. A. T., Solbrig, H., Harris, N. L., Kalita, P., Miller, M. A., Patil, S., Schaper, K., et al. 2025. “LinkML: An Open Data Modeling Framework.” GigaScience 15: giaf152. https://doi.org/10.1093/gigascience/giaf152.
- [17]NCATS Biomedical Data Translator Consortium. 2025. “Translator-Ingests: Translator Knowledge Source Ingest Pipeline.” https://github.com/NCATS Translator/translator-ingests.
- [18]Putman, T. E., Schaper, K., Matentzoğlu, N., Rubinetti, V. P., Alquaddoomi, F. S., Cox, C., Caufield, J. H., et al. 2024. “The Monarch Initiative in 2024: An Analytic Platform Integrating Phenotypes, Genes and Diseases Across Species.” Nucleic Acids Research 52: D938–49. https://doi.org/10.1093/na r/gkad1082.
- [19]RENCI Named Entity Recognition Working Group. 2025. “Babel SapBERT (RENCI Fork of SapBERT).” https://github.com/RENCI-NER/sapbert/tr ee/v1.0.0.
- [20]Schaper, K., Ships, G., Shefchek, K., Moxon, S., and Mungall, C. 2026. “Koza: Data Transformation Framework for LinkML Data Models.” https://github .com/monarch-initiative/koza.
- [21]Schwartz, A. S., and Hearst, M. A. 2003. “A Simple Algorithm for Identifying Abbreviation Definitions in Biomedical Text.” In Pacific Symposium on Biocomputing 2003, 451–62. https://doi.org/10.1142/9789812776303_0042.
- [22]The Biomedical Data Translator Consortium. 2026a. “Curation: A Service for Finding CURIEs from Lexical Strings.” https://github.com/N CATSTranslator/NameResolution.
- [23]The Biomedical Data Translator Consortium. 2026b. “NodeNormalization: A Service for Producing Translator-Compliant Nodes from CURIEs.” https: //github.com/NCATSTranslator/NodeNormalization.
- [24]The UniProt Consortium. 2026. “Prothrombin (F2), Human: UniProtKB P00734.” https://www.uniprot.org/uniprotkb/P00734/entry.
- [26]Unni, D., Bruskiewich, R., and Moxon, S. 2026. “KGX: Knowledge Graph Exchange.” https://github.com/biolink/kgx.
- [27]Villanueva-Miranda, I., Gu, Z., Xiao, G., and Xie, Y. 2026. “HarmoMed: An Agentic Framework for Auditable Multimodal Biomedical Data Harmonization.” In Proceedings of the 17th ACM International Conference on Bioinformatics, Computational Biology and Health Informatics, 1–6. https: //doi.org/10.1145/3807503.3819371.