Re: [Neo4j] Add relationships dynamically

2011-07-07 Thread noppanit
That's such a fast reply, I'm sorry I was going to delete my previous post. I didn't read that well. I get it now. Thanks :) -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/Add-relationships-dynamically-tp3149437p3150037.html Sent from the Neo4J User List mailing list

Re: [Neo4j] Add relationships dynamically

2011-07-07 Thread Michael Hunger
RelationshipType is just an interface with the "name()" method. RelationshipType knows = DynamicRelationshipType.withName("knows"); node.createRelationshipTo(node2,knows); Michael P.S. You can also imagine other programmatic ways of implementing that interface. Am 08.07.2011 um 01:13 schrieb

Re: [Neo4j] Add relationships dynamically

2011-07-07 Thread noppanit
But I can have an enum class and implements RelationshipType but doesn't that mean that I have to define each Relationship before hand. For example, If I have a text, "I know john", and "know" relationship doesn't exist in MyRelationshipType (which implements RelationshipType already). How could I

Re: [Neo4j] Add relationships dynamically

2011-07-07 Thread noppanit
Thanks a lot. :) -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/Add-relationships-dynamically-tp3149437p3149791.html Sent from the Neo4J User List mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j

Re: [Neo4j] Add relationships dynamically

2011-07-07 Thread kriti sharma
: Thursday, July 07, 2011 4:01 PM > To: user@lists.neo4j.org > Subject: [Neo4j] Add relationships dynamically > > Is there anyway I can add relationships on-the-fly or programmatically? > Because sometime I might not know the relationships and I want to add that > to the database

Re: [Neo4j] Add relationships dynamically

2011-07-07 Thread Rick Bullotta
...@lists.neo4j.org [user-boun...@lists.neo4j.org] On Behalf Of noppanit [noppani...@gmail.com] Sent: Thursday, July 07, 2011 4:01 PM To: user@lists.neo4j.org Subject: [Neo4j] Add relationships dynamically Is there anyway I can add relationships on-the-fly or programmatically? Because sometime I

[Neo4j] Add relationships dynamically

2011-07-07 Thread noppanit
Is there anyway I can add relationships on-the-fly or programmatically? Because sometime I might not know the relationships and I want to add that to the database. Cheers, -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/Add-relationships-dynamically-tp3149437p3149