Since you are using the terms 'links' and 'documents', I'm assuming you're not operating in document mode, not graph mode? From what I understand, this seems like a good graph mode use-case, where you would indeed create 'links' (actually edges) between your 'documents' (actually vertices), so that a house could have more than one link/edge to a company. Then, based on the voting (which I would think might need to be treated as a separate aspect of the graph) would be reduced (via some statistical function) to a numeric 'weight' property on that link/edge. This way, you would have a link/edge for each possible house->company relationship that has any votes at all (or you could, in your statistical function, maybe decide to not add one until a certain threshold was met), with each link/edge having a weight that "ranked" the particular relationship based on the votes. --Eric
On Saturday, July 11, 2015 at 9:34:53 AM UTC-5, bullson wrote: > > You mean something like voting 17= (User 123, link from house a to company > b)? > I would like to explain my problem in more depth: > > When a user creates a new house, he can enter a company. Then this house > is initially linked to the company. > Other users might think, that this house should not relate to company A, > but company B. Then they can vote for another value. > The thing is, that i dont want to create a new link between the house and > the company for every voting. > Instead i want to use the existing voting-system, which saves values for a > keypath of a document. > And if i could treat links like documents, i could save the votings of > users like this: > [(User 123, keypath=in.id, value=123213123:2134234234(id of company B)) > links to the link from house a to company A)]. > > I know, that i can just extend the house-documents in the way, that they > save a companyId. > Then i could save votings like this (User123, keypath=companyId, > value=123213123:2134234234) , which would link to the house-document. > But i dont find this solution very pretty, because i am in this case > anyhow creating my own links, which i will have to update and delete > manually. > > Best > > On Saturday, July 11, 2015 at 3:57:27 PM UTC+2, scott molinari wrote: >> >> If I understand properly, you'd just want to store the house rid as a >> link and the company rid as a link for the company-to-house relation voting >> document. >> >> Scott >> > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
