neo4j - How to create a relationship to existing nodes based on a condition of matching properties -


in neo4j, trying load csv file whilst creating relationship between nodes based on condition property matched.

my cypher code is:

load csv headers "file:c:/users/george.kyle/simple/simple scream v3.csv" csvline match (g:simplepages { page: csvline.page}),(y:simplepages {pagekeyword: csvline.keyword} ) match (n:sensitiveskin) g.keyword = n.keyword create (f)-[:_]->(n) 

you can see trying create relationship between 'simplepages' , 'sensitiveskin' based on keyword properties being same.

the query executing relationships won't form.

what hope when execute query such

match (n:sensitiveskin) return n limit 25  

you see nodes (both sensitive skin , simple pages) auto-complete switched on.

create (f)-[:_]->(n) using f variable not defined, creating new node (with no label or properties) instead, , creating relationship new node. think meant use either g or y instead of f. (probably y, since don't otherwise use it?)


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -