I'm using the Neo4j Import Tool to import some nodes, and am trying to understand how ID spaces and labels work together and affect the behavior of cypher queries that match on nodes with specific IDs.
So for example, suppose I load nodes into two ID spaces ID_SPACE_X and ID_SPACE_Y:
x_nodes.csv:
id:ID(ID_SPACE_X),field1:string,field2:long,:LABEL
1,"foo",42,A
y_nodes.csv:
id:ID(ID_SPACE_Y),field1:string,:LABEL
1,"bar",A
Then I perform the following Cypher query:
MATCH (n:A {id:1}) RETURN n;
Which node is returned? Can you express the ID space in a cypher query in order to return the right node? Or must labels assigned to nodes in one ID space be exclusive to that ID space?
Thanks for any help.