# US 2026/0037578 A1 · Graph data processing method and apparatus, and graph database-based data processing method and apparatus

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

- Number: US 2026/0037578 A1
- Document ID: US20260037578A1
- Status: Published application
- Kind: A1
- Application number: 19/280,101
- Filed: 2025-07-25
- Published: 2026-02-05
- Earliest claimed: 2024-07-30
- Assignees: Alipay (Hangzhou) Information Technology Co., Ltd.
- Applicants: Alipay (Hangzhou) Information Technology Co., Ltd.
- Inventors: Qi ZHANG
- Web page: https://patentgrep.com/patent/US20260037578A1

## CPC

- G06F 16/9024: {Graphs; Linked lists (G06F16/9027 takes precedence)}
- G06F 16/211: {Schema design and management}
- G06F 16/24537: {of operators}
- G06F 16/24542: {Plan optimisation}
- G06F 16/951: Indexing; Web crawling techniques
- G06F 16/9538: Presentation of query results
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of this specification provide a graph data processing method and apparatus, and a graph database-based data processing method and apparatus. In the graph data processing method, graph data represented in a data object form is obtained, where the graph data includes type values and attribute values of point and edge data; corresponding schemas are queried based on the type values of the graph data to determine a number of attribute byte groups corresponding to the type values, where the schemas are used to indicate attributes of the point and edge data, and each attribute byte group is used to store an attribute value of a corresponding attribute; convert the attribute values of the graph data into binary forms; and store the attribute values of the graph data that are represented in the binary forms-according to a byte group sequence format that matches the number of determined attribute byte groups.

## Claims

### Claim 1

A graph data processing method, comprising:
obtaining graph data represented in a data object form, wherein the graph data comprises type values and attribute values of point and edge data;
querying corresponding schemas based on the type values to determine a number of attribute byte groups corresponding to the type values, wherein the schemas are used to indicate attributes of the point and edge data, and each attribute byte group is used to store an attribute value of a corresponding attribute;
converting the attribute values of the graph data into binary forms; and
storing the attribute values of the graph data that are represented in the binary forms according to a byte group sequence format that matches the number of determined attribute byte groups.

### Claim 2 (depends on 1)

The graph data processing method according to claim 1, wherein the byte group sequence format that matches the number of determined attribute byte groups is constructed in the following manner:
constructing the byte group sequence format that matches the number of determined attribute byte groups based on a combination of a null value determining byte group and the number of attribute byte groups, wherein data stored in the null value determining byte group is used to indicate whether data stored in the number of attribute byte groups is null.

### Claim 3 (depends on 2)

The graph data processing method according to claim 2, wherein the storing the attribute values of the graph data that are represented in the binary forms according to a byte group sequence format that matches the number of determined attribute byte groups comprises:
storing the attribute values of the graph data that are represented in the binary forms in corresponding attribute byte groups in the byte group sequence format;
determining values of the data stored in the null value determining byte group in the byte group sequence format based on data stored in the attribute byte groups in the byte group sequence format; and
storing the determined values in the null value determining byte group.

### Claim 4 (depends on 1)

The graph data processing method according to claim 1, wherein the schemas are further used to indicate data type needs of the attributes for corresponding attribute values; and
the byte group sequence format that matches the number of determined attribute byte groups is constructed in the following manner:
constructing, based on a data type need corresponding to each attribute byte group in the number of attribute byte groups, a unit byte group that matches the data type need; and
constructing the byte group sequence format that matches the number of determined attribute byte groups based on a combination of constructed unit byte groups.

### Claim 5 (depends on 4)

The graph data processing method according to claim 4, wherein the unit byte group comprises at least one of a first data type byte group and a second data type byte group, and the constructing, based on a data type need corresponding to each attribute byte group in the number of attribute byte groups, a unit byte group that matches the data type need comprises:
if the data type need corresponding to the attribute byte group indicates that an attribute value belongs to a first data type, constructing the first data type byte group, wherein the first data type byte group is used to store an attribute value that belongs to the first data type in the graph data; or
if the data type need corresponding to the attribute byte group indicates that an attribute value belongs to a second data type, constructing the second data type byte group, wherein the second data type byte group is used to store storage location information of an attribute value that belongs to the second data type in the graph data.

### Claim 6 (depends on 5)

The graph data processing method according to claim 5, wherein the constructing the byte group sequence format that matches the number of determined attribute byte groups based on a combination of constructed unit byte groups comprises:
if the constructed unit byte groups comprise a second data type byte group, constructing the byte group sequence format that matches the number of determined attribute byte groups based on a combination of the constructed unit byte groups and an extended byte group, wherein the extended byte group is used to store attribute values that belong to the second data type in the graph data based on storage location information of the attribute values.

### Claim 7 (depends on 5)

The graph data processing method according to claim 5, wherein the first data type byte group and the second data type byte group have the same length, and an arrangement order of the first data type byte group and the second data type byte group is determined based on a sequence of the attributes indicated by the schemas.

### Claim 8 (depends on 7)

The graph data processing method according to claim 7, further comprising:
in response to receiving an attribute value read request for a target attribute of target graph data, determining a target schema that a byte group sequence format used to store the target graph data is based on;
determining a storage location of an attribute byte group corresponding to the target attribute in the corresponding byte group sequence format based on the target schema; and
reading an attribute value of the target attribute based on the determined storage location of the attribute byte group.

### Claim 9 (depends on 1)

The graph data processing method according to claim 1, wherein the schemas corresponding to the type values have schema identifiers; and
the byte group sequence format that matches the number of determined attribute byte groups is constructed in the following manner:
constructing the byte group sequence format that matches the number of determined attribute byte groups based on a combination of a schema identifier byte group and the number of attribute byte groups, wherein data stored in the schema identifier byte group is used to indicate schemas used as a generation basis of the byte group sequence format.

### Claim 10 (depends on 9)

The graph data processing method according to claim 9, wherein the storing the attribute values of the graph data that are represented in the binary forms according to a byte group sequence format that matches the number of determined attribute byte groups comprises:
storing the schema identifiers in the schema identifier byte group in the byte group sequence format; and
storing the attribute values of the graph data that are represented in the binary forms in corresponding attribute byte groups in the byte group sequence format.

### Claim at position 11

11-14. (canceled)

### Claim 15

A graph data processing apparatus, comprising at least one processor, a storage coupled to the at least one processor, and a computer program stored in the storage, which when executed by the at least one processor causes the graph data processing apparatus to:
obtain graph data represented in a data object form, wherein the graph data comprises type values and attribute values of point and edge data;
query corresponding schemas based on the type values to determine a number of attribute byte groups corresponding to the type values, wherein the schemas are used to indicate attributes of the point and edge data, and each attribute byte group is used to store an attribute value of a corresponding attribute;
convert the attribute values of the graph data into binary forms; and
store the attribute values of the graph data that are represented in the binary forms according to a byte group sequence format that matches the number of determined attribute byte groups.

### Claim 16

(canceled)

### Claim 17 (depends on 15)

The graph data processing apparatus according to claim 15, wherein the byte group sequence format that matches the number of determined attribute byte groups is constructed in the following manner:
constructing the byte group sequence format that matches the number of determined attribute byte groups based on a combination of a null value determining byte group and the number of attribute byte groups, wherein data stored in the null value determining byte group is used to indicate whether data stored in the number of attribute byte groups is null.

### Claim 18 (depends on 17)

The graph data processing apparatus according to claim 17, wherein the graph data processing apparatus being caused to store the attribute values of the graph data that are represented in the binary forms according to a byte group sequence format that matches the number of determined attribute byte groups comprises being caused to:
store the attribute values of the graph data that are represented in the binary forms in corresponding attribute byte groups in the byte group sequence format;
determine values of the data stored in the null value determining byte group in the byte group sequence format based on data stored in the attribute byte groups in the byte group sequence format; and
store the determined values in the null value determining byte group.

### Claim 19 (depends on 15)

The graph data processing apparatus according to claim 15, wherein the schemas are further used to indicate data type needs of the attributes for corresponding attribute values; and
the byte group sequence format that matches the number of determined attribute byte groups is constructed in the following manner:
constructing, based on a data type need corresponding to each attribute byte group in the number of attribute byte groups, a unit byte group that matches the data type need; and
constructing the byte group sequence format that matches the number of determined attribute byte groups based on a combination of constructed unit byte groups.

### Claim 20 (depends on 19)

The graph data processing apparatus according to claim 19, wherein the unit byte group comprises at least one of a first data type byte group and a second data type byte group, and the constructing, based on a data type need corresponding to each attribute byte group in the number of attribute byte groups, a unit byte group that matches the data type need comprises:
if the data type need corresponding to the attribute byte group indicates that an attribute value belongs to a first data type, constructing the first data type byte group, wherein the first data type byte group is used to store an attribute value that belongs to the first data type in the graph data; or
if the data type need corresponding to the attribute byte group indicates that an attribute value belongs to a second data type, constructing the second data type byte group, wherein the second data type byte group is used to store storage location information of an attribute value that belongs to the second data type in the graph data.

### Claim 21

A non-transitory computer-readable storage medium storing instructions, wherein the non-transitory computer-readable storage medium stores a computer program, which when executed by a processor causes the processor to:
obtain graph data represented in a data object form, wherein the graph data comprises type values and attribute values of point and edge data;
query corresponding schemas based on the type values to determine a number of attribute byte groups corresponding to the type values, wherein the schemas are used to indicate attributes of the point and edge data, and each attribute byte group is used to store an attribute value of a corresponding attribute;
convert the attribute values of the graph data into binary forms; and
store the attribute values of the graph data that are represented in the binary forms according to a byte group sequence format that matches the number of determined attribute byte groups.

### Claim 22 (depends on 21)

The non-transitory computer-readable storage medium according to claim 21, wherein the byte group sequence format that matches the number of determined attribute byte groups is constructed in the following manner:
constructing the byte group sequence format that matches the number of determined attribute byte groups based on a combination of a null value determining byte group and the number of attribute byte groups, wherein data stored in the null value determining byte group is used to indicate whether data stored in the number of attribute byte groups is null.

### Claim 23 (depends on 22)

The non-transitory computer-readable storage medium according to claim 22, wherein the processor being caused to store the attribute values of the graph data that are represented in the binary forms according to a byte group sequence format that matches the number of determined attribute byte groups comprises being caused to:
store the attribute values of the graph data that are represented in the binary forms in corresponding attribute byte groups in the byte group sequence format;
determine values of the data stored in the null value determining byte group in the byte group sequence format based on data stored in the attribute byte groups in the byte group sequence format; and
store the determined values in the null value determining byte group.

### Claim 24 (depends on 21)

The non-transitory computer-readable storage medium according to claim 21, wherein the schemas are further used to indicate data type needs of the attributes for corresponding attribute values; and
the byte group sequence format that matches the number of determined attribute byte groups is constructed in the following manner:
constructing, based on a data type need corresponding to each attribute byte group in the number of attribute byte groups, a unit byte group that matches the data type need; and
constructing the byte group sequence format that matches the number of determined attribute byte groups based on a combination of constructed unit byte groups.

### Claim 25 (depends on 24)

The non-transitory computer-readable storage medium according to claim 24, wherein the unit byte group comprises at least one of a first data type byte group and a second data type byte group, and the constructing, based on a data type need corresponding to each attribute byte group in the number of attribute byte groups, a unit byte group that matches the data type need comprises:
if the data type need corresponding to the attribute byte group indicates that an attribute value belongs to a first data type, constructing the first data type byte group, wherein the first data type byte group is used to store an attribute value that belongs to the first data type in the graph data; or
if the data type need corresponding to the attribute byte group indicates that an attribute value belongs to a second data type, constructing the second data type byte group, wherein the second data type byte group is used to store storage location information of an attribute value that belongs to the second data type in the graph data.
