简体   繁体   中英

How to read graph data from titan db?

I have a titan graph database. I am given a task to read data from this graph database using Rexster or any tool or any API. I have no idea how to read the graph data and later convert into java objects. I believe the data when read, will be in JSON format and then we can convert it into java objects. The main challenge is how to read data from titandb..Any help is appreciated.. Thanks in advance.

Regarding your "question 1" in the comments, your rexster.xml was not likely to be the problem in that case. rexster.xml doesn't define the classpath and you likely just had some things out of place. I can't fully explain it otherwise unfortunately as the issue sounds very specific to the particulars of your environment.

As for "question 2" in the comments and I guess what was your original question, you have Titan running against hbase and you have Rexster running. You now have numerous options for how to connect with Gremlin:

  1. Maybe you just use Gremlin through java using a GremlinPipeline or a ScriptEngine embedding.
  2. Maybe you issue some requests to Rexster via the REST API and Gremlin Extension
  3. How about using RexPro ?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM