This is an automated email from the ASF dual-hosted git repository.
xiazcy 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 11f6702919 CTR remove examples and add warning to unsupported GLVs and
transactions
11f6702919 is described below
commit 11f67029198aac028376a07e5b9da18c2a4823b8
Author: Yang Xia <[email protected]>
AuthorDate: Fri Nov 8 14:07:54 2024 -0800
CTR remove examples and add warning to unsupported GLVs and transactions
---
docs/src/reference/gremlin-variants.asciidoc | 3 ++
docs/src/reference/intro.asciidoc | 52 ----------------------------
docs/src/reference/the-traversal.asciidoc | 1 +
3 files changed, 4 insertions(+), 52 deletions(-)
diff --git a/docs/src/reference/gremlin-variants.asciidoc
b/docs/src/reference/gremlin-variants.asciidoc
index 881ce3a19e..994a326071 100644
--- a/docs/src/reference/gremlin-variants.asciidoc
+++ b/docs/src/reference/gremlin-variants.asciidoc
@@ -69,6 +69,7 @@ providing more detailed information about usage,
configuration and known limitat
[[gremlin-go]]
== Gremlin-Go
+WARNING: Gremlin-Go is not available in this Milestone release, please
consider testing with Java or Python.
image:gremlin-go.png[width=130,float=right] Apache TinkerPop's Gremlin-Go
implements Gremlin within the link:https://go.dev/[Go] language and can
therefore be used on different operating systems. Go's syntax has the similar
constructs as Java including
"dot notation" for function chaining (`a.b.c`) and round bracket function
arguments (`a(b,c)`). Something unlike Java is that Gremlin-Go requires a
@@ -1242,6 +1243,7 @@ All examples can then be run using your IDE of choice.
[[gremlin-javascript]]
== Gremlin-JavaScript
+WARNING: Gremlin-JavaScript is not available in this Milestone release, please
consider testing with Java or Python.
image:gremlin-js.png[width=130,float=right] Apache TinkerPop's
Gremlin-JavaScript implements Gremlin within the
JavaScript language. It targets Node.js runtime and can be used on different
operating systems on any Node.js 6 or
@@ -1690,6 +1692,7 @@ node modern-traversals.js
anchor:gremlin-DotNet[]
[[gremlin-dotnet]]
== Gremlin.Net
+WARNING: Gremlin.Net is not available in this Milestone release, please
consider testing with Java or Python.
image:gremlin-dotnet-logo.png[width=371,float=right] Apache TinkerPop's
Gremlin.Net implements Gremlin within the C#
language. It targets .NET Standard and can therefore be used on different
operating systems and with different .NET
diff --git a/docs/src/reference/intro.asciidoc
b/docs/src/reference/intro.asciidoc
index b4e6990a3b..947de8d670 100644
--- a/docs/src/reference/intro.asciidoc
+++ b/docs/src/reference/intro.asciidoc
@@ -399,19 +399,6 @@ import static
org.apache.tinkerpop.gremlin.process.traversal.AnonymousTraversalS
def g = traversal().with(
DriverRemoteConnection.using('localhost', 8182))
----
-[source,csharp]
-----
-include::../../../gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Docs/Reference/IntroTests.cs[tags=traversalSourceUsing]
-
-include::../../../gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Docs/Reference/IntroTests.cs[tags=traversalSourceCreation]
-----
-[source,javascript]
-----
-const traversal = gremlin.process.AnonymousTraversalSource.traversal;
-
-const g = traversal().with(
- new DriverRemoteConnection('ws://localhost:8182/gremlin'));
-----
[source,python]
----
from gremlin_python.process.anonymous_traversal_source import traversal
@@ -419,15 +406,6 @@ from gremlin_python.process.anonymous_traversal_source
import traversal
g = traversal().with(
DriverRemoteConnection('ws://localhost:8182/gremlin'))
----
-[source,go]
-----
-import (
- gremlingo "github.com/apache/tinkerpop/gremlin-go/v3/driver"
-)
-
-remote, err :=
gremlingo.NewDriverRemoteConnection("ws://localhost:8182/gremlin")
-g := gremlingo.Traversal_().With(remote)
-----
As shown in the embedded approach in the previous section, once "g" is
defined, writing Gremlin is structurally and
conceptually the same irrespective of programming language.
@@ -496,34 +474,18 @@ v1 = g.addV('person').property('name','marko').next()
v2 = g.addV('person').property('name','stephen').next()
g.V(v1).addE('knows').to(v2).property('weight',0.75).iterate()
----
-[source,csharp]
-----
-include::../../../gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Docs/Reference/IntroTests.cs[tags=basicGremlinAdds]
-----
[source,java]
----
Vertex v1 = g.addV("person").property("name","marko").next();
Vertex v2 = g.addV("person").property("name","stephen").next();
g.V(v1).addE("knows").to(v2).property("weight",0.75).iterate();
----
-[source,javascript]
-----
-const v1 = g.addV('person').property('name','marko').next();
-const v2 = g.addV('person').property('name','stephen').next();
-g.V(v1).addE('knows').to(v2).property('weight',0.75).iterate();
-----
[source,python]
----
v1 = g.addV('person').property('name','marko').next()
v2 = g.addV('person').property('name','stephen').next()
g.V(v1).addE('knows').to(v2).property('weight',0.75).iterate()
----
-[source,go]
-----
-v1, err := g.AddV("person").Property("name", "marko").Next()
-v2, err := g.AddV("person").Property("name", "stephen").Next()
-g.V(v1).AddE("knows").To(v2).Property("weight", 0.75).Iterate()
-----
The first two lines add a vertex each with the vertex label of "person" and
the associated "name" property. The third
line adds an edge with the "knows" label between them and an associated
"weight" property. Note the use of `next()`
@@ -541,30 +503,16 @@ Retrieving this data is also a just writing a Gremlin
statement:
marko = g.V().has('person','name','marko').next()
peopleMarkoKnows = g.V().has('person','name','marko').out('knows').toList()
----
-[source,csharp]
-----
-include::../../../gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Docs/Reference/IntroTests.cs[tags=basicGremlinMarkoKnows]
-----
[source,java]
----
Vertex marko = g.V().has("person","name","marko").next()
List<Vertex> peopleMarkoKnows =
g.V().has("person","name","marko").out("knows").toList()
----
-[source,javascript]
-----
-const marko = g.V().has('person','name','marko').next()
-const peopleMarkoKnows =
g.V().has('person','name','marko').out('knows').toList()
-----
[source,python]
----
marko = g.V().has('person','name','marko').next()
peopleMarkoKnows = g.V().has('person','name','marko').out('knows').toList()
----
-[source,go]
-----
-marko, err := g.V().Has("person", "name", "marko").Next()
-peopleMarkoKnows, err := g.V().Has("person", "name",
"marko").Out("knows").ToList()
-----
In all these examples presented so far there really isn't a lot of difference
in how the Gremlin itself looks. There
are a few language syntax specific odds and ends, but for the most part
Gremlin looks like Gremlin in all of the
diff --git a/docs/src/reference/the-traversal.asciidoc
b/docs/src/reference/the-traversal.asciidoc
index f03b3fee9e..bd4ea365c0 100644
--- a/docs/src/reference/the-traversal.asciidoc
+++ b/docs/src/reference/the-traversal.asciidoc
@@ -54,6 +54,7 @@ traversal strategies may not function properly.
[[transactions]]
== Traversal Transactions
+WARNING: Transaction is currently disabled in this Milestone release.
image:gremlin-coins.png[width=100,float=right] A
link:http://en.wikipedia.org/wiki/Database_transaction[database transaction]
represents a unit of work to execute against the database. A traversals unit
of work is affected by usage convention