tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spmalle...@apache.org
Subject svn commit: r1768964 - in /tinkerpop/site: gremlin.html index.html
Date Wed, 09 Nov 2016 13:55:05 GMT
Author: spmallette
Date: Wed Nov  9 13:55:05 2016
New Revision: 1768964

URL: http://svn.apache.org/viewvc?rev=1768964&view=rev
Log:
Deploy TinkerPop homepage

Modified:
    tinkerpop/site/gremlin.html
    tinkerpop/site/index.html

Modified: tinkerpop/site/gremlin.html
URL: http://svn.apache.org/viewvc/tinkerpop/site/gremlin.html?rev=1768964&r1=1768963&r2=1768964&view=diff
==============================================================================
--- tinkerpop/site/gremlin.html (original)
+++ tinkerpop/site/gremlin.html Wed Nov  9 13:55:05 2016
@@ -366,10 +366,10 @@ g.V().hasLabel("person").
        <div class="col-sm-5 col-md-4">
           <pre style="padding:10px;">
 <code class="language-gremlin">g.V().has("name","gremlin").as("a").
-out("created").in("created").
-where(neq("a")).
-in("manages").
-groupCount().by("name")</code>
+  out("created").in("created").
+    where(neq("a")).
+  in("manages").
+  groupCount().by("name")</code>
 </pre>
        </div>
     </div>
@@ -378,13 +378,13 @@ groupCount().by("name")</code>
        <div class="col-sm-5 col-md-4">
           <pre style="padding:10px;">
 <code class="language-gremlin">g.V().match(
-as("a").has("name","gremlin"),
-as("a").out("created").as("b"),
-as("b").in("created").as("c"),
-as("c").in("manages").as("d"),
-where("a",neq("c"))).
-select("d").
-groupCount().by("name")</code>
+  as("a").has("name","gremlin"),
+  as("a").out("created").as("b"),
+  as("b").in("created").as("c"),
+  as("c").in("manages").as("d"),
+    where("a",neq("c"))).
+  select("d").
+  groupCount().by("name")</code>
 </pre>
        </div>
        <div class="col-sm-7 col-md-8">
@@ -429,17 +429,17 @@ groupCount().by("name")</code>
        <br/><br/>
        <div class="col-md-5">
           <pre style="padding:10px;"><code class="language-gremlin">public class
GremlinTinkerPopExample {
-public void run(String name, String property) {
+  public void run(String name, String property) {
 
-Graph graph = GraphFactory.open(...);
-GraphTraversalSource g = graph.traversal();
+    Graph graph = GraphFactory.open(...);
+    GraphTraversalSource g = graph.traversal();
 
-double avg = g.V().has("name",name).
-           out("knows").out("created").
-           values(property).mean().next();
+    double avg = g.V().has("name",name).
+                   out("knows").out("created").
+                   values(property).mean().next();
 
-System.out.println("Average rating: " + avg);
-}
+    System.out.println("Average rating: " + avg);
+  }
 }
 
 
@@ -448,20 +448,20 @@ System.out.println("Average rating: " +
        </div>
        <div class="col-md-7">
           <pre style="padding:10px;"><code class="language-gremlin">public class
SqlJdbcExample {
-public void run(String name, String property) {
+  public void run(String name, String property) {
 
-Connection connection = DriverManager.getConnection(...)
-Statement statement = connection.createStatement();
-ResultSet result = statement.executeQuery(
-"SELECT AVG(pr." + property + ") as AVERAGE FROM PERSONS p1" +
-"INNER JOIN KNOWS k ON k.person1 = p1.id " +
-"INNER JOIN PERSONS p2 ON p2.id = k.person2 " +
-"INNER JOIN CREATED c ON c.person = p2.id " +
-"INNER JOIN PROJECTS pr ON pr.id = c.project " +
-  "WHERE p.name = '" + name + "');
+    Connection connection = DriverManager.getConnection(...)
+    Statement statement = connection.createStatement();
+    ResultSet result = statement.executeQuery(
+      "SELECT AVG(pr." + property + ") as AVERAGE FROM PERSONS p1" +
+        "INNER JOIN KNOWS k ON k.person1 = p1.id " +
+        "INNER JOIN PERSONS p2 ON p2.id = k.person2 " +
+        "INNER JOIN CREATED c ON c.person = p2.id " +
+        "INNER JOIN PROJECTS pr ON pr.id = c.project " +
+          "WHERE p.name = '" + name + "');
 
-System.out.println("Average rating: " + result.next().getDouble("AVERAGE")
-}
+    System.out.println("Average rating: " + result.next().getDouble("AVERAGE")
+  }
 }</code>
 </pre>
        </div>

Modified: tinkerpop/site/index.html
URL: http://svn.apache.org/viewvc/tinkerpop/site/index.html?rev=1768964&r1=1768963&r2=1768964&view=diff
==============================================================================
--- tinkerpop/site/index.html (original)
+++ tinkerpop/site/index.html Wed Nov  9 13:55:05 2016
@@ -362,6 +362,7 @@ limitations under the License.
             <li><a href="https://console.ng.bluemix.net/catalog/services/ibm-graph/">IBM
Graph</a> - OLTP graph database as a service.</li>
             <li><a href="http://tinkerpop.apache.org/docs/currentg/#neo4j-gremlin">Neo4j</a>
- OLTP graph database (embedded).</li>
             <li><a href="https://github.com/SteelBridgeLabs/neo4j-gremlin-bolt">neo4j-gremlin-bolt</a>
- OLTP graph database (using Bolt Protocol).</li>
+            <li><a href="https://github.com/orientechnologies/orientdb-gremlin">OrientDB</a>
- OLTP graph database</li>
             <li><a href="https://github.com/pietermartin/sqlg">Sqlg</a>
- RDBMS OLTP implementation with HSQLDB and Postresql support.</li>
             <li><a href="http://stardog.com/">Stardog</a> - RDF graph database
with OLTP and OLAP support.</li>
             <li><a href="http://tinkerpop.apache.org/docs/current/reference/#tinkergraph-gremlin">TinkerGraph</a>
- In-memory OLTP and OLAP reference implementation.</li>



Mime
View raw message