thomaskelder/network-builder — pull request #1 by gsummer (2013-05-29 14:20:54+00:00)
Title: Neo4jWriter

I hope I do not break too much. :)

partially tested version!
(tested on STRING action db)

This should serve as a discussion and concept release!

network-builder now supports:
writing to a Neo4j Database, either directly as an embedded DB or via REST

new cmdline parameters:
--neo4j: tells the system to write to a Neo4j Database

--out: location of the database; writes the DB to the specified location or if starting with http to the specified server

remark:
The Neo4jWriter uses AttributeName.Interaction as relationship type. all other properties are written to their nodes/edges as property. the node/edge ID is saved in the index "id":"id". Properties are indexed in "property":

The Neo4jWriter is pretty slow when using the REST API for remote dbs. Optimized writing can be achieved via batch statements (planned after more testing).