Knowledge Graph Generation With SQL-Friendly Semantic Mapping

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing systems fail to allow users to query knowledge graphs using standard SQL while abstracting the complexities of graph traversal and semantic querying, leading to inefficiencies and a gap between SQL-based tools and the deeper relational insights captured in knowledge graphs.

Innovation Solution

A multi-agent pipeline utilizing ontology and mapping generation agents, supported by a data access agent, iteratively refines semantic representations and mapping files to convert natural language queries into accurate SQL queries, integrating domain-specific logic and leveraging Large Language Models (LLMs) for seamless interaction with data sources.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Loss of information

If knowledge graphs are used to represent relationships between entities, then contextual richness and machine-readability are improved, but querying complexity increases due to requirement of SPARQL or graph-based query languages

Engineering Contradiction:
Improvecontextual richnessVSAvoidquerying complexity
Core Design Contradiction:
Loss of informationVSEase of operation

Solution Approach 1:

The patent introduces an intermediary translation layer that converts SQL queries into graph-based queries (SPARQL or property graph queries). This mediator component allows users to interact with knowledge graphs using familiar SQL syntax while the system handles the complexity of graph traversal and semantic querying in the background, thus resolving the contradiction between contextual richness and querying ease.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Ease of operation

If SQL-like interfaces are provided over knowledge graph engines, then user familiarity is improved, but full semantics of the underlying graph cannot be captured

Engineering Contradiction:
Improveuser familiarityVSAvoidsemantic capture
Core Design Contradiction:
Ease of operationVSLoss of information

Solution Approach 1:

The translation layer acts as an intelligent intermediary that not only translates SQL syntax but also enriches queries by inferring semantic relationships from the knowledge graph schema. It adds graph-specific capabilities such as path traversal, entity resolution, and relationship inference while maintaining SQL syntax, thus capturing full graph semantics without sacrificing user familiarity.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system replaces the mechanical, syntax-only SQL processing with a semantic-aware translation mechanism that understands both SQL syntax and graph semantics. This substitution allows the system to interpret SQL queries in the context of the knowledge graph structure, enabling rich semantic capture while maintaining the simplicity of SQL interface.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

3Adaptability or versatility

If data is duplicated between relational and graph systems, then query flexibility is improved, but maintenance overhead and inconsistencies increase

Engineering Contradiction:
Improvequery flexibilityVSAvoidmaintenance overhead
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent extracts the graph data model from a separate duplication system and integrates it as a semantic layer over the existing relational database. Instead of maintaining duplicate data in both relational and graph systems, the solution uses the relational database as the single source of truth and builds the knowledge graph semantics on top of it through schema inference and ontology generation, thus eliminating maintenance overhead while preserving query flexibility.

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentUS20250322270A1Method and system of generating knowledge graph of data repository
Publication Date: 2025.10.16 QUANTIPHI INC
  • US20250322270A1 patent drawing
  • US20250322270A1 patent drawing
  • US20250322270A1 patent drawing

AI summary

A method (400) and system (100) of generating knowledge graph of the data repository is disclosed. The method (400) includes receiving input data (302) and access of data repository (304). The method (400) may include generating semantic (310) representation of data repository (304) schema based on input data (302) and data repository (304) using language model. The method (400) may further include validating semantic representation (310) syntactically and with respect to input data (302). The method (400) may further include generating mapping (320) file of data repository (304) schema based on semantic representation (310) and data repository (304) using language model. The mapping file (320) may include mapping of plurality of elements of semantic representation (310) to corresponding elements in input data (302). Further, the method (400) includes validating mapping file (320) syntactically and semantically based on semantic representation (310), data repository (304) and input data (302).