I have done a lot of reading by I can't seem to find the answer on this. If there's a duplicate post somewhere please point me to it!
Anyways, here it goes.
I'm trying to import data into Neo4J and create the relationships in order to easily graph the data. I was able to import the data without a problem using the LOAD CSV WITH HEADERS command now I'm not sure how to create the relationship piece.
My CSV/Table looks like this
source target action
172.x.x.x 172.y.y.y accept
172.x.x.x 172.y.y.y drop
All the data ends up in the same database and "table"
My goal is to have the following relationship scheme:
"Source"-------[action]------->"Target"
My first attempt was:
START n=node(*)
WHERE HAS(n.source) AND HAS(n.destination)
CREATE (n)-[:CONNECTS_TO]->(n)
I could not see the relationship at all after running this even though the browser shell said that it did create them and besides this does not take care of the "action" piece.
Any help would be appreciated.