cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Imported data doesn't have a Label to query on

Newbie in Neo4J 3.5.12
I was importing data using the admin tool in which I succeeded, but when querying using the label of a node it doesn't return any row. Querying without label is working. I tried to import adding the label to the import command and as "column" in the import file. Both same outcome.
import command: .\bin\neo4j-admin import --nodes:Experiment=import\experiment.txt
import file structure:
:LABEL,ExperimentNumber,Startdate
Experiment,"12MBBJ0033","20121128"
query used giving results:
MATCH (n) WHERE n.ExperimentNumber='12MBBJ0033' return n
query used giving no results:
MATCH (n:Experiment) WHERE n.ExperimentNumber='12MBBJ0033' return n

3 REPLIES 3

MuddyBootsCode
Graph Steward

Try:

MATCH (n:Experiment {ExperimentNumber: '12MBBJ0033' })
RETURN n

See if that does it for you.

Thx Muddy
Meanwhile I noticed there was an error at the end of the import process. This probably caused the info to be corrupt. When the import was completely successful I could retrieve the data as expected.

MuddyBootsCode
Graph Steward

Glad you got it figured out.