Convert database data into graph with tinkerpop tools
<p>I am looking to find graph software that will create a graph from a database automatically. Upon exploration of the tinkerpop documentation, the provided tutorials discuss querying ready-made graphs but there is not much about creating graphs from a database. Is it possible to use any of the tools in the tinkerpop suite to automatically convert data from a database into a graph ready for querying?</p>

<p>Let's say we have an event stream like this:</p>

<pre><code>event_type=create_file name="filename.txt" handle=1
event_type=read handle=1 data="file content"
event_type=write handle=1 data="new file content"
event_type=close handle=1
</code></pre>

<p>Is there a way to convert the event stream into a graph automatically by specifying which properties to follow for creating edges? For example, by selecting the "<strong>handle</strong>" property I should get:</p>

<pre><code>create_file--&gt;read--&gt;write--&gt;close
</code></pre>

<p>All the examples I could find teach me how to do some activity like</p>

<pre><code>add_node create_file
add_node read
add_node write
add_node close
</code></pre>

<p>followed by adding all desired edges manually.</p>

<p>Thank you for your help.</p>