主权项 |
1. A computer-implemented method for storing correlated data in a graph database, the method comprising:
storing, in the graph database, a first user node; associating the first user node with a first user profile and a first identifier, the first user profile associated with a first user, and the first user profile comprising information about the first user; in response to detecting a first request for creating a profile associated with a second user, the first request initiated by the first user:
storing, in the graph database, a first event node and a second user node;associating the first event node with the first user node through a first edge, the first edge indicating the first user node is a participant of the first event node;associating the first event node with the second user node through a second edge, the second edge indicating the second user node is a participant of the first event node; andassociating the first user node with the second user node through a third edge, the third edge relating the first user node and the second user node; in response to detecting an access of a content by the first user:
storing, in the graph database, a second event node and a first content node, the first content node associated with the content;associating the second event node with the first user node through a fourth edge, the fourth edge indicating the first user node is a participant of the second event node;associating the second event node with the first content node through a fifth edge, the fifth edge indicating the second event node uses the first content node; andassociating the first user node with the first content node through a sixth edge, the sixth edge indicating the first user node handles the first content node. |