Change node names (unnamed nodes with node property)

2 views
Skip to first unread message

Victoria Stuart

unread,
Apr 18, 2018, 1:17:54 AM4/18/18
to Neo4j
Hello: this should be simple but I'm finding that it is it is not.  Consider

LOAD CSV WITH HEADERS FROM "file:/mnt/Vancouver/glycolysis_relations.csv" AS row
MERGE
(s:GlycolysisRelations {source:row.source})
MERGE
(t:GlycolysisRelations {target:row.target});

I'm getting this:

<screenshot>

where the (s) nodes are properly created with the node names as the source name, but the (t) nodes are missing the names on the nodes.

File "glcolysis_relations.csv" is of the form

source,relation,target
α-D-glucose,substrate_of,hexokinase
hexokinase
,yields,glucose 6-phosphate
glucose
6-phosphate,substrate_of,glucose-6-phosphatase
glucose
-6-phosphatase,yields,α-D-glucose
...

Thanks.
neo4j.2018.04.03.png

Michael Hunger

unread,
Apr 18, 2018, 2:01:56 AM4/18/18
to ne...@googlegroups.com
Use the same property eg "name" for both 
And create a relationship in between 

The browser renders one property as caption per type

If you really need the additional source target info add a label or a boolean property 

Von meinem iPhone gesendet
--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<neo4j.2018.04.03.png>
Reply all
Reply to author
Forward
0 new messages