Re: [Neo4j] Replacing Node Labels with Existing property values
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 (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.) > > Now, since all of initial properties are the same, I want to bulk load > (via cvs) about 50K nodes with n:GenericNode label and properties n.string, > n.class etc. > > Then would then like to replace the n:GenericNode label with the value of > n.class for that node. > > Is there a way to do this? > > Thanks. > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to neo4j+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Neo4j" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/neo4j/xOEjNdLGYN8/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > neo4j+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Neo4j] Replacing Node Labels with Existing property values
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 > Remove r:IsValueHas > > Regards. > > John O' > >> On Fri, Feb 5, 2016 at 3:55 AM, Michael Hunger >> wrote: >> 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.) >>> >>> Now, since all of initial properties are the same, I want to bulk load >>> (via cvs) about 50K nodes with n:GenericNode label and properties n.string, >>> n.class etc. >>> >>> Then would then like to replace the n:GenericNode label with the value of >>> n.class for that node. >>> >>> Is there a way to do this? >>> >>> Thanks. >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Neo4j" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to neo4j+unsubscr...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Neo4j" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/neo4j/xOEjNdLGYN8/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> neo4j+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to neo4j+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Neo4j] Replacing Node Labels with Existing property values
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.) > > Now, since all of initial properties are the same, I want to bulk load (via > cvs) about 50K nodes with n:GenericNode label and properties n.string, > n.class etc. > > Then would then like to replace the n:GenericNode label with the value of > n.class for that node. > > Is there a way to do this? > > Thanks. > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to neo4j+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Neo4j] Replacing Node Labels with Existing property values
Hi all In the past I loaded different node classes via individual csv files (class1.csv, class2.csv etc.) Now, since all of initial properties are the same, I want to bulk load (via cvs) about 50K nodes with n:GenericNode label and properties n.string, n.class etc. Then would then like to replace the n:GenericNode label with the value of n.class for that node. Is there a way to do this? Thanks. -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.