Source Code Workflow Conversion Into Knowledge Graph Definitions

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Converting legacy software applications written in various programming languages into knowledge graph definitions is a complex and time-consuming process requiring expert knowledge, hindering efficient maintenance and deployment of workflows.

Innovation Solution

A method and system that automatically generates knowledge graph definitions from program source code by converting it into an intermediate representation, building an abstract syntax tree, and traversing it to create a structured file in a knowledge graph-specific language, decoupling from programmatic and platform-specific constraints.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If legacy software applications are converted manually into knowledge graph definitions, then the conversion accuracy and quality can be maintained, but the conversion process becomes time-consuming and requires expert knowledge

Engineering Contradiction:
Improveconversion accuracyVSAvoidconversion time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent introduces an intermediary system comprising an abstract syntax tree generator and a knowledge graph definition generator that acts as a mediator between legacy source code and knowledge graph definitions. This intermediary automatically translates source code into knowledge graph definitions without requiring expert manual intervention, thereby maintaining conversion accuracy while significantly reducing conversion time.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent replaces the manual mechanical process of expert conversion with an automated computational system. The system uses abstract syntax tree generation and automated definition generation to substitute human expert labor, achieving both high conversion accuracy and efficient processing speed simultaneously.

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

2Reliability

If expert knowledge is required for conversion, then the quality of knowledge graph definitions can be ensured, but the ease of operation and accessibility deteriorates

Engineering Contradiction:
Improvedefinition qualityVSAvoidconversion accessibility
Core Design Contradiction:
ReliabilityVSEase of operation

Solution Approach 1:

The system enables self-service conversion by automatically generating knowledge graph definitions from source code without requiring user expertise. The automated definition generation process handles the complexity internally, allowing users with basic skills to perform conversions that previously required expert knowledge, thus improving accessibility while maintaining quality.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The intermediary system shields users from complexity by handling the expert-level conversion logic internally. Users interact with a simplified interface while the intermediary automatically manages the complex translation process, ensuring definition quality without requiring user expertise.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Device complexity

If manual conversion processes are used, then control over the conversion process can be maintained, but the productivity and efficiency of the conversion process decreases

Engineering Contradiction:
Improveprocess control capabilityVSAvoidconversion efficiency
Core Design Contradiction:
Device complexityVSProductivity

Solution Approach 1:

The patent replaces manual conversion processes with an automated system that uses abstract syntax tree generation and programmatic definition generation. This substitution dramatically increases conversion efficiency while maintaining control through the structured, rule-based automated process that systematically translates source code into knowledge graph definitions.

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

Solution Approach 2:

The automated conversion process enables continuous processing of source code into knowledge graph definitions without the interruptions and manual steps inherent in manual conversion. The system continuously generates abstract syntax trees and translates them into definitions, significantly improving productivity while maintaining control through the continuous, systematic process.

Inventive Principle:
Principle #20Continuity of useful action

Data Source

PatentUS12572820B2Methods and systems for generating knowledge graphs from program source code
Publication Date: 2026.03.10 INTUIT INC
  • US12572820B2 patent drawing
  • US12572820B2 patent drawing
  • US12572820B2 patent drawing

AI summary

Certain aspects of the present disclosure provide techniques for generating knowledge graphs from program source code. An example method generally includes receiving a source code definition of a workflow implemented in an application. The source code definition of the workflow is converted into an intermediate representation of the workflow, the intermediate representation comprising a condensed version of the source code definition. An abstract syntax tree representation of the workflow is generated based on the intermediate representation of the workflow. A structured file is generated by traversing the abstract syntax tree representation of the workflow, wherein the structured file comprises a definition of the workflow in a knowledge graph-specific language. The structured file is deployed to a knowledge graph execution engine.