orientdb schema question

60 views
Skip to first unread message

loadedlux

unread,
Jan 10, 2017, 1:39:56 PM1/10/17
to OrientDB
Given that it is not possible to have an edge between a Vertex and an Edge, how can I properly model the following relationship?


V1 <---"relationship"/E1---> V2  <---"relationship"/E2---> V3

V3 <--"has"/E3--> V4 <---"based on"/E4---> E1[existence of relationship/edge between a and b]

I am trying to model that V3 has V4 based on E1.

Thanks in advance.

Ivan Mainetti

unread,
Jan 11, 2017, 2:09:09 AM1/11/17
to OrientDB
Hello,
what do you think about creating a LINK property on V4 class?

create property V4.basedOn LINK


loadedlux

unread,
Jan 13, 2017, 2:26:27 PM1/13/17
to OrientDB
Thanks!
Reply all
Reply to author
Forward
0 new messages