Skip to content

Commit 2981ac6

Browse files
committed
Formatting and minor edits
1 parent d05cd51 commit 2981ac6

File tree

4 files changed

+32
-33
lines changed

4 files changed

+32
-33
lines changed

book/Section-Beyond-Basic-Queries.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3452,7 +3452,7 @@ g.V().has('region','US-NM').
34523452
Given we calculated that there were 27 runways in New Mexico and 26 in Arizona we can
34533453
verify that we have the right result using the Gremlin Console.
34543454

3455-
[source,console]
3455+
[source,text]
34563456
----
34573457
gremlin> 27/26
34583458
@@ -5977,7 +5977,7 @@ g.V().has('region','US-TX').out().has('region','US-CA').
59775977
After you run the query, instead of showing you the results, Gremlin will show you
59785978
where the time was spent processing the components of the query.
59795979

5980-
[source,console]
5980+
[source,text]
59815981
----
59825982
Traversal Metrics
59835983
Step Count Traversers Time (ms) % Dur
@@ -6006,7 +6006,7 @@ g.V().has('airport','code','AUS').
60066006
Here is the 'profile' report. We truncated some of the text with '"..." so that it
60076007
will fit on a single page.
60086008

6009-
[source,console]
6009+
[source,text]
60106010
----
60116011
Traversal Metrics
60126012
Step Count Traversers Time (ms) % Dur

book/Section-Further-Reading.adoc

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,15 @@ Additional Apache TinkerPop community links
1313
.Official Apache TinkerPop home page and Gremlin downloads
1414
http://tinkerpop.apache.org/
1515

16-
.Apache TinkerPop Getting Started guide
17-
http://tinkerpop.apache.org/docs/current/tutorials/getting-started/
18-
19-
.Current Apache TinkerPop documentation
16+
.Current Apache TinkerPop Reference Documentation
2017
http://tinkerpop.apache.org/docs/current/reference/
2118

2219
.Apache TinkerPop JavaDoc API reference material
2320
http://tinkerpop.apache.org/javadocs/current/core/
2421

2522
http://tinkerpop.apache.org/javadocs/current/full/
2623

27-
.Gremlin IO serialization and file formats documentation
24+
.Gremlin serialization and file formats documentation
2825
http://tinkerpop.apache.org/docs/current/dev/io/
2926

3027
.Useful Gremlin "recipes"
@@ -36,6 +33,9 @@ http://tinkerpop.apache.org/docs/current/upgrade/
3633
.Apache TinkerPop documentation for graph database providers
3734
http://tinkerpop.apache.org/docs/current/dev/provider/
3835

36+
.Apache TinkerPop documentation for making contributions
37+
https://tinkerpop.apache.org/docs/current/dev/developer/
38+
3939
[[tutorials]]
4040
Tutorials
4141
There are a series of tutorials that can be found at the link below.
@@ -52,19 +52,18 @@ Gremlin's Anatomy::
5252
The Gremlin Console::
5353
* http://tinkerpop.apache.org/docs/current/tutorials/the-gremlin-console/
5454

55-
5655
[[gremlindiscussionlists]]
5756
=== Gremlin related mailing lists and discussion groups
5857

58+
.Apache Tinkerpop Discord Server
59+
https://discord.gg/tinkerpop
60+
5961
.Public mailing list for Gremlin users
6062
https://groups.google.com/forum/#!forum/gremlin-users
6163

6264
.Apache TinkerPop developers mailing list archive
63-
//https://lists.apache.org/list.html?dev@tinkerpop.apache.org
64-
https://lists.apache.org/
65+
https://lists.apache.org/list.html?dev@tinkerpop.apache.org
6566

6667
.Stack Overflow posts tagged with "gremlin"
6768
https://stackoverflow.com/questions/tagged/gremlin
6869

69-
.Apache Tinkerpop Discord Server
70-
https://discord.gg/tinkerpop

book/Section-Miscellaneous-Queries-Results.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3932,7 +3932,7 @@ that query you would find that it only spawns one traverser rather than the twel
39323932
that we need to be successful.
39333933

39343934

3935-
[source,console]
3935+
[source,text]
39363936
----
39373937
Traversal Metrics Step Count Traver- Time %Dur
39383938
sers (ms)

book/Section-Moving-Beyond.adoc

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ The focus of this book so far has been to teach the Gremlin query language, usin
66
Gremlin Console and TinkerGraph as our learning environment. This is indeed a great
77
way to learn, and that environment can be setup quickly, as we have seen, on a single
88
laptop, or desktop, computer. Even as you move towards more sophisticated
9-
environments, keeping the Gremlin Console nearby is recommended as an easy way to
10-
experiment with new ideas.
9+
environments, keeping the console nearby is recommended as an easy way to experiment
10+
with new ideas.
1111

1212
As we start to think about using graphs to solve problems in a production
1313
environment, we need some additional tools. We have to consider things such as
1414
programming language interfaces, persistent storage, making graphs available using
1515
servers and more advanced indexing. Those topics are the focus of this chapter, and
1616
the two that follow. Hopefully this will whet your appetite for moving beyond the
17-
Gremlin Console, and into the world of graph application programming and graph system
17+
console, and into the world of graph application programming and graph system
1818
deployment!
1919

2020
In this chapter we start the journey by introducing ways to access TinkerGraph
@@ -28,11 +28,11 @@ databases. First, let's take a look at the Apache TinkerPop Java API.
2828

2929
So far in this book we have looked at many ways of working with a TinkerGraph from
3030
within the Gremlin Console. As you start to create more sophisticated applications,
31-
you will find that the Gremlin Console is just one of the tools to keep in your
32-
toolbox. It is very likely, if not certain, that you will want to write standalone
33-
applications that can work with graph data. There are a number of different
34-
programming language bindings currently available for TinkerPop. One of the most
35-
widely used is the Java API. Apache TinkerPop itself is coded mostly in Java.
31+
you will find that the console is just one of the tools to keep in your toolbox. It
32+
is very likely, if not certain, that you will want to write standalone applications
33+
that can work with graph data. There are a number of different programming language
34+
bindings currently available for TinkerPop. One of the most widely used is the Java
35+
API. Apache TinkerPop itself is coded mostly in Java.
3636

3737
NOTE: You will find several Java samples at the GitHub repository associated with
3838
this book. https://github.com/krlawrence/graph
@@ -65,7 +65,7 @@ When using the Gremlin Console, your environment is pre-configured for you so, f
6565
the most pat, you do not have to import any classes or interfaces. However, as soon
6666
as you move to the domain of the standalone Java application you will need to start
6767
importing the classes that your application needs. You will probably discover a few
68-
other things that the Gremlin Console was doing on your behalf.
68+
other things that the console was doing on your behalf.
6969

7070
By way of a reasonable start, some of the most common imports needed by a Java
7171
application working with Gremlin are listed below. As you add more capabilities
@@ -211,7 +211,7 @@ System.out.println("The AUS airport is in " + city.get(0));
211211

212212
So when we compile and run again we should now see this additional line of output.
213213

214-
[source,console]
214+
[source,text]
215215
----
216216
The AUS airport is in Austin
217217
----
@@ -253,7 +253,7 @@ Long n = g.V().has("code","DFW").out().count().next();
253253
System.out.println("There are " + n + " routes from Dallas");
254254
----
255255

256-
[source,console]
256+
[source,text]
257257
----
258258
There are 221 routes from Dallas
259259
----
@@ -361,7 +361,7 @@ eng.forEach( (p) -> System.out.print(p + " "));
361361

362362
The code we just added should generate output that looks like this.
363363

364-
[source,console]
364+
[source,text]
365365
----
366366
Places in England I can get to with one stop from AUS.
367367
@@ -575,10 +575,10 @@ The 'DT' Enum provides constants representing units of time for the 'dateAdd' st
575575
|==============================================================================
576576

577577
As discussed earlier, you can always use the 'getClass' method or simply '.class'
578-
while using the Gremlin Console to, in many cases, find out where something is
579-
defined. As we saw in the examples earlier in this section, lot of the keywords such
580-
as 'values', 'id' and 'local' are defined as Enums so you can use 'getClass' on them
581-
directly. A few examples are shown below.
578+
while using the console to, in many cases, find out where something is defined. As
579+
we saw in the examples earlier in this section, lot of the keywords such as 'values',
580+
'id' and 'local' are defined as Enums so you can use 'getClass' on them directly. A
581+
few examples are shown below.
582582

583583
[source,groovy]
584584
----
@@ -619,7 +619,7 @@ a String representing a three-character airport IATA code as input. The method t
619619
uses a Gremlin query to figure out which geographical region the specified airport is
620620
in and then returns all airports also in that region. Note the use of 'P.eq' as part
621621
of the 'where' step. This is another case of where, because we are not running inside
622-
the Gremlin console, we have to more precisely specify things.
622+
the Gremlin Console, we have to more precisely specify things.
623623

624624
[source,java]
625625
----
@@ -642,7 +642,7 @@ public void findByRegion(String iata) {
642642
If we were to call the 'findByRegion' method, passing in a parameter of 'DEN',
643643
representing the airport in Denver Colorado, the following output should be returned.
644644

645-
[source,console]
645+
[source,text]
646646
----
647647
Region code lookup for DEN
648648
[DEN,Denver,US-CO]
@@ -800,7 +800,7 @@ because while most of property keys are Strings, IDs and labels are a special ca
800800
If you look at the TinkerPop documentation you will see that T is a Java Enum that
801801
contains definitions for 'T.id', 'T.label', 'T.value' and 'T.key'. When working with
802802
Gremlin in Java it is important to remember that we need to use the '"T."' prefix in
803-
cases where when using the Gremlin Console we would not have to.
803+
cases where when using the console we would not have to.
804804

805805
[source,java]
806806
----

0 commit comments

Comments
 (0)