In my application there are message sent from one user to another
user in the system. Users are maintained user node.
And each message are held in message node. I want to track the
messages sent and reply togather.
I am creating relationship following way. Please suggest me my data
model is correct or not.
Maybe more simple is to have the users be nodes the the messages are the
edges that pint to sender to receiver. I think this is more natural.
Thisnk of it as saying that "users are related by the =messages they sand
to each other."
On Tue, May 29, 2012 at 9:24 AM, gokulakanna balakrishnan <
> In my application there are message sent from one user to another
> user in the system. Users are maintained user node.
> And each message are held in message node. I want to track the
> messages sent and reply togather.
> I am creating relationship following way. Please suggest me my data
> model is correct or not.
Hi,
outgoing
User A sent message to user B UserA-------->Message
incoming
User B will receive the message. UserB<------Message(attaching)
outgoing
User B replied to User A : UserB------>Message
If user B replied to A is message. New message object will be
created. how to maintain sequence between those messages(conversation
between A and B) in neo4j.
<albertson.ch...@gmail.com> wrote:
> Maybe more simple is to have the users be nodes the the messages are the
> edges that pint to sender to receiver. I think this is more natural.
> Thisnk of it as saying that "users are related by the =messages they sand
> to each other."
> On Tue, May 29, 2012 at 9:24 AM, gokulakanna balakrishnan
> <gokulbala1...@gmail.com> wrote:
>> Hi All,
>> In my application there are message sent from one user to another
>> user in the system. Users are maintained user node.
>> And each message are held in message node. I want to track the
>> messages sent and reply togather.
>> I am creating relationship following way. Please suggest me my data
>> model is correct or not.
<gokulbala1...@gmail.com> wrote:
> Hi,
> outgoing
> User A sent message to user B UserA-------->Message
> incoming
> User B will receive the message. UserB<------Message(attaching)
> outgoing
> User B replied to User A : UserB------>Message
> If user B replied to A is message. New message object will be
> created. how to maintain sequence between those messages(conversation
> between A and B) in neo4j.
> Thanks & Regards,
> Gokul
> On Tue, May 29, 2012 at 10:16 PM, Chris Albertson
> <albertson.ch...@gmail.com> wrote:
>> Maybe more simple is to have the users be nodes the the messages are the
>> edges that pint to sender to receiver. I think this is more natural.
>> Thisnk of it as saying that "users are related by the =messages they sand
>> to each other."
>> On Tue, May 29, 2012 at 9:24 AM, gokulakanna balakrishnan
>> <gokulbala1...@gmail.com> wrote:
>>> Hi All,
>>> In my application there are message sent from one user to another
>>> user in the system. Users are maintained user node.
>>> And each message are held in message node. I want to track the
>>> messages sent and reply togather.
>>> I am creating relationship following way. Please suggest me my data
>>> model is correct or not.
> Hi,
> outgoing
> User A sent message to user B UserA-------->Message
> incoming
> User B will receive the message. UserB<------Message(attaching)
> outgoing
> User B replied to User A : UserB------>Message
> If user B replied to A is message. New message object will be
> created. how to maintain sequence between those messages(conversation
> between A and B) in neo4j.
> Thanks & Regards,
> Gokul
> On Tue, May 29, 2012 at 10:16 PM, Chris Albertson
> <albertson.ch...@gmail.com> wrote:
>> Maybe more simple is to have the users be nodes the the messages are the
>> edges that pint to sender to receiver. I think this is more natural.
>> Thisnk of it as saying that "users are related by the =messages they sand
>> to each other."
>> On Tue, May 29, 2012 at 9:24 AM, gokulakanna balakrishnan
>> <gokulbala1...@gmail.com> wrote:
>>> Hi All,
>>> In my application there are message sent from one user to another
>>> user in the system. Users are maintained user node.
>>> And each message are held in message node. I want to track the
>>> messages sent and reply togather.
>>> I am creating relationship following way. Please suggest me my data
>>> model is correct or not.
michael.hun...@neotechnology.com> wrote:
> .
> > If user B replied to A is message. New message object will be
> > created. how to maintain sequence between those messages
Look at the email headers. You will find that most of them already have a
line that starts "In-Reply-To:" and then has a message ID.
What you really should do is use this existing email headers. The chain
of "in-reply-to" pointers will do what you want
Likewise if filing measles there are other headers, like sender to "to"
that would make idea links
There are a few things that may affect this. Are the messages
asynchronous or synchronous? Are there reliable messaging mechanisms
built into the exchange? For example,
A-[sends_message]->B get through
A-[sends_message]->B but it gets lost in cyberspace.
B-[sends_message]->A and it gets through // replying to message one
A-[sends_message]->B which is a resend of the first message because if
never received an ack.
...
More to this than meets the eye sometimes.
I worked within OASIS on WS-RX. YOu might want to read up on this:
THere are some scenarios modelled there that may be of interest.
Duane Nickull
***********************************
Consulting and Contracting; Proven Results!
i. Neo4J, Java, LiveCycle ES, Flex, AIR, CQ5 & Mobile
b. http://technoracle.blogspot.com t. @duanechaos
"Don't fear the Graph! Embrace Neo4J"
From: Chris Albertson <albertson.ch...@gmail.com<mailto:albertson.ch...@gmail.com>>
Reply-To: "neo4j@googlegroups.com<mailto:neo4j@googlegroups.com>" <neo4j@googlegroups.com<mailto:neo4j@googlegroups.com>>
Date: Tuesday, 29 May, 2012 6:02 PM
To: "neo4j@googlegroups.com<mailto:neo4j@googlegroups.com>" <neo4j@googlegroups.com<mailto:neo4j@googlegroups.com>>
Subject: Re: [Neo4j] Need suggestion on data model
On Tue, May 29, 2012 at 4:19 PM, Michael Hunger <michael.hun...@neotechnology.com<mailto:michael.hun...@neotechnology.com>> wrote:
.
> If user B replied to A is message. New message object will be
> created. how to maintain sequence between those messages
Look at the email headers. You will find that most of them already have a line that starts "In-Reply-To:" and then has a message ID.
What you really should do is use this existing email headers. The chain of "in-reply-to" pointers will do what you want
Likewise if filing measles there are other headers, like sender to "to" that would make idea links