cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Exporting properties from Neo4j to Gephi doesn't work

I am used to make the export from neo4j to Gephi without properties , but now I tried to add properties (actually just one which is 'id' by using this query :

MATCH path = (a:Attributaire2018)-[c:CollaborateWith2018]->(b:Attributaire2018)
CALL apoc.gephi.add(null,'workspace1',path,['id']) yield nodes
return *

But I am getting this error :

1 ACCEPTED SOLUTION

You will need to change the query to

CALL apoc.gephi.add(null,'workspace1',path,'weight',['siren'])

View solution in original post

6 REPLIES 6

property 'id' is already reserved for node id's I think when streaming to Gephi. You must use a different property name if you want to export it to Gephi.

Check the code at: https://github.com/neo4j-contrib/neo4j-apoc-procedures/blob/3.4/src/main/java/apoc/gephi/Gephi.java#...

well for the node "Attributaire2018" I already set id for its ID . How can I change it ?

Btw for people who need an answer for my last question : here is the link : https://stackoverflow.com/questions/28618410/neo4j-renaming-property-keys/28618569

@bratanic.tomaz even after changinf the name of the property , I am still having the same issue
2X_b_bd3f7d1e98bf0f767e3c1a4abb2f8b8718795e0f.png

You will need to change the query to

CALL apoc.gephi.add(null,'workspace1',path,'weight',['siren'])

Oh yeah ! I forgot about the weight ! Thank you again Tomaz