TLDR: A new research paper introduces a multi-agent system powered by Large Language Models (LLMs) to automate the integration of relational databases into unified knowledge graphs. The system uses specialized LLM agents to map database tables and columns to Schema.org terms, identify relationships, and validate the mappings. Evaluated on the Spider dataset, the approach achieved over 90% mapping accuracy across various domains, significantly reducing the manual effort in data integration and enhancing interoperability for enterprises.
Enterprises today often struggle with a common problem: their valuable business data is scattered across many separate databases. This creates what are known as ‘data silos,’ making it difficult to combine and use all the information effectively. Imagine trying to get a complete picture of your business when different pieces of information are locked away in different rooms, each speaking a slightly different language. This challenge of integrating diverse data sources is crucial for businesses to truly leverage their data’s full potential.
A new research paper, “A Multi-Agent System for Semantic Mapping of Relational Data to Knowledge Graphs”, by Milena Trajanoska, Riste Stojanov, and Dimitar Trajanov, introduces an innovative solution to this problem. Their work proposes a novel approach for integrating multiple databases using knowledge graphs, which are powerful tools for creating a unified, semantic view of disparate datasets. The key innovation lies in applying large language models (LLMs) as ‘semantic agents’ to map and connect structured data across different systems, utilizing existing vocabularies like Schema.org.
Bridging the Gap with a Semantic Layer
The core of their methodology involves creating a ‘semantic layer’ above the tables in relational databases. This layer is built by a system comprising multiple LLM agents. These agents are designed to map database tables and columns to terms from Schema.org, a widely used vocabulary for describing entities, their relationships, and actions on the web. This approach helps avoid the common issue of ‘hallucinating’ terms that lack well-defined meanings.
The Multi-Agent System Architecture
The system is composed of several specialized GPT-4o-mini agents, each with a distinct role:
- Mapping Agent: This agent is responsible for taking the names of tables and columns, along with sample data and descriptions, and mapping them to the most appropriate Schema.org terms. It uses a custom ‘graph-vector store’ to retrieve semantically similar terms, ensuring accurate mappings.
- Relation Agent: Once the individual tables are mapped, this agent steps in to identify primary and foreign key relationships between tables. This is crucial for establishing links between entities and integrating them into a unified knowledge graph.
- Validator Agent: The final step involves a Validator agent that inspects and refines the mappings and relations produced by the other two agents. It can remove or re-map any relations to improve overall accuracy.
Each agent also outputs a confidence level (HIGH, MEDIUM, or LOW) for its task, which is then averaged to provide a final confidence score for the entire mapping process.
Evaluating the System’s Performance
The researchers evaluated their system using the Yale Spider dataset, a comprehensive benchmark featuring real-world relational data from various domains. This allowed them to test the effectiveness of mapping relational data to a knowledge graph across diverse scenarios. The accuracy of the generated mappings was assessed through manual validation, ensuring that the chosen Schema.org terms correctly reflected the semantics of the database elements.
The results were promising, demonstrating a mapping accuracy of over 90% across multiple domains. For instance, the system achieved 93.54% accuracy in the ‘Apartments’ domain and 90% in ‘Movies’. Even in the ‘Retail’ domain, which presented the lowest accuracy, it still achieved a satisfactory 78.72%. The evaluation also showed that mappings with a ‘HIGH’ confidence level were generally the most accurate.
Also Read:
- LLM Agents Enhance Predictive Maintenance by Cleaning Noisy Logs
- AI Agents Reveal How Mental Schemas Shape Misinformation Responses
Impact and Future Directions
This semantic multi-agent system represents a significant step forward in enterprise data integration. By automating the alignment of relational schemas with Schema.org, it enhances interoperability and enables the creation of unified, semantically rich knowledge graphs across different domains. The innovative use of LLM agents for semantic mapping and reasoning over structured data significantly reduces the manual effort traditionally required for data integration.
Future work aims to expand the system’s capabilities, including supporting custom domain ontologies, enhancing the reasoning abilities of the agents through fine-tuning, and developing strategies for integrating even larger and more heterogeneous datasets.


