Source Code Workflow Conversion Into Knowledge Graph Definitions
Find Innovative SolutionsGenerate 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
Engineering 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
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.
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.
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
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.
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.
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
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.
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.
Data Source
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.


