I did this talk at Nike Tech. This is a good foundation for graph databases and discusses the frameworks associated with DSE Graph. This addresses use case fit, property graph, terminology and gremlin.
26. PROPERTY GRAPHS
WHAT IS A PROPERTY GRAPH?
▸Directed, binary, attributed multi-graph
▸ Vertices
▸ Edges
▸ Properties
27. PROPERTY GRAPHS
VERTICES
▸ Always have unique ID & Label
▸ Can be attached to vertices
and edges
▸ Have name, value & so much
more
▸ Grossly Simplified Here
28. PROPERTY GRAPHS
VERTICES
▸ Always have unique ID & Label
▸ Can be attached to vertices
and edges
▸ Have name, value & so much
more
▸ Grossly Simplified Here
ME
29. PROPERTY GRAPHS
VERTICES
▸ Always have unique ID & Label
▸ Can be attached to vertices
and edges
▸ Have name, value & so much
more
▸ Grossly Simplified Here
YOUME
30. PROPERTY GRAPHS
EDGES
▸ Edges connect vertices with both
directionality and label
▸ They connect EXACTLY 2 vertices
and they always have direction…
▸ Unlike me in life…
▸ JK, I’m fine, really
HAHA,
FRIENDSHIP!
IKR?
YOUME FRIENDS
31. PROPERTY GRAPHS
PROPERTIES
▸ Where the Property Graph
gets its name
▸ K:V pairs
▸ Associated with any vertex
(entity) or edge (relationship)
in a property graph
YOUME
LOVES CATS
FRIENDS
32. PROPERTY GRAPHS
PROPERTIES
▸ Where the Property Graph
gets its name
▸ K:V pairs
▸ Associated with any vertex
(entity) or edge (relationship)
in a property graph
YOUME
HATES CATS
LOVES CATS
FRIENDS
37. PROPERTY GRAPHS
FINAL PROPERTY GRAPH
▸ We’ve built a nice story here
▸ But this is just a subgraph
▸ Our final property graph
comprises everything
YOUME
LOVES CATS
HATES CATS
LOVES BATMAN LOVES BATMAN
WATCHES
BATMAN ON FRI
WATCHES
BATMAN ON FRI
FRIENDS
38. PROPERTY GRAPHS
FINAL PROPERTY GRAPH
▸ We’ve built a nice story here
▸ But this is just a subgraph
▸ Our final property graph
comprises everything
YOUME
LOVES CATS
HATES CATS
LOVES BATMAN LOVES BATMAN
WATCHES
BATMAN ON FRI
WATCHES
BATMAN ON FRI
LOVES
JOHNNY
DEPP
FRIENDS
39. PROPERTY GRAPHS
FINAL PROPERTY GRAPH
▸ We’ve built a nice story here
▸ But this is just a subgraph
▸ Our final property graph
comprises everything
YOUME
LOVES CATS
HATES CATS
LOVES BATMAN LOVES BATMAN
WATCHES
BATMAN ON FRI
WATCHES
BATMAN ON FRI
HATES
JOHNNY DEPP
LOVES
JOHNNY
DEPP
FRIENDS
44. THE GREMLIN GRAPH TRAVERSAL LANGUAGE
WHAT’S THIS GREMLIN NOW?
▸ Gremlin is defined by Apache TinkerPop
▸ Expressive language to define traversals
▸ Yo, what good is a graph db if we can’t traverse it?
▸ Functional language with a fluent syntax
▸ Bindings in Groovy, Java8, Scala, Closure, and more
57. TRAVERSAL TYPES
LET’S JUST TALK ABOUT 1 TYPE OF GRAPH TRAVERSAL*
▸Simple
*WISH WE HAD TIME TO ADDRESS RECURSIVE & STATISTICAL TOO
BUT THAT WON’T LIKELY HAPPEN, I HAVE DEMOS ON THEM, IF WE
DO. WE JUST GOTTA PICK OUR POISONS WITH LIMITED TIME. :’(