Neo4j Shell Export to GraphML bug

19 views
Skip to first unread message

Ryan Velasco

unread,
Oct 7, 2015, 8:15:33 AM10/7/15
to Neo4j, Michael Hunger
Hello,

Tried exporting neo4j db to graphml but the output is not correct:

Command Line args
export-graphml -t -r -o SalesRelation.graphml MATCH (n:Company)-[r:Seller|Buyer]->(o:SalesRelation) RETURN n, r, o

Wrong node id rendered
<node id="n172069" labels=":Company:Organization:Topic"><data key="labels">:Company:Organization:Topic</data><data key="ID">172076</data></node>

I am expecting
<node id="172076" labels=":Company:Organization:Topic"><data key="labels">:Company:Organization:Topic</data><data key="ID">172076</data></node>

Thanks,
Ryan
SalesRelation.rar

Michael Hunger

unread,
Oct 7, 2015, 1:05:15 PM10/7/15
to Ryan Velasco, ne...@googlegroups.com
I think it's intentional, there was a limitation in the graphml format with regard to id's.

What do you need the export for? Gephi / Cytoscape?

Michael
> <SalesRelation.rar>

Ryan Velasco

unread,
Oct 7, 2015, 8:59:34 PM10/7/15
to Neo4j, ry...@limesource.se
I tried exporting it for gremlin testing of the query.
The current version of gremlin throws an error if I load the neo4j database. 
I needed it for experiment. 
Reply all
Reply to author
Forward
0 new messages