Skip to content

Instantly share code, notes, and snippets.

@colltoaction
Created July 8, 2023 17:36
Show Gist options
  • Save colltoaction/cba0f5fcd60aed133fbfbfd90e296e93 to your computer and use it in GitHub Desktop.
Save colltoaction/cba0f5fcd60aed133fbfbfd90e296e93 to your computer and use it in GitHub Desktop.
Modeling graph data in YAML can be done considering a graph representation. Although there is no explicit schema, one can get an immediate sense of this model.
# https://neo4j.com/docs/getting-started/data-modeling/guide-data-modeling/
Person:
Tom Hanks:
Born: 1956
Hugo Weaving:
Born: 1960
Lana Wachowski:
Born: 1965
Movie:
The Matrix:
Released: 1999
Cloud Altas:
Released: 2012
---
Acted in role:
Zachry:
Movie: Cloud Atlas
Person: Tom Hanks
Agent Smith:
Movie: The Matrix
Person: Hugo Weaving
Bill Smoke:
Movie: Cloud Atlas
Person: Hugo Weaving
Directed:
Lana Wachowski:
Cloud Atlas:
The Matrix:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment