You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by fl...@apache.org on 2022/01/14 15:35:36 UTC
svn commit: r1897040 [1/2] - in /tinkerpop/site: gremlin.html gremlint/asset-manifest.json gremlint/index.html gremlint/static/js/main.22d2ae54.chunk.js gremlint/static/js/main.22d2ae54.chunk.js.map index.html
Author: florianhockmann
Date: Fri Jan 14 15:35:36 2022
New Revision: 1897040
URL: http://svn.apache.org/viewvc?rev=1897040&view=rev
Log:
Deploy TinkerPop homepage
Added:
tinkerpop/site/gremlint/static/js/main.22d2ae54.chunk.js
tinkerpop/site/gremlint/static/js/main.22d2ae54.chunk.js.map
Modified:
tinkerpop/site/gremlin.html
tinkerpop/site/gremlint/asset-manifest.json
tinkerpop/site/gremlint/index.html
tinkerpop/site/index.html
Modified: tinkerpop/site/gremlin.html
URL: http://svn.apache.org/viewvc/tinkerpop/site/gremlin.html?rev=1897040&r1=1897039&r2=1897040&view=diff
==============================================================================
--- tinkerpop/site/gremlin.html (original)
+++ tinkerpop/site/gremlin.html Fri Jan 14 15:35:36 2022
@@ -26,6 +26,7 @@ limitations under the License.
<link href="css/custome.css" rel="stylesheet">
<link href="css/responsive.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.1/animate.css" integrity="sha512-K2J6Yt6ElUYEMPcTr0wm555AAyiqkgYiUgPIW18FT88/aYSNDk0EvGjsln/TEu3ee/jaHf0xoXzFppSbBtUXbQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
+ <link href="css/prism.css" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700&display=swap" rel="stylesheet">
@@ -167,21 +168,22 @@ limitations under the License.
<div class="row">
<div class="col-md-6 mb-4 mb-md-0">
<div class="code-box h-100">
- <code>
- <p class="comment-text mb-2">// What are the names of Gremlin's Friends?</p>
- <span class="text-purpal">g</span><span class="text-blue">.V</span><span class="text-success">().</span><span class="text-blue">has</span><span class="text-success">("name","gremlin").</span>
- <br> <span class="text-blue">out</span><span class="text-success">("knows").out("knows").</span><span class="text-blue">values</span><span class="text-success">("name")</span>
- </code>
- </div>
+ <pre style="padding-left:10px;height:148px;overflow:hidden;"><code class="language-groovy">
+g.V().has("name","gremlin").
+ out("knows").
+ out("knows").
+ values("name")
+
+ </code></pre>
+ </div>
</div>
<div class="col-md-6">
- <p class="bold mb-2 text-white">Get a ranked list of relevant products for Gremlin to purchase.</p>
+ <p class="bold mb-2 text-white">What are the names of Gremlin's friends' friends?</p>
<ul class="list-unstyled text-white op-7">
- <li class="mb-1">1. Get the vertex with the name "gremlin." </li>
- <li class="mb-1">2. Get the products Gremlin has purchased and save as "stash."</li>
- <li class="mb-1">3. Who else bought those products and what else did they buy... </li>
- <li class="mb-1">4. ...that Gremlin has not already purchased.</li>
- <li class="mb-1"> 5. Group count the products and order by their relevance.</li>
+ <li class="mb-1">1. Get the vertex with name "gremlin."</li>
+ <li class="mb-1">2. Traverse to the people that Gremlin knows.</li>
+ <li class="mb-1">3. Traverse to the people those people know.</li>
+ <li class="mb-1">4. Get those people's names.</li>
</ul>
</div>
</div>
@@ -191,21 +193,22 @@ limitations under the License.
<div class="row">
<div class="col-md-6 mb-4 mb-md-0">
<div class="code-box h-100">
- <code>
- <p class="comment-text mb-2">// What are the names of Gremlin's Friends?</p>
- <span class="text-purpal">g</span><span class="text-blue">.V</span><span class="text-success">().</span><span class="text-blue">has</span><span class="text-success">("name","gremlin").</span>
- <br> <span class="text-blue">out</span><span class="text-success">("knows").out("knows").</span><span class="text-blue">values</span><span class="text-success">("name")</span>
- </code>
- </div>
+ <pre style="padding-left:10px;height:148px;overflow:hidden;"><code class="language-groovy">g.V().match(
+ as("a").out("knows").as("b"),
+ as("a").out("created").as("c"),
+ as("b").out("created").as("c"),
+ as("c").in("created").count().is(2)).
+ select("c").by("name")</code></pre>
+ </div>
</div>
<div class="col-md-6">
- <p class="bold mb-2 text-white">Get a ranked list of relevant products for Gremlin to purchase.</p>
+ <p class="bold mb-2 text-white">What are the names of the projects created by two friends?</p>
<ul class="list-unstyled text-white op-7">
- <li class="mb-1">1. Get the vertex with the name "gremlin." </li>
- <li class="mb-1">2. Get the products Gremlin has purchased and save as "stash."</li>
- <li class="mb-1">3. Who else bought those products and what else did they buy... </li>
- <li class="mb-1">4. ...that Gremlin has not already purchased.</li>
- <li class="mb-1"> 5. Group count the products and order by their relevance.</li>
+ <li class="mb-1">1. ...there exists some "a" who knows "b".</li>
+ <li class="mb-1">2. ...there exists some "a" who created "c".</li>
+ <li class="mb-1">3. ...there exists some "b" who created "c".</li>
+ <li class="mb-1">4. ...there exists some "c" created by 2 people.</li>
+ <li class="mb-1">5. Get the name of all matching "c" projects.</li>
</ul>
</div>
</div>
@@ -214,21 +217,22 @@ limitations under the License.
<div class="row">
<div class="col-md-6 mb-4 mb-md-0">
<div class="code-box h-100">
- <code>
- <p class="comment-text mb-2">// What are the names of Gremlin's Friends?</p>
- <span class="text-purpal">g</span><span class="text-blue">.V</span><span class="text-success">().</span><span class="text-blue">has</span><span class="text-success">("name","gremlin").</span>
- <br> <span class="text-blue">out</span><span class="text-success">("knows").out("knows").</span><span class="text-blue">values</span><span class="text-success">("name")</span>
- </code>
- </div>
+ <pre style="padding-left:10px;height:148px;overflow:hidden;"><code class="language-groovy">
+g.V().has("name","gremlin").
+ repeat(in("manages")).
+ until(has("title","ceo")).
+ path().by("name")
+
+</code></pre>
+ </div>
</div>
<div class="col-md-6">
- <p class="bold mb-2 text-white">Get a ranked list of relevant products for Gremlin to purchase.</p>
+ <p class="bold mb-2 text-white">Get the managers from Gremlin to the CEO in the hierarchy.</p>
<ul class="list-unstyled text-white op-7">
- <li class="mb-1">1. Get the vertex with the name "gremlin." </li>
- <li class="mb-1">2. Get the products Gremlin has purchased and save as "stash."</li>
- <li class="mb-1">3. Who else bought those products and what else did they buy... </li>
- <li class="mb-1">4. ...that Gremlin has not already purchased.</li>
- <li class="mb-1"> 5. Group count the products and order by their relevance.</li>
+ <li class="mb-1">1. Get the vertex with the name "gremlin."</li>
+ <li class="mb-1">2. Traverse up the management chain...</li>
+ <li class="mb-1">3. ...until a person with the title of CEO is reached.</li>
+ <li class="mb-1">4. ...Get name of the managers in the path traversed.</li>
</ul>
</div>
</div>
@@ -237,21 +241,22 @@ limitations under the License.
<div class="row">
<div class="col-md-6 mb-4 mb-md-0">
<div class="code-box h-100">
- <code>
- <p class="comment-text mb-2">// What are the names of Gremlin's Friends?</p>
- <span class="text-purpal">g</span><span class="text-blue">.V</span><span class="text-success">().</span><span class="text-blue">has</span><span class="text-success">("name","gremlin").</span>
- <br> <span class="text-blue">out</span><span class="text-success">("knows").out("knows").</span><span class="text-blue">values</span><span class="text-success">("name")</span>
- </code>
- </div>
+ <pre style="padding-left:10px;height:148px;overflow:hidden;"><code class="language-groovy">
+g.V().has("name","gremlin").as("a").
+ out("created").in("created").
+ where(neq("a")).
+ groupCount().by("title")
+
+</code></pre>
+ </div>
</div>
<div class="col-md-6">
- <p class="bold mb-2 text-white">Get a ranked list of relevant products for Gremlin to purchase.</p>
+ <p class="bold mb-2 text-white">Get the distribution of titles amongst Gremlin's collaborators.</p>
<ul class="list-unstyled text-white op-7">
- <li class="mb-1">1. Get the vertex with the name "gremlin." </li>
- <li class="mb-1">2. Get the products Gremlin has purchased and save as "stash."</li>
- <li class="mb-1">3. Who else bought those products and what else did they buy... </li>
- <li class="mb-1">4. ...that Gremlin has not already purchased.</li>
- <li class="mb-1"> 5. Group count the products and order by their relevance.</li>
+ <li class="mb-1">1. Get the vertex with the name "gremlin" and label it "a."</li>
+ <li class="mb-1">2. Get Gremlin's created projects and then who created them...</li>
+ <li class="mb-1">3. ...that are not Gremlin.</li>
+ <li class="mb-1">4. Group count those collaborators by their titles.</li>
</ul>
</div>
</div>
@@ -260,21 +265,22 @@ limitations under the License.
<div class="row">
<div class="col-md-6 mb-4 mb-md-0">
<div class="code-box h-100">
- <code>
- <p class="comment-text mb-2">// What are the names of Gremlin's Friends?</p>
- <span class="text-purpal">g</span><span class="text-blue">.V</span><span class="text-success">().</span><span class="text-blue">has</span><span class="text-success">("name","gremlin").</span>
- <br> <span class="text-blue">out</span><span class="text-success">("knows").out("knows").</span><span class="text-blue">values</span><span class="text-success">("name")</span>
- </code>
- </div>
+ <pre style="padding-left:10px;height:148px;overflow:hidden;"><code class="language-groovy">g.V().has("name","gremlin").
+ out("bought").aggregate("stash").
+ in("bought").out("bought").
+ where(not(within("stash"))).
+ groupCount().order(local).by(values,desc)
+</code></pre>
+ </div>
</div>
<div class="col-md-6">
<p class="bold mb-2 text-white">Get a ranked list of relevant products for Gremlin to purchase.</p>
<ul class="list-unstyled text-white op-7">
- <li class="mb-1">1. Get the vertex with the name "gremlin." </li>
+ <li class="mb-1">1. Get the vertex with the name "gremlin."</li>
<li class="mb-1">2. Get the products Gremlin has purchased and save as "stash."</li>
- <li class="mb-1">3. Who else bought those products and what else did they buy... </li>
+ <li class="mb-1">3. Who else bought those products and what else did they buy...</li>
<li class="mb-1">4. ...that Gremlin has not already purchased.</li>
- <li class="mb-1"> 5. Group count the products and order by their relevance.</li>
+ <li class="mb-1">5. Group count the products and order by their relevance.</li>
</ul>
</div>
</div>
@@ -597,6 +603,7 @@ limitations under the License.
integrity="sha512-Eak/29OTpb36LLo2r47IpVzPBLXnAMPAVypbSZiZ4Qkf8p/7S/XRG5xp7OKWPPYfJT6metI+IORkR5G8F900+g=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="js/my.js"></script>
+ <script src="js/prism.js"></script>
</body>
</html>
Modified: tinkerpop/site/gremlint/asset-manifest.json
URL: http://svn.apache.org/viewvc/tinkerpop/site/gremlint/asset-manifest.json?rev=1897040&r1=1897039&r2=1897040&view=diff
==============================================================================
--- tinkerpop/site/gremlint/asset-manifest.json (original)
+++ tinkerpop/site/gremlint/asset-manifest.json Fri Jan 14 15:35:36 2022
@@ -1,8 +1,8 @@
{
"files": {
"main.css": "/gremlint/static/css/main.39910e18.chunk.css",
- "main.js": "/gremlint/static/js/main.b5a6548c.chunk.js",
- "main.js.map": "/gremlint/static/js/main.b5a6548c.chunk.js.map",
+ "main.js": "/gremlint/static/js/main.22d2ae54.chunk.js",
+ "main.js.map": "/gremlint/static/js/main.22d2ae54.chunk.js.map",
"runtime-main.js": "/gremlint/static/js/runtime-main.18590063.js",
"runtime-main.js.map": "/gremlint/static/js/runtime-main.18590063.js.map",
"static/js/2.7ab90129.chunk.js": "/gremlint/static/js/2.7ab90129.chunk.js",
@@ -19,6 +19,6 @@
"static/js/runtime-main.18590063.js",
"static/js/2.7ab90129.chunk.js",
"static/css/main.39910e18.chunk.css",
- "static/js/main.b5a6548c.chunk.js"
+ "static/js/main.22d2ae54.chunk.js"
]
}
\ No newline at end of file
Modified: tinkerpop/site/gremlint/index.html
URL: http://svn.apache.org/viewvc/tinkerpop/site/gremlint/index.html?rev=1897040&r1=1897039&r2=1897040&view=diff
==============================================================================
--- tinkerpop/site/gremlint/index.html (original)
+++ tinkerpop/site/gremlint/index.html Fri Jan 14 15:35:36 2022
@@ -1 +1 @@
-<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/gremlint/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><meta name="google-site-verification" content="8rkkiQkZaBwVUAUBxSY6Nj_EBHqCGPEYnEJmlyXuLnw"/><link rel="apple-touch-icon" href="/gremlint/logo192.png"/><link rel="manifest" href="/gremlint/manifest.json"/><title>React App</title><link href="/gremlint/static/css/main.39910e18.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,i,a=r[0],c=r[1],l=r[2],s=0,p=[];s<a.length;s++)i=a[s],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(r);p.length;)p.shift()();return u.push.apply(u,l||[
]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var c=t[a];0!==o[c]&&(n=!1)}n&&(u.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},o={1:0},u=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{3:"aa78d2bd"}[e]+".chunk.js"}(e);var c=new Error;u=function(r){a.onerror=a.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,t[1](c)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:a})}),
12e4);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(r)},i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/gremlint/",i.oe=function(e){throw console.error(e),e};var a=this["webpackJsonpgremlint.com"]=this["webpackJsonpgremlint.com"]||[],c=a.push.bind(a);a.push=r,a=a.slice();for(va
r l=0;l<a.length;l++)r(a[l]);var f=c;t()}([])</script><script src="/gremlint/static/js/2.7ab90129.chunk.js"></script><script src="/gremlint/static/js/main.b5a6548c.chunk.js"></script></body></html>
\ No newline at end of file
+<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/gremlint/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><meta name="google-site-verification" content="8rkkiQkZaBwVUAUBxSY6Nj_EBHqCGPEYnEJmlyXuLnw"/><link rel="apple-touch-icon" href="/gremlint/logo192.png"/><link rel="manifest" href="/gremlint/manifest.json"/><title>React App</title><link href="/gremlint/static/css/main.39910e18.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,i,a=r[0],c=r[1],l=r[2],s=0,p=[];s<a.length;s++)i=a[s],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(r);p.length;)p.shift()();return u.push.apply(u,l||[
]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var c=t[a];0!==o[c]&&(n=!1)}n&&(u.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},o={1:0},u=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{3:"aa78d2bd"}[e]+".chunk.js"}(e);var c=new Error;u=function(r){a.onerror=a.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,t[1](c)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:a})}),
12e4);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(r)},i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/gremlint/",i.oe=function(e){throw console.error(e),e};var a=this["webpackJsonpgremlint.com"]=this["webpackJsonpgremlint.com"]||[],c=a.push.bind(a);a.push=r,a=a.slice();for(va
r l=0;l<a.length;l++)r(a[l]);var f=c;t()}([])</script><script src="/gremlint/static/js/2.7ab90129.chunk.js"></script><script src="/gremlint/static/js/main.22d2ae54.chunk.js"></script></body></html>
\ No newline at end of file
Added: tinkerpop/site/gremlint/static/js/main.22d2ae54.chunk.js
URL: http://svn.apache.org/viewvc/tinkerpop/site/gremlint/static/js/main.22d2ae54.chunk.js?rev=1897040&view=auto
==============================================================================
--- tinkerpop/site/gremlint/static/js/main.22d2ae54.chunk.js (added)
+++ tinkerpop/site/gremlint/static/js/main.22d2ae54.chunk.js Fri Jan 14 15:35:36 2022
@@ -0,0 +1,2 @@
[... 4 lines stripped ...]