tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ok...@apache.org
Subject svn commit: r1740430 - /incubator/tinkerpop/site/gremlin.html
Date Thu, 21 Apr 2016 23:58:44 GMT
Author: okram
Date: Thu Apr 21 23:58:44 2016
New Revision: 1740430

URL: http://svn.apache.org/viewvc?rev=1740430&view=rev
Log:
okay, now I'm done for the night. this is looking really good. tomorrow I will do providers.

Modified:
    incubator/tinkerpop/site/gremlin.html

Modified: incubator/tinkerpop/site/gremlin.html
URL: http://svn.apache.org/viewvc/incubator/tinkerpop/site/gremlin.html?rev=1740430&r1=1740429&r2=1740430&view=diff
==============================================================================
--- incubator/tinkerpop/site/gremlin.html (original)
+++ incubator/tinkerpop/site/gremlin.html Thu Apr 21 23:58:44 2016
@@ -9,7 +9,7 @@
       <meta charset="utf-8">
       <meta http-equiv="X-UA-Compatible" content="IE=edge">
       <meta name="viewport" content="width=device-width, initial-scale=1">
-      <title>Apache TinkerPop</title>
+      <title>Apache TinkerPop: The Gremlin Graph Traversal Machine and Language</title>
       <meta name="description" content="A Graph Computing Framework">
       <meta name="author" content="Apache TinkerPop">
       <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries
-->
@@ -226,7 +226,7 @@
             </div>
          </div>
          <br/>
-         <div style="border-radius:3px;border:1px solid black;padding:10px;padding-left:10px;height:192px"
id="gremlinCarousel" class="carousel slide" data-ride="carousel" data-interval="30000">
+         <div style="border-radius:3px;border:1px solid black;padding:10px;padding-left:10px;height:170px"
id="gremlinCarousel" class="carousel slide" data-ride="carousel" data-interval="30000">
             <!-- Indicators -->
             <ol class="carousel-indicators carousel-indicators-numbers">
                <li data-target="#gremlinCarousel" data-slide-to="0" class="active">1</li>
@@ -240,8 +240,7 @@
                <div class="item active">
                   <div class="row">
                      <div class="col-xs-5">
-                        <pre style="padding-left:10px;height:170px"><code class="language-javascript">
-        
+                        <pre style="padding-left:10px;height:148px;overflow:hidden;"><code
class="language-javascript">       
 g.V().has("name","gremlin").
   out("knows").
   out("knows").
@@ -249,8 +248,9 @@ g.V().has("name","gremlin").
   
           </code></pre>
                      </div>
-                     <div class="col-xs-5" style="border-left: thin solid #000000;height:170px">
+                     <div class="col-xs-7" style="border-left: thin solid #000000;height:148px">
                         <b>What are the names of Gremlin's friends' friends?</b>
+                        <p/>
                         <ol style="padding-left:20px">
                            <li>Get the vertex with name "gremlin."</li>
                            <li>Traverse to the people that Gremlin knows.</li>
@@ -264,7 +264,7 @@ g.V().has("name","gremlin").
                <div class="item">
                   <div class="row">
                      <div class="col-xs-5">
-                        <pre style="padding-left:10px;height:170px"><code class="language-javascript">
         
+                        <pre style="padding-left:10px;height:148px;overflow:hidden;"><code
class="language-javascript">          
 g.V().match(
   as("a").out("knows").as("b"),
   as("a").out("created").as("c"),
@@ -272,8 +272,9 @@ g.V().match(
   as("c").in("created").count().is(2)).
     select("c").by("name")</code></pre>
                      </div>
-                     <div class="col-xs-5" style="border-left: thin solid #000000;height:170px">
+                     <div class="col-xs-7" style="border-left: thin solid #000000;height:148px">
                         <b>What are the names of the projects created by two friends?</b>
+                        <p/>
                         <ol style="padding-left:20px">
                            <li>...there exists some "a" who knows "b".</li>
                            <li>...there exists some "a" who created "c".</li>
@@ -287,8 +288,7 @@ g.V().match(
                <div class="item">
                   <div class="row">
                      <div class="col-xs-5">
-                        <pre style="padding-left:10px;height:170px"><code class="language-javascript">

-          
+                        <pre style="padding-left:10px;height:148px;overflow:hidden;"><code
class="language-javascript">           
 g.V().has("name","gremlin").
   repeat(in("manages")).
     until(has("title","ceo")).
@@ -296,8 +296,9 @@ g.V().has("name","gremlin").
   
         </code></pre>
                      </div>
-                     <div class="col-xs-5" style="border-left: thin solid #000000;height:170px">
+                     <div class="col-xs-7" style="border-left: thin solid #000000;height:148px">
                         <b>Get the managers from Gremlin to the CEO in the hiearchy.</b>
+                        <p/>
                         <ol style="padding-left:20px">
                            <li>Get the vertex with the name "gremlin."</li>
                            <li>Traverse up the management chain...</li>
@@ -311,8 +312,7 @@ g.V().has("name","gremlin").
                <div class="item">
                   <div class="row">
                      <div class="col-xs-5">
-                        <pre style="padding-left:10px;height:170px"><code class="language-javascript">
-          
+                        <pre style="padding-left:10px;height:148px;overflow:hidden;"><code
class="language-javascript">         
 g.V().has("name","gremlin").as("a").
   out("created").in("created").
     where(neq("a")).
@@ -320,8 +320,9 @@ g.V().has("name","gremlin").as("a").
   
   </code></pre>
                      </div>
-                     <div class="col-xs-5" style="border-left: thin solid #000000;height:170px">
+                     <div class="col-xs-7" style="border-left: thin solid #000000;height:148px">
                         <b>Get the distribution of titles amongst Gremlin's collaborators.</b>
+                        <p/>
                         <ol style="padding-left:20px">
                            <li>Get the vertex with the name "gremlin" and label it
"a."</li>
                            <li>Get Gremlin's created projects and then who created
them...</li>
@@ -335,8 +336,7 @@ g.V().has("name","gremlin").as("a").
                <div class="item">
                   <div class="row">
                      <div class="col-xs-5">
-                        <pre style="padding-left:10px;height:170px"><code class="language-javascript">
-          
+                        <pre style="padding-left:10px;height:148px;overflow:hidden;"><code
class="language-javascript">         
 g.V().has("name","gremlin").
   out("bought").aggregate("stash").
   in("bought").out("bought").
@@ -344,8 +344,9 @@ g.V().has("name","gremlin").
   groupCount().order(local).by(values,decr)
   </code></pre>
                      </div>
-                     <div class="col-xs-5" style="border-left: thin solid #000000;height:170px">
+                     <div class="col-xs-7" style="border-left: thin solid #000000;height:148px">
                         <b>Get a ranked list of relevant products for Gremlin to purchase.</b>
+                        <p/>
                         <ol style="padding-left:20px">
                            <li>Get the vertex with the name "gremlin."</li>
                            <li>Get the products Gremlin has purchased and save as "stash."</li>
@@ -359,7 +360,7 @@ g.V().has("name","gremlin").
                <div class="item">
                   <div class="row">
                      <div class="col-xs-5">
-                        <pre style="padding-left:10px;height:170px"><code class="language-javascript">
       
+                        <pre style="padding-left:10px;height:148px;overflow:hidden;"><code
class="language-javascript">        
 g.V().hasLabel("person").
   pageRank().
     by("friendRank").
@@ -367,8 +368,9 @@ g.V().hasLabel("person").
   order().by("friendRank",decr).
   limit(10)</code></pre>
                      </div>
-                     <div class="col-xs-5" style="border-left: thin solid #000000;height:170px">
+                     <div class="col-xs-7" style="border-left: thin solid #000000;height:148px">
                         <b>Get the 10 most central people in the knows-graph.</b>
+                        <p/>
                         <ol style="padding-left:20px">
                            <li>Get all people vertices.</li>
                            <li>Calculate their PageRank using knows-edges.</li>
@@ -407,6 +409,7 @@ g.V().hasLabel("person").
                traversers to "go here and then go there" in an explicit, procedural manner.
             </div>
             <div class="col-xs-4">
+            <br/>
                <pre style="padding:10px;">
 <code class="language-javascript">g.V().has("name","gremlin").as("a").
   out("created").in("created").
@@ -431,6 +434,7 @@ g.V().hasLabel("person").
 </pre>
             </div>
             <div class="col-xs-7">
+            <br/>
                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 <a href="http://www.planettinkerpop.org/reference/#match-step">declarative
traversal</a> 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 (like imperative traversals),
but also a runtime query planner that chooses which traversal pattern to execute next based
on the 
@@ -498,7 +502,6 @@ g.V().hasLabel("person").
 }
 
 
-
 </code>
 </pre>
             </div>



Mime
View raw message