neo4j-labs / arrows.app

A graph drawing application
https://arrows.app
Apache License 2.0
106 stars 16 forks source link

Exported Cypher gives errors in neo4j #77

Open jbrazeau69 opened 1 year ago

jbrazeau69 commented 1 year ago

The export commands in cypher are not working when I run them in neo4j for desktop. I'm using neo4j version 5.2.0. All of the export commands result in the following error : "Neo.ClientError.Statement.SyntaxError" Invalid input '(': expected "allShortestPaths" or "shortestPath" (line 1, column 8 (offset: 7)).

The exported cypher looks like the following: CREATE ('OPCD Requirement':Model:NCIP)-[:Generalized_by]->('OPCD Sub Category':NCIP)-[:Type_of]->('OPCD Requirement')-[:Allocated_to]->(CE:Model:MWA:NCIP:Intel)-[:Parent_of]->(CEV:Model:MWA:NCIP:Intel)-[:Child_of]->(CE)-[:Supports]->(MEF:Model:MWA:Intel)-[:Supported_by]->(CE)-[:Score_Aggregation]->(:NCIP)<-[:Part_of]-('NCIP Quad':NCIP)<-[:_RELATED]-('NCIP Key Initiative':NCIP),

Ormek commented 1 year ago

It does work for me. As inidicated the 'OPCD Requirement' is invalid at that position in cypher. This is a bug, because arrows should export the space in a different way. There is a very simple workaround: Do not use space in ... (caption?) CREATE (OPCD_Requirement:Model:NCIP) -[:Generalized_by]->(OPCD_Sub_Category:NCIP) -[:Type_of]->(OPCD_Requirement) -[:Allocated_to]->(CE:Model:MWA:NCIP:Intel) -[:Parent_of]->(CEV:Model:MWA:NCIP:Intel) -[:Child_of]->(CE) -[:Supports]->(MEF:Model:MWA:Intel) -[:Supported_by]->(CE) -[:Score_Aggregation]->(:NCIP) <-[:Part_of]-(NCIP_Quad:NCIP) <-[:_RELATED]-(NCIP_Key_Initiative:NCIP)