Database Reference
In-Depth Information
gremlin> vivek =
graph.V('fname','vivek').next()
==>v[4]
gremlin> vivek.map()
==>twitter_tag=mevivs
==>lname=mishra
==>fname=vivek
9.
We can also fetch all outgoing edges from vertex vivek having the
relationship has :
gremlin> outVertex = vivek.out('has').next()
==>v[8]
gremlin> outVertex.map()
==>body=Working on Cassandra book for apress
==>tweeted_at=2014-09-21
The preceding recipe demonstrates a way to populate and traverse through a Twitter
graph application using Gremlin query language.
Let's discuss Rexster Rest API, the Dog House, and Titan Server.
Rexster: Server, Rest API, and the Dog House
As discussed in the TinkerPop section, using the REST API and web console, we can
visualize and manage any Titan graph. In a previous recipe we discussed downloading
and setting up the Titan distribution on a local box. To start Titan Server, embedded
Elasticsearch, and Cassandra, we need to run
TITAN_HOME/bin/titan.sh
Next, to connect with the REST API and the Dog House we need to execute
TITAN_HOME/bin/rexster-console.sh
This will start Elasticsearch and connect with Elasticsearch transport at port 9300
and will get Rexster running at port 8184. The REST API and the Dog House console
would get started on localhost:8182 port (see Figure 7-10 ) .
 
Search WWH ::




Custom Search