Abstract
Semantic Table Interpretation (STI) is critical for enabling machines to understand tabular data by linking it to Knowledge Graphs (KGs). However, existing STI benchmarks often focus on general-domain data, leading to performance degradation in specialized fields like biodiversity or medicine. We present KG2Tables, a framework designed to automatically generate large-scale, domain-specific STI benchmarks. By leveraging the internal hierarchical structures of KGs such as Wikidata, KG2Tables produces complex datasets that challenge state-of-the-art systems.
Introduction
Data scientists frequently encounter tabular data in formats like CSV. To make this data machine-readable and interoperable, it must be linked to a Knowledge Graph (KG)—a process known as Semantic Table Interpretation (STI). This involves several sub-tasks: identifying cell entities, determining column types, and mapping relationships between columns.
While STI performance has improved on general-domain datasets (e.g., Wikipedia), systems often struggle with specialized domains. Manual creation of domain-specific benchmarks is labor-intensive and difficult to scale. KG2Tables addresses this by providing an automated pipeline to transform niche KG segments into robust, multi-task benchmarks.
The KG2Tables Framework
The KG2Tables framework follows a structured four-step pipeline to convert KG concepts into annotated tables:
- Hierarchy Construction: Users provide a set of domain-specific concepts. The tool uses SPARQL queries to traverse the KG’s taxonomy (e.g., "instance of" or "subclass of" properties) to identify relevant entities and attributes.
- Table Generation: The framework generates two primary table formats:
- Horizontal Relational Tables: Standard layouts where rows represent entities and columns represent their attributes.
- Entity Tables: Vertical layouts focusing on a single entity and its various properties.
- Refinement: To increase benchmark difficulty, the tool applies set operations (union, intersection) and anonymizes column headers, preventing systems from relying on lexical cues.
- Formatting: The output is partitioned into tables, target tasks, and ground truth labels.
Multi-Task Support and Key Insights
A core innovation of KG2Tables is its ability to generate data for five distinct STI tasks simultaneously, as shown in the figure above:
- Cell Entity Annotation (CEA): Linking a specific cell to a KG entity.
- Column Type Annotation (CTA): Assigning a semantic type to a column.
- Column Property Annotation (CPA): Identifying the relationship between two columns.
- Row Annotation (RA): Mapping an entire row to a KG entity.
- Topic Detection (TD): Classifying the overall subject of the table.
By using the KG’s internal taxonomy as a blueprint, the tool ensures that generated tables are semantically consistent and domain-relevant. Furthermore, the framework is KG-agnostic; while tested on Wikidata, it can be adapted to other graphs like DBpedia with minor SPARQL adjustments.
Benchmarking and Results
The authors utilized KG2Tables to generate six benchmarks across three specialized domains: Food, Biodiversity, and Biomedical. These datasets have already been integrated into major competitions, including the ISWC 2023 and 2024 SemTab challenges. Results indicate that these benchmarks are significantly more challenging for state-of-the-art STI systems compared to general-domain datasets, highlighting the necessity of specialized evaluation data.
Limitations and Future Work
The effectiveness of KG2Tables is currently tied to the quality of the underlying KG's modeling. Poorly structured domains in Wikidata result in less effective benchmarks. Future work aims to introduce more "noise" (e.g., ambiguous labels) to better simulate real-world web tables and to further generalize the tool for KGs with diverse ontological structures beyond Wikidata's specific property types.
Summary updated