Wednesday, 15 May 2013

How to import CSV containing boolean values into Neo4j -


I am currently trying to import CSV data to CEE by using Neo4J.

Unfortunately, when I use the example of how to change a certain column (true / false) from string to boolean - a case - when created, the boolean value is used to determine it Is that what a node has to be created or not?

So my question: What am I doing?

Here is the data:

  "UUID", "name", "iCacTable" "1", "ABC", 1 "2", "def", 0  

and cyber statement:

  'file with header': /// & lt; Path & gt; ' Create AS line (: category {UUID: row.UUID, name: row.Name, IsSelectable: ???})  

Many thanks in advance, Oliver

You can use the case when later expression.

See referrer reference card:

  'file with header:' /// & lt; Path & gt; ' Create AS line (: category {UUID: row.UUID, name: row.Name, selected: (when the line is selected in line. 1 when the right and wrong end)})  
< / Div>

No comments:

Post a Comment