November 2022
Intermediate to advanced
294 pages
5h 58m
English
Gremlin is a graph traversal language for property graphs that is being developed by the Apache TinkerPop project and is supported by various graph system vendors for both OLTP graph databases and OLAP graph processors.
Gremlin traverses the graph by following a sequence of steps, with each step performing a single operation on the data. The basic steps are transforms (which modify data), filters (which exclude data), or compute steps (which provide stats, and so on).
The Apache TinkerPop distribution is written in Java, and as such it supports a Groovy-based query syntax with methods for steps and method chaining for sequencing the steps. Here’s an example of a Gremlin query string piped into a Gremlin client:
| | iex> "g.V().hasLabel('Book').out().values('name').dedup()" ... |
Read now
Unlock full access