Titan + d3 for visualization of a computer network

I have been experimenting with Titan over the past few weeks and would like some pointers on the way forward as well as a few specific questions. The goal of the project is to store the log data in a Cassandra cluster (you can use an example of web traffic for this issue) and present the relationships on the Titan graph. All nodes are modeled as having the value and type of the object (for example, "google.com", "hostname"), and the edges have a label (for example, "connects"), as well as several relationship attributes (time stamp, stream length, etc. . on the).

As soon as this data is saved in cassandra and presented as a Titan graph, I plan to use the d3 code to generate the visualization. At the end of the tunnel, I hope that I can build large-scale interactive complex network networks that look something like this: http://goo.gl/CVEd55

My current setup is as follows:

  • Python script to convert log files to files vertices.csvand edges.csvto download Gremlin
  • Titan Server 0.4 (using CassandraThrift as storage) - gremlin script to load converted data into Titan
  • A Python script that uses NetworkX to open a RexPro connection, allowing the analyst to enter a Gremlin user request, outputting the result as JSON
  • A local web interface that uses the generated JSON and d3 to display the query results in a graph

Ideally, as a test basis, I would like the user to enter Gremlin’s request in the web interface and be directed to a page containing an interactive graph of d3 result.

My specific questions are as follows:

  • What is the process of assigning attributes to edges? I am having trouble finding an example code that helps me present a graph using the model above.

  • gremlin script Titan bg.commit() , RexPro conn= RexProConnection('localhost,8184,'bg'). , script, , RexPro - , bg, -, . Titan? , script / , , , RexPro ?

  • , SQL- , RexPro ?

, - , !

+4
2

?

, . Edge:

Edge e = g.addEdge(v1,v2,'label')
e.setProperty('weight',0.1d)

:

Titan? , script / , , , RexPro ?

BatchGraph , , . , "" rexster.xml, script, rexster.xml Graph . , "" "bg".

conn = RexProConnection('localhost,8184,'yourgraph')

, SQL- , RexPro ?

, "", , . , , Gremlin ( SQL-, , Gremlin), Rexster . , , , , , .

0

All Articles