which is correct as when using Neo4j with code one should use parameters which 
are these things in curly braces.

which your neo4j statement correctly complains about -> "no parameter 'for' " 
(for is probably also a misleading name for a value)

Am 17.03.2014 um 13:09 schrieb Jean-Baptiste Gallopin <jbgallo...@gmail.com>:

> Hi,
> 
> Thanks for that! It worked.
> 
> Maybe someone will want to update the reference card? It says we should use 
> brackets with the SET command:
> 
> SET
> 
> SET n.property = {value},
>     n.property2 = {value2}
> Update or create a property.
> 
> All the best,
> 
> 
> Jean-Baptiste
> 
> 
> On Mon, Mar 17, 2014 at 2:27 AM, Michael Hunger 
> <michael.hun...@neopersistence.com> wrote:
> Hi,
> 
> Glad you made so much progress, well done.
> 
> You just want to set the attribute to a string value? Just use normal double 
> quotes.
> 
> 
>> MATCH (a)-[:`is member of`|`heads`]->(b)
>> WHERE (b.name="Interim Transitional National Council (NTC)") or (b.name="NTC 
>> Executive Board")
>> SET a.revolution_attitude = "for"
> 
> 
> 
> The Cypher Reference Card might come handy for you: 
> http://neo4j.org/resources/cypher
> 
> Cheers
> 
> Michael
> 
> Am 16.03.2014 um 18:14 schrieb Jean-Baptiste Gllpn <jbgallo...@gmail.com>:
> 
>> Dear all,
>> 
>> a quick update on my project and a question. Thanks to Linkurious, I've been 
>> able to start building (by hand and from scratch) my database of Libyan 
>> political elites. I'm gathering data through my readings of books and news 
>> sources. The network, with 125 nodes (individuals and organizations) and 168 
>> relationships, is still small but growing:
>> 
>> 
>> 
>> 
>> It includes both biographical information (node attributes) and details on 
>> politically relevant relationships (alliances, kinship, antagonism, etc).
>> 
>> I'm now messing about with Cypher to see how I can modify large segments of 
>> the database rapidly. I'm trying to add a new property to all nodes of a 
>> certain kind: all members of the Transitional National Council (the 
>> political leadership of the 2011 revolution) should have a 
>> revolution_attitude property set to 'for':
>> 
>> MATCH (a)-[:`is member of`|`heads`]->(b)
>> WHERE (b.name="Interim Transitional National Council (NTC)") or (b.name="NTC 
>> Executive Board")
>> SET a.revolution_attitude = { `for` }
>> 
>> Unfortunately it's returning an error: 
>> 
>> 
>> Expected a parameter named for
>> Neo.ClientError.Statement.ParameterMissing
>> The error seems to come from the third line. I've tried fiddling with the 
>> syntax of that line, removing the ` and the brackets, etc but nothing works.
>> 
>> Any idea as to where this is coming from?
>> 
>> Many thanks again for your help.
>> 
>> Jean-Baptiste
>> 
>> On Friday, February 21, 2014 11:13:07 PM UTC, Jim Salmons wrote:
>> No problem, we're here to help.
>> 
>> One last point, you will find that you can get a working knowledge of Cypher 
>> in short order, like hours not days. With just a basic starting point you 
>> will evolve from these basic skills and incrementally add new insights and 
>> tactics as you need them. Before you know it that basic skill grows to 
>> familiarity without painful and time consuming effort up front. 
>> 
>> Good luck with your studies.
>> 
>> --Jim--
>> 
>> In many decades of learning and using all kinds of programming languages and 
>> query languages, I can confidently say that the Neo folks have managed to 
>> craft the most powerfully intuitive means to work with the unique power of 
>> graph database technology.
>> 
>> On Thursday, February 20, 2014 4:21:40 PM UTC-6, Jean-Baptiste Gllpn wrote:
>> Hi all,
>> 
>> thanks for your comments and encouragements.
>> 
>> Jim -- you seem to be reading a lot into who I am and what I do. I merely 
>> deleted the post because it indadvertedly included my full name and I was 
>> not able to edit it. My approach to sociology is mostly qualitative and my 
>> current focus on Arabic language study, interview research design and 
>> country-specific knowledge means that I cannot dedicate time to learning 
>> Cypher in-depth at the moment. It will come in due time, once I have 
>> gathered sufficient data to do some serious analysis. In the meantime, Jean 
>> has been very helpful and I am going to use Linkurious to get started on 
>> building my database.
>> 
>> Thank you all again! I might nag you with more questions once I'm a bit more 
>> advanced with my project.
>> 
>> Best,
>> 
>> Jean-Baptiste 
>> 
>> 
>> 
>> On Thu, Feb 20, 2014 at 4:39 PM, Jim Salmons <jim.s...@softalkapple.com> 
>> wrote:
>> Hi Erik and Jean,
>> 
>> +1 to you both. Sadly, judging by the deletion of the post that prompted my 
>> reply, I think our community is more willing to help Jean-Baptiste than he 
>> is willing to learn. There's that old saying about horses and water that 
>> seems to ring true here.
>> 
>> And congrats Erik on your can-do spirit. Good luck with your studies.
>> 
>> --Jim--
>> 
>> 
>> On Thursday, February 20, 2014 2:18:16 PM UTC-6, Erik Hanson wrote:
>> Jean-Baptiste, I recently did an MA project using neo4j (graphing characters 
>> and elements of a video game), and I don't have much of a background in 
>> programming (I got my BA in rhetoric and poetry). I started my MA project 
>> using Neoclipse, but I found that even with a fairly small graph, things got 
>> really slow very quickly. It turned out to be much quicker to learn just 
>> enough Cypher to enter new nodes and relationships. I encourage you to try 
>> it out--just experimenting with things in a GraphGist may be enough for you 
>> to learn the elements of Cypher that you need. I can't claim that my own 
>> Cypher stuff was perfect or terribly pretty, but it was straightforward and 
>> did just about what you are talking about. 
>> 
>> If you're willing to give it a shot, I'm willing to try to help walk you 
>> through things. 
>> 
>> 
>> On Wednesday, February 19, 2014 7:40:32 AM UTC-6, Jean Villedieu wrote:
>> Hi everyone,
>> 
>> @Jim : +1, a deep understanding of the underlying tech behind data is key.
>> @Jean-Baptiste : you should reach out, I'm sure we can help.
>> 
>> Thank you Michael for mentioning Linkurious ;)
>> 
>> Jean
>> 
>> On Sunday, February 16, 2014 10:40:25 PM UTC+1, Jim Salmons wrote:
>> Jean-Baptiste,
>> 
>> I absolutely do not intend to sound negative, but as a PhD student in 
>> Sociology you will be in trouble in your career if you cannot distinguish 
>> between a graph database query language and "development and coding" in your 
>> mind. 
>> 
>> Michael gave you good advice about Linkurious, but that is not some Magic 
>> Bullet. You won't just crank up an app/tool (whatever you want to call it) 
>> and just do what you want in all cases. Sure, the obvious things will be 
>> covered. But do you think that your investigation will be limited only to 
>> what everybody else does? Probably not if you want to be known as a smart 
>> person who can bring new and non-obvious insights into your work.
>> 
>> A big part of your career will be looking at and manipulating data. As a 
>> professional you will often have to provide the "glue" that gets your data 
>> into, out of, and between whatever tools you have available. Whether it is 
>> Cypher or some other means, you need to break your mental block that says, 
>> "I don't do coding." Years from now you will be thanking yourself for doing 
>> it sooner than later.
>> 
>> Look, I'm 63 years-old and don't have to make the decisions you are facing 
>> now. But I am also smart enough (make that, have decades of experience to 
>> reflect on) to know that if I had it all to do over again and I were in your 
>> shoes, I'd be digging into neo4j with a passion and there would be nothing 
>> that could keep me from learning and growing my knowledge of Cypher (along 
>> with other things of that ilk).
>> 
>> There is a famous scene in the film, "The Graduate," where a graduation 
>> party-goer leans over to Dustin Hoffman to give him career advice and 
>> whispers, "Plastics!" That's what I'm trying to do for you, Jean-Baptiste, 
>> "Cypher!" You do that, join this group, ask honest well-prepared questions 
>> that will get helpful timely answers, and you will be well on your way to 
>> carving a good niche (there's that social network stuff creeping in as 
>> #graphsareeverywhere) for you in your career.
>> 
>> Good luck with your studies. 
>> 
>> Just something to think about,
>> --Jim--
>> 
>> On Friday, February 14, 2014 4:31:37 PM UTC-6, Jean-Baptiste Gllpn wrote:
>> Hello,
>> 
>> I'm a Sociology PhD student. I recently found out about Neo4j and I'm 
>> excited about its possibilities.
>> 
>> I'd like to use Neo4j to manually build a database of a political elite in a 
>> country. I'd build that database as I read about the country, writing down 
>> new names as they come up and linking individuals as I read about their 
>> particular patterns of interaction.
>> 
>> To do that, I would need an interface that allows me to visualize and input 
>> data rapidly in the network, as well as search between various attributes of 
>> nodes. The basic admin dashboard in Neo4j doesn't allow me to do this 
>> quickly, as I can only search for node and relationship numbers, but not 
>> their attributes.
>> 
>> Let's say I create a node with the attribute "Name" as "Mr Jones", and he 
>> gets the node number 121. Later on I find details about where he worked or 
>> studied. I want to add these new attributes to the node, but it's hard for 
>> me to find the node since I can't search for "Mr Jones" -- I need to either 
>> know his node number by heart or to visualize the whole network to find him.
>> 
>> Is there an interface / program that will allow me to interact easily with 
>> Neo4j as admin? I tried Neoeclipse, but for some reason only the 
>> relationships are loading, not the nodes, and I can't figure out how to load 
>> the nodes or whether Neoeclipse is the right choice at all (it doesn't seem 
>> to be updated anymore?).
>> 
>> Many thanks in advance for your help!
>> 
>> Jean-Baptiste.
>> 
>> -- 
>> 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/8hsBIGtO4Ec/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> neo4j+un...@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>> 
>> 
>> -- 
>> 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/8hsBIGtO4Ec/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.

Reply via email to