Labeled Property Graph Data Model

Outline

Core Components

  • Nodes (Vertices):
    • Represent the entities or objects in your domain (e.g., a person, a product, a city, or a bank account)
    • Analogous to nouns
  • Relationships (Directed Edges):
    • Represent how two nodes connect or interact (e.g., FRIENDS_WITH, PURCHASED, OWNS)
    • Always have a specific direction, a single start (tail/outgoing) node, and an end (head/incoming) target node, though they can be queried in either direction
    • Analogous to verbs
TOP              Created by Janusz R. Getta, CSCI235 Database Systems, Autumn 2027

Core Components

  • Labels:
    • Categorize or classify nodes and relationships into types or classes (e.g., a node with the label :Person or :Movie)
    • A single node can possess one or multiple labels to define different roles
  • Properties:
    • Key-value pairs attached directly to either nodes or relationships to store descriptive attributes (e.g., {name: "Alice", age: 30} on a node or {since: 2020} on an edge)
    • Keys are character strings, and values can be primitives like strings, numbers, or Booleans
    • Analogous to adjectives (for nodes) or adverbs (for relationships)
TOP              Created by Janusz R. Getta, CSCI235 Database Systems, Autumn 2027

Labeled Property Graph Data Model

Outline

References

  • Neo4j Graph Data Modeling Guide
  • Microsoft Fabric Graph Data Models
  • Besta, M., Gerstenberger, R., Peter, E., Fischer, M., Podstawski, M., Barthels, C., Alonso, G., & Hoefler, T. (2023). Demystifying Graph Databases: Analysis and Taxonomy of Data Organization, System Designs, and Graph Queries. ACM Computing Surveys, 56, 1-40
  • Gheerbrant, A., Libkin, L., Peterfreund, L., & Rogova, A. (2024). GQL and SQL/PGQ: Theoretical Models and Expressive Power. arXiv. https://doi.org/10.48550/arxiv.2409.01102
TOP              Created by Janusz R. Getta, CSCI235 Database Systems, Autumn 2027