# US 10,956,499 B2 · Efficient property graph storage for streaming/multi-versioning graphs

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

- Number: US 10,956,499 B2
- Document ID: US10956499B2
- Status: Granted
- Kind: B2
- Application number: 15/264,570
- Filed: 2016-09-13
- Published: 2018-03-15
- Granted: 2021-03-23
- Earliest claimed: 2016-09-13
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Ching-Yung Lin; Yanbin Liu; Lifeng Nai; Wei Tan; Ilie G. Tanase; Yinglong Xia
- Web page: https://patentgrep.com/patent/US10956499B2

## CPC

- G06F 16/9024: {Graphs; Linked lists (G06F16/9027 takes precedence)}
- G06F 16/28: Databases characterised by their database models, e.g. relational or object models
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A data storage and retrieval system for a computer memory includes a stream graph engine extracting graph data from streaming data, the graph data occupying a sliding window and comprising a plurality of slices representing a set of contiguous graphs, and where each slice of the plurality of slices corresponds to a given graph structure and its properties at a particular time, the stream graph engine causing the computer memory to store an on-disk portion of the graph data including a key table, a timestamp table and a plurality of property files, wherein the key table comprises a plurality of pointers to corresponding entries of the timestamp table, wherein each of the entries of the timestamp table comprise a corresponding timestamp and a pointer to the properties files, wherein the properties files comprise properties of a corresponding graph of the set of contiguous graphs, an in-memory portion of the graph data having a cache data structure storing a subset of the key table, and a versioning control module storing evolving changes in the graph data in the computer memory.

## Claims

### Claim 1

A data storage and retrieval system for a computer memory, comprising:
a stream graph engine extracting graph data from streaming data, said graph data occupying a sliding window and comprising a plurality of slices representing a set of contiguous graphs, and where each slice of said plurality of slices corresponds to a respective one of said contiguous graphs and its properties at a particular time, said stream graph engine causing said computer memory to store:
an on-disk portion of said graph data including a key table, a timestamp table and a plurality of property files, wherein said key table comprises a plurality of pointers to corresponding entries of said timestamp table, wherein each of said entries of said timestamp table comprise a corresponding timestamp and a pointer to said properties files, wherein said properties files store said properties of a corresponding one of said contiguous graphs; and
an in-memory portion of said graph data having a cache data structure storing a subset of said key table comprising a subset of said plurality of pointers to corresponding entries of said timestamp table,
wherein said storing comprises writing each slice synchronously to said on-disk portion and said in-memory portion; and
a versioning control module storing evolving changes in said graph data between said slices and controlling a size of said sliding window,
wherein said contiguous graphs comprise a plurality of edges and a plurality of vertices, and properties of each edge and each vertex are stored across a plurality of property bundles as said evolving changes organized by timestamp, wherein all of said properties of a given edge or vertex at a given timestamp are addressed by a respective individual entry corresponding to one of the bundles in a timestamp table.

### Claim 2 (depends on 1)

The data storage and retrieval system of claim 1, wherein said properties of said corresponding one of said contiguous graphs are addressed as a bundle.

### Claim 3 (depends on 1)

The data storage and retrieval system of claim 1, wherein said versioning control module uses temporal versioning.

### Claim 4 (depends on 1)

The data storage and retrieval system of claim 1, wherein said versioning control module generates said corresponding timestamps.

### Claim 5 (depends on 1)

The data storage and retrieval system of claim 1, wherein said corresponding timestamps relate to respective versions of said graph data, and wherein said versioning control module controls a number of said versions of said graph data stored by maintaining said size of said sliding window.

### Claim 6

A method for operating a data storage and retrieval system for a computer memory, said method comprising:
extracting, by a stream graph engine, graph data from streaming data, said graph data occupying a sliding window and comprising a plurality of slices representing a set of contiguous graphs, and where each slice of said plurality of slices corresponds to a respective one of said contiguous graphs and its properties at a particular time;
storing, by said stream graph engine, an on-disk portion of said graph data including a key table, a timestamp table and a plurality of property files, wherein said key table comprises a plurality of pointers to corresponding entries of said timestamp table, wherein each of said entries of said timestamp table comprise a corresponding timestamp and a pointer to said properties files, wherein said properties files store said properties of a corresponding one of said contiguous graphs;
storing, by said stream graph engine, an in-memory portion of said graph data having a cache data structure storing a subset of said key table comprising a subset of said plurality of pointers to corresponding entries of said timestamp table,
wherein for each slice, said storing of said on-disk portion and said storing of said in-memory portion are performed synchronously; and
storing in said computer memory, by a versioning control module, newly extracted graph data from the streaming data in said graph data as evolving changes in said graph data between said slices and controlling a size of said sliding window,
wherein said contiguous graphs comprise a plurality of edges and a plurality of vertices, and properties of each edge and each vertex are stored across a plurality of property bundles as said evolving changes organized by timestamp, wherein all of said properties of a given edge or vertex at a given timestamp are addressed by a respective individual entry corresponding to one of the bundles in a timestamp table.

### Claim 7 (depends on 6)

The method of claim 6, further comprising addressing at least one of said property bundles.

### Claim 8 (depends on 6)

The method of claim 6, further comprising performing, by said versioning control module uses, temporal versioning for said storing of said evolving changes in said graph data.

### Claim 9 (depends on 6)

The method of claim 6, further comprising generating, by said versioning control module, said corresponding timestamps.

### Claim 10 (depends on 6)

The method of claim 6, wherein said corresponding timestamps relate to respective versions of said graph data, and wherein said versioning control module controls a number of said versions of said graph data stored by maintaining a size of said sliding window.

### Claim 11

A non-transitory computer readable medium comprising computer executable instructions which when executed by a computer cause the computer to perform a method for operating a data storage and retrieval system for a computer memory, said method comprising:
extracting, by a stream graph engine, graph data from streaming data, said graph data occupying a sliding window and comprising a plurality of slices representing a set of contiguous graphs, and where each slice of said plurality of slices corresponds to a respective one of said contiguous graphs and its properties at a particular time;
storing, by said stream graph engine, an on-disk portion of said graph data including a key table, a timestamp table and a plurality of property files, wherein said key table comprises a plurality of pointers to corresponding entries of said timestamp table, wherein each of said entries of said timestamp table comprise a corresponding timestamp and a pointer to said properties files, wherein said properties files store said properties of a corresponding one of said contiguous graphs;
storing, by said stream graph engine, an in-memory portion of said graph data having a cache data structure storing a subset of said key table comprising a subset of said plurality of pointers to corresponding entries of said timestamp table,
wherein for each slice, said storing of said on-disk portion and said storing of said in-memory portion are performed synchronously; and
storing in said computer memory, by a versioning control module, newly extracted graph data from the streaming data in said graph data as evolving changes in said graph data between said slices and controlling a size of said sliding window,
wherein said contiguous graphs comprise a plurality of edges and a plurality of vertices, and properties of each edge and each vertex are stored across a plurality of property bundles as said evolving changes organized by timestamp, wherein all of said properties of a given edge or vertex at a given timestamp are addressed by a respective individual entry corresponding to one of the bundles in a timestamp table.

### Claim 12 (depends on 11)

The computer readable medium of claim 11, further comprising addressing, by said stream graph engine, at least one of said property bundles.

### Claim 13 (depends on 11)

The computer readable medium of claim 11, further comprising performing, by said versioning control module uses, temporal versioning for said storing of said evolving changes in said graph data.

### Claim 14 (depends on 11)

The computer readable medium of claim 11, further comprising generating, by said versioning control module, said corresponding timestamps.

### Claim 15 (depends on 11)

The computer readable medium of claim 11, wherein said corresponding timestamps relate to respective versions of said graph data, and wherein said versioning control module controls a number of said versions of said graph data stored by maintaining a size of said sliding window.
