Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Node Name not showing in neo4j

Tags:

neo4j

cypher

I am using a FOREACH and note that X and Y Nodes are filled in but do not show on database display in neo4j.

Empty Display for Nodes

Values are set and correct.

Puzzled as to why. Simple code to generate Nodes and the various Relationship Types from a csv.

USING PERIODIC COMMIT LOAD CSV WITH HEADERS FROM "file:///C:/neo4j_module_datasets/test2.csv" AS line

MERGE (X:MyNodeX{text: line.X})
MERGE (Y:MyNodeY{text: line.Y})

   FOREACH (w in SPLIT(line.A, " ") |
      MERGE (X)–[R:REL {relationship: w}]->(Y))
like image 890
thebluephantom Avatar asked Oct 06 '16 19:10

thebluephantom


People also ask

What is node label in Neo4j?

Neo4j recently introduced the concept of labels and their sidekick, schema indexes. Labels are a way of attaching one or more simple types to nodes (and relationships), while schema indexes allow to automatically index labelled nodes by one or more of their properties.

How do I find my Neo4j username?

- click on Database icon from left side menu. - Find "Connected as" -> :server user add , click on and add your desire user name and password in right windows. Open the url http://localhost:7474/db/data/ this will prompt the user name password authentication windows.


1 Answers

The browser visualizer is distinct from neo4j itself, and the visualizer has no way of knowing which properties on your nodes of a specific label to use for display, so the process for selection is manual.

To set the caption, first click on the node label whose caption you want to change (located at the top of your visualization). This will show display options at the bottom of the visualization, such as color, size, and caption, where the caption options are the properties of nodes of that label. Clicking on one of those caption options will change all nodes of that label to use that property for the caption.

like image 66
InverseFalcon Avatar answered Oct 17 '22 02:10

InverseFalcon