Good way to define namespace for nodes and relations?

4 views
Skip to first unread message

jia

unread,
Feb 7, 2010, 3:54:44 PM2/7/10
to neo4jrb
Hi,

I am trying to define different namespaces for different users, so
that each user can work on his/her own graph, and I can know which
user created a particular node. One node could be created by different
users as long as the nodes are in different namespace. An obvious way
I can think of is just define a identification property for each node.
Before I retrieve a node, I first check whether this node belongs to a
user. How does that sound?

Thanks,
Jia

jia

unread,
Feb 7, 2010, 9:46:38 PM2/7/10
to neo4jrb
Or just create a user node, and everything belongs to the user is
connected with that node?

Andreas Ronge

unread,
Feb 8, 2010, 3:30:24 AM2/8/10
to neo...@googlegroups.com
Yes, you should probably use relationships for this purpose - a more
graph oriented way.
/Andreas

On Mon, Feb 8, 2010 at 3:46 AM, jia <jiaz...@gmail.com> wrote:
> Or just create a user node, and everything belongs to the user is
> connected with that node?
>

> --
> You received this message because you are subscribed to the Google Groups "neo4jrb" group.
> To post to this group, send email to neo...@googlegroups.com.
> To unsubscribe from this group, send email to neo4jrb+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/neo4jrb?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages