Training: Instruction to develop new skills.
In a graph database, social media users and followers are modeled as structured data.
Reasoning:
- A graph database uses a well-defined data model: nodes (entities), edges (relationships), and properties (key-value pairs).
- In a social network graph:
- Each user is typically a node (for example, a
Personnode with properties likefirstName,lastName,age). - The follower/following relationship is an edge (for example,
FRIENDS_WITHorFOLLOWS) connecting two user nodes, possibly with properties (such assincedate).
- Each user is typically a node (for example, a
- This is a structured representation because the types of nodes, edges, and properties follow a consistent schema or schema-optional model, even if not all properties are present on every node.
Semi-structured data, by contrast, is typically represented in formats like JSON, where fields can vary between records and the schema is not strictly enforced by the storage engine. Graph databases can ingest semi-structured sources, but once data is stored as nodes and edges with properties, it is treated as structured graph data.
References: