Posts

Showing posts with the label neo4j

AWS Neo4j Connection Issue

Image
Clash Royale CLAN TAG #URR8PPP AWS Neo4j Connection Issue I am using PuTTy to try to connect to AWS. I've followed the instructions at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html?icmpid=docs_ec2_console You are asked to get you instanceID, but then its use is not mentioned. Where does it go in the PuTTy setup? My setup at present is: port: 22 Authentication: link to my certificate, modified for PuTTY Connection>Data>Autologin>Username: I've tried numerous items here but none works. The error I get is connection timeout. I'm using Windows 10 and have checked to ports for Putty in the Windows and McAfee firewalls ... Putty is enabled. I've check the ports at AWS and they are enabled. I'm stumped and not sure where to go next. By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that ...

Change node label in neo4j

Image
Clash Royale CLAN TAG #URR8PPP Change node label in neo4j I have created a node with a wrong label. Is there any way to change node label or relationship type without re-creating it? I have tried something like MATCH n WHERE Id(n)=14 SET n.Labels = 'Person' but it is fault... 4 Answers 4 You can change the nodes associated with a label but you can't change the type of a relationship. Conceptually, if you take your chicken out of one coop and put it in another you haven't altered the substance of the chicken. But by the time you take the chicken out of the oven and put it in your mouth, it's not a chicken anymore (except equivocally). You can decide to call your cat Whiskers instead of Charlie , but if you decide you want an anaconda for a pet instead of a cat, it doesn't help to give the cat a new name. Similarly, a node can be a member of different labels and remain the sam...

Cannot query a relationship Neo4j

Image
Clash Royale CLAN TAG #URR8PPP Cannot query a relationship Neo4j I have a created a csv like below I have import the csv to Neo4j server the code I used is USING PERIODIC COMMIT LOAD CSV WITH HEADERS FROM "file:///testset.csv" AS line WITH line CREATE (c:Company {name: line.`Company`}) MERGE (s:Supermarket {name:line.`supermarket`}) MERGE (p:Product {name:line.`product`, country:line.`country`, price:line.`price`}) CREATE (c)-[:TRADE]->(s) CREATE (s)-[:BUY]->(p) CREATE (c)-[:SELL]->(p) ; I would like create a query to find which supermarket is Company A trading with. So I wrote the following query. Based on https://neo4j.com/blog/query-cypher-data-relationships/ MATCH (c:Company)-[r:TRADE]->(s:Supermarket) WHERE c.name = "Company A" RETURN c,r,s LIMIT 25 However, it shows (no changes, no records) I would like to know 1.) is it because I haven't created constraints? 2.) If 1 is correct, is it every column should create constraints? Thank you for your ...