You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2016/11/09 15:32:04 UTC

[1/2] tinkerpop git commit: Fixed bad indentation in gremlin.html page CTR

Repository: tinkerpop
Updated Branches:
  refs/heads/master 2c68b8a52 -> 16268e2ff


Fixed bad indentation in gremlin.html page CTR


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/ab633ded
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/ab633ded
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/ab633ded

Branch: refs/heads/master
Commit: ab633ded15fba5d952149afc7e5357abdfbb6009
Parents: 2c68b8a
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Wed Nov 9 08:51:08 2016 -0500
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Wed Nov 9 08:51:08 2016 -0500

----------------------------------------------------------------------
 docs/site/home/gremlin.html | 62 ++++++++++++++++++++--------------------
 1 file changed, 31 insertions(+), 31 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/ab633ded/docs/site/home/gremlin.html
----------------------------------------------------------------------
diff --git a/docs/site/home/gremlin.html b/docs/site/home/gremlin.html
index 4a626ca..bedddf3 100644
--- a/docs/site/home/gremlin.html
+++ b/docs/site/home/gremlin.html
@@ -227,10 +227,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>
@@ -239,13 +239,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">
@@ -290,17 +290,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);
+  }
 }
 
 
@@ -309,20 +309,20 @@ System.out.println("Average rating: " + avg);
        </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>


[2/2] tinkerpop git commit: Added OrientDB to provider listing on home page CTR

Posted by sp...@apache.org.
Added OrientDB to provider listing on home page CTR


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/16268e2f
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/16268e2f
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/16268e2f

Branch: refs/heads/master
Commit: 16268e2ff978cddf0c103a674b65669acafefd56
Parents: ab633de
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Wed Nov 9 08:53:59 2016 -0500
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Wed Nov 9 08:53:59 2016 -0500

----------------------------------------------------------------------
 docs/site/home/index.html | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/16268e2f/docs/site/home/index.html
----------------------------------------------------------------------
diff --git a/docs/site/home/index.html b/docs/site/home/index.html
index bf061c3..46cc68e 100644
--- a/docs/site/home/index.html
+++ b/docs/site/home/index.html
@@ -223,6 +223,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>