# US 2024/0126759 A1 · Converting an api into a graph api

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0126759 A1
- Document ID: US20240126759A1
- Status: Published application
- Kind: A1
- Application number: 17/966,096
- Filed: 2022-10-14
- Published: 2024-04-18
- Earliest claimed: 2022-10-14
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Ralf Handl; Robert Witt
- Web page: https://patentgrep.com/patent/US20240126759A1

## CPC

- G06F 8/75: Structural analysis for program understanding
- G06F 16/24553: {of query operations}
- G06F 8/433: {Dependency analysis; Data or control flow analysis}
- G06F 16/9024: {Graphs; Linked lists (G06F16/9027 takes precedence)}
- G06F 8/355: {Round-trip engineering}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Provided are systems and methods for transforming an operation-centric API into a graph-based API. In one example, a method may include receiving a description of an application programming interface (API), translating the description into a proxy model that comprises a list of a plurality of operations performed by the API, executing one or more heuristic programs on the proxy model to determine a plurality of entities associated with the list of operations and relationships among the plurality of entities, generating a graph API based on the plurality of entities and the relationships among the plurality of entities, wherein the graph API comprises a plurality of nodes representing the plurality of entities and edges between the plurality of nodes representing the relationships between the plurality of entities, and storing the graph API in a storage.

## Claims

### Claim 1

A computing system comprising:
a storage configured to store a file comprising a description of operations performed by an application programming interface (API); and
a processor configured to:
access the file to obtain the description of operations performed by the API,
responsive to the access of the file, translate the description of the operations performed by the API into a proxy model by removing content from the description and normalizing content within the description,
determine a plurality of entities associated with the operations performed by the API and relationships among the plurality of entities via execution of heuristics on the proxy model;
generate a graph API based on the plurality of entities and the relationships among the plurality of entities, where the graph API comprises a plurality of nodes representing the plurality of entities and edges between the plurality of nodes which represent the relationships between the plurality of entities; and
store the graph API in a storage.

### Claim 2 (depends on 1)

The computing system of claim 1, wherein the processor is further configured to determine the plurality of entities and the relationships among the plurality of entities based on annotations within the description.

### Claim 3 (depends on 1)

The computing system of claim 1, wherein the operations comprises one or more of a put operation, a get operation, a post operation, and a delete operation.

### Claim 4 (depends on 1)

The computing system of claim 1, wherein the processor is configured to cluster the operations into a plurality of subsets of operations based on semantic content included in the description of the API and identify the plurality of entities from the plurality of subsets of operations, respectively.

### Claim 5 (depends on 1)

The computing system of claim 1, wherein the processor is further configured to query an external database for one or more of primary keys and foreign keys of data of the API stored in the database, and determine the relationships among the plurality of entities based on the one or more of the primary keys and the foreign keys.

### Claim 6 (depends on 1)

The computing system of claim 1, wherein the API comprises a representational state transfer (REST) API having an operation-centric format.

### Claim 7 (depends on 1)

The computing system of claim 1, wherein the processor is further configured to display a user interface with controls, receive inputs for modifying the graph API via the controls, and modify the graph API stored in the storage based on the received inputs.

### Claim 8 (depends on 1)

The computing system of claim 1, wherein the processor is configured to integrate the graph API into a larger unified graph with a plurality of other graph APIs stored therein.

### Claim 9

A method comprising:
receiving a file comprising a description of an application programming interface (API) and of operations performed by the API;
translating the description into a proxy model that comprises a list of a plurality of the operations performed by the API;
executing one or more heuristic programs on the proxy model to determine a plurality of entities associated with the list of operations and relationships among the plurality of entities;
generating a graph API based on the plurality of entities and the relationships among the plurality of entities, wherein the graph API comprises a plurality of nodes representing the plurality of entities and edges between the plurality of nodes representing the relationships between the plurality of entities; and
storing the graph API in a storage.

### Claim 10 (depends on 9)

The method of claim 9, wherein the method further comprises determine the plurality of entities and the relationships among the plurality of entities based on annotations within the description.

### Claim 11 (depends on 9)

The method of claim 9, wherein the operations comprises one or more of a put operation, a get operation, a post operation, and a delete operation.

### Claim 12 (depends on 9)

The method of claim 9, wherein the determining the plurality of entities comprises clustering the operations into a plurality of subsets of operations based on semantic content included in the description of the API and identifying the plurality of entities from the plurality of subsets of operations, respectively.

### Claim 13 (depends on 9)

The method of claim 9, wherein the determining comprises querying an external database for one or more of primary keys and foreign keys of data of the API stored in the database, and determining the relationships among the plurality of entities based on the one or more of the primary keys and the foreign keys.

### Claim 14 (depends on 9)

The method of claim 9, wherein the API comprises a representational state transfer (REST) API having an operation-centric format.

### Claim 15 (depends on 9)

The method of claim 9, wherein the method further comprises displaying a user interface with controls, receiving inputs for modifying the graph API via the controls, and modifying the graph API stored in the storage based on the received inputs.

### Claim 16 (depends on 9)

The method of claim 9, wherein the storing further comprises integrating the graph API into a larger unified graph with a plurality of other graph APIs stored therein.

### Claim 17

A non-transitory computer-readable storage medium comprising instructions which when executed by a processor cause a computer to perform a method comprising:
receiving a file comprising an application programming interface (API), the file including a description of operations performed by the API;
translating the file into a proxy model that comprises a list of the operations performed by the API, the list of the operations being determined from the description of the operations;
determining a plurality of entities associated with the list of operations performed by the API and relationships among the plurality of entities via execution of one or more heuristics on the proxy model;
generating a graph API plurality of entities and the relationships among the plurality of entities, wherein the graph API comprises a plurality of nodes representing the plurality of entities and edges between the plurality of nodes representing the relationships between the plurality of entities; and
integrating the graph API into a larger graph API within storage.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the receiving comprises receiving a machine-readable file that comprises a machine-readable description of the API and the translating comprises identifying the list of operations from the machine-readable description of the API.

### Claim 19 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the determining the plurality of entities comprises clustering the operations into a plurality of subsets of operations based on semantic content included in the list of operations and identifying the plurality of entities from the plurality of subsets of operations, respectively.

### Claim 20 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the method further comprises receiving an application programming interface (API) call from a software application and in response, executing the API call on the graph API.
