Gremlin

Thu, 04 Aug 2022 17:42:32 GMT

Properties
Name Value
Identifier gremlin
Name Gremlin
Type Topic
Creation timestamp Thu, 04 Aug 2022 17:42:32 GMT
Modification timestamp Wed, 10 Aug 2022 09:20:27 GMT

Tags:  lpg

Gremlin is the graph traversal language of Apache TinkerPop. Gremlin is a functional, data-flow language that enables users to succinctly express complex traversals on (or queries of) their application's property graph. Every Gremlin traversal is composed of a sequence of (potentially nested) steps. A step performs an atomic operation on the data stream. Every step is either a map-step (transforming the objects in the stream), a filter-step (removing objects from the stream), or a sideEffect-step (computing statistics about the stream). The Gremlin step library extends on these 3-fundamental operations to provide users a rich collection of steps that they can compose in order to ask any conceivable question they may have of their data for Gremlin is Turing Complete.

Traversal Steps

  • Lambda steps (and derived steps)
    • map
      • id, label, match, path, select, order, ...
    • flatMap
      • coalesce, in, inE, inV, out, ...
    • filter
      • and, coin, has, is, or, where, ...
    • sideEffect
      • aggregate, inject, profile, property, subgraph, ...
    • branch
      • choose, repeat, union, ...
  • Other steps
    • barrier, cap, ...
  • Step modulators
    • as, by, emit, option, ...
  • Predicates
    • gt, eq, lt, neq, within, without, ...

Back to top