This is an automated email from the ASF dual-hosted git repository.
spmallette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
The following commit(s) were added to refs/heads/master by this push:
new c17102e607 [docs] Fix typos in Intro to Gremlin page
new 3fa2f7ffd4 Merge pull request #1642 from li-boxuan/doc-fix-typo
c17102e607 is described below
commit c17102e607ed088ffcd722a3463973120cc70507
Author: Boxuan Li <[email protected]>
AuthorDate: Thu May 5 12:26:49 2022 -0400
[docs] Fix typos in Intro to Gremlin page
---
docs/site/home/gremlin.html | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/docs/site/home/gremlin.html b/docs/site/home/gremlin.html
index 901610f411..54b79c7e77 100644
--- a/docs/site/home/gremlin.html
+++ b/docs/site/home/gremlin.html
@@ -336,17 +336,17 @@ g.V().has("name","gremlin").as("a").
</code>
</div>
</div>
- <div class="col-md-12 col-lg-6">
+ <div class="col-md-12 col-lg-6">
<h2 class="ft-30 bold black mb-3 md-md-5">Imperative &
Declarative Traversals</h2>
- <p>A Gremlin traversal can be written in either an
imperative (procedural) manner, a declarative (descriptive) manner, or in a
hybrid manner containing both imperative and declarative aspects. An imperative
Gremlin traversal tells the traversers how to proceed at each step in the
traversal. For instance, the imperative traversal on the right first places a
traverser at the vertex denoting Gremlin. That traverser then splits itself
across all of Gremlin's collabora [...]
+ <p>A Gremlin traversal can be written in either an
imperative (procedural) manner, a declarative (descriptive) manner, or in a
hybrid manner containing both imperative and declarative aspects. An imperative
Gremlin traversal tells the traversers how to proceed at each step in the
traversal. For instance, the imperative traversal in the first box first places
a traverser at the vertex denoting Gremlin. That traverser then splits itself
across all of Gremlin's colla [...]
</div>
</div>
<div class="row mb-3 mb-md-5">
- <div class="col-md-12 col-lg-6 order-2 order-md-1">
- <p class="text-lg-end text-start">A declarative
Gremlin traversal does not tell the traversers the order in which to execute
their walk, but instead, allows each traverser to select a pattern to execute
from a collection of (potentially nested) patterns. The declarative traversal
on the left yields the same result as the imperative traversal above. However,
the declarative traversal has the added benefit that it leverages not only a
compile-time query planner (lik [...]
+ <div class="col-md-12 col-lg-6 order-2 order-md-1">
+ <p class="text-lg-end text-start">A declarative
Gremlin traversal does not tell the traversers the order in which to execute
their walk, but instead, allows each traverser to select a pattern to execute
from a collection of (potentially nested) patterns. The declarative traversal
in the second box yields the same result as the imperative traversal above.
However, the declarative traversal has the added benefit that it leverages not
only a compile-time query planne [...]
</div>
<div class="col-md-12 col-lg-6 mb-4 mb-lg-0 order-1
order-md-2">
<div class="code-box h-100">
@@ -420,9 +420,9 @@ g.V().has("name","gremlin").as("a").
<br> <span class="text-blue">System.out.printIn</span><span
class="text-success">("Average rating :" +</span><span
class="text-blue">avg</span><span class="text-success">);</span>
-
<br> <span class="text-success">}</span>
+
<br> <span class="text-blue">}</span>
-
<br> <span class="text-success">}</span>
+
<br> <span class="text-blue">}</span>
</code>
</div>
@@ -450,7 +450,7 @@ g.V().has("name","gremlin").as("a").
-
<br> <span class="text-blue">System.out.println(</span><span
class="text-success">"Average rating"</span><span
class="text-purpal">+</span><span
class="text-blue">result.next().getDouble(</span><span
class="text-success">"AVERAGE"</span><span class="text-blue">)</span>
+
<br> <span class="text-blue">System.out.println(</span><span
class="text-success">"Average rating"</span><span
class="text-purpal">+</span><span
class="text-blue">result.next().getDouble(</span><span
class="text-success">"AVERAGE"</span><span class="text-blue">));</span>
<br> <span class="text-blue">}</span>
@@ -479,7 +479,7 @@ g.V().has("name","gremlin").as("a").
<br><span
class="text-purpal">g</span><span class="text-blue"> =
traversal().withRemote(DriverRemoteConnection.using("<span
class="text-success">Localhost</span><span class="text-blue">",</span><span
class="text-purpal">8182</span><span class="text-blue">));</span>
<span class="comment-text">//remote</span></span>
- <br><span
class="text-purpal">g</span><span class="text-blue"> =
traversal().withEmbedded((graph).withComputer(SparkGraphComputer.<span
class="text-purpal">class</span><span class="text-blue">);</span>
<span class="comment-text">//distributed OLAP</span></span>
+ <br><span
class="text-purpal">g</span><span class="text-blue"> =
traversal().withEmbedded(graph).withComputer(SparkGraphComputer.<span
class="text-purpal">class</span><span class="text-blue">);</span>
<span class="comment-text">//distributed OLAP</span></span>
</code>