Re: [Neo4j] Replacing Node Labels with Existing property values

2016-02-05 Thread Michael Hunger
How did you load them? Match (n:GenericLabel) Where exist(n.foo) Set n:Foo Remove n:GenericLabel Von meinem iPhone gesendet > Am 04.02.2016 um 22:22 schrieb John O'Gorman : > > Hi all > > In the past I loaded different node classes via individual csv files > (class1.csv, class2.csv etc.) > >

Re: [Neo4j] Replacing Node Labels with Existing property values

2016-02-05 Thread John O'Gorman
Many thanks, Michael. Can I use the same approach to re-label a relationship? Match (r:IsValueHas) Set r:IsPartHas Remove r:IsValueHas Regards. John O' On Fri, Feb 5, 2016 at 3:55 AM, Michael Hunger < michael.hun...@neotechnology.com> wrote: > How did you load them? > > Match (

Re: [Neo4j] Replacing Node Labels with Existing property values

2016-02-05 Thread Michael Hunger
Unfortunately not :( You have to delete and recreate the relationship Von meinem iPhone gesendet > Am 05.02.2016 um 17:35 schrieb John O'Gorman : > > Many thanks, Michael. Can I use the same approach to re-label a relationship? > > Match (r:IsValueHas) > Set r:IsPartHas > Remo