Abstract
Spreadsheets are a ubiquitous medium for data entry, yet their "messy" nature—characterized by inconsistent formatting, multi-valued cells, and semantic information hidden in visual styles—poses significant challenges for automated Knowledge Graph (KG) construction. This paper introduces an interactive framework that allows knowledge engineers to perform bulk-annotation using specialized extraction modules. By utilizing a "Matching Graph" to link individual cells to formal entities, the system preserves traceability and captures nuances like strikethrough text that traditional mapping languages miss.
Introduction: The "Wild West" of Data
While spreadsheets are intuitive for human users, they lack the strict modeling constraints required for structured data systems. In industrial settings, critical information is often encoded in ways that automated tools struggle to parse: a red font might indicate an urgent status, or a strikethrough might signal a revoked permission. Existing solutions typically fall into two categories: automated mapping languages (like RML), which require highly structured input, and data cleaning tools (like OpenRefine), which often lack seamless integration with RDF generation.
The Interactive Annotation Framework
The authors propose a two-phase approach supported by a custom graphical user interface (GUI) designed for bulk-annotation.
Phase 1: Annotation
In this phase, a Knowledge Engineer (KE) labels cells using various extraction modules. A key innovation is Deep Linking, where every cell is assigned a unique URI (e.g., /cell/16). This allows the system to create a "Matching Graph"—a middle layer that makes RDF statements about the cells themselves before they are transformed into final KG instances.
The framework includes several specialized modules:
- Regular Expressions: This module matches patterns, such as document IDs, and can capture remaining text as comments to ensure no data is lost during extraction.
- Descriptive Statistics: Groups similar values for bulk labeling and supports JavaScript snippets for complex transformations.
- Style Awareness: The system detects visual cues like strikethrough text, translating them into specific properties (e.g., indicating a person is no longer an editor).
Phase 2: Instance Collection
Once the rows are annotated, the system scans the "Matching Graph" to generate the final KG instances and their associated properties.
Key Insights: Style as Data and Traceability
The evaluation of this tool on industrial datasets revealed several critical insights:
- Formatting is Semantic: The interactive approach captured 236 statements based on style information (specifically strikethrough) that were entirely lost in standard CSV/RML pipelines.
- Handling Multi-valued Cells: Traditional mapping languages often assume a "one subject per row" model. The authors found over 500 cells containing multiple entities, a complexity handled easily by interactive bulk-annotation.
- Traceability: The Matching Graph layer ensures that every node in the final KG can be traced back to its specific source cell in the spreadsheet.
Results and Evaluation
The system was tested on five real-world spreadsheets from a power supply company, comprising over 41,000 cells. The process successfully generated a KG with 25,016 triples. Compared to the RDF Mapping Language (RML), the interactive approach demonstrated superior precision by allowing the KE to skip irrelevant cells and correctly handle complex, multi-entity cells that caused RML to fail or produce noisy data.
Conclusion
This research demonstrates that human-in-the-loop interaction is essential for extracting high-quality knowledge from the "messy" spreadsheets common in industry. By treating cell styles as first-class data and providing a traceable matching layer, the tool bridges the gap between flexible human data entry and rigid formal ontologies. Future work will focus on improving the scalability of the UI and further integrating "human-in-the-loop" feedback mechanisms.
Summary updated