Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exported Cypher gives errors in neo4j #77

Open
jbrazeau69 opened this issue Dec 22, 2022 · 1 comment
Open

Exported Cypher gives errors in neo4j #77

jbrazeau69 opened this issue Dec 22, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@jbrazeau69
Copy link

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
Copy link

Ormek commented Jan 15, 2023

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)

@akollegger akollegger added the bug Something isn't working label May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants