2015-07-20 51 views
0

我可以在下面单独做出结果。 1.横向out_e_Direct从#29:1042,而$深度< 2 - 由导演 2.遍历从#29 out_e_Played采取>电影标题:5535,而$深度< 2 - >影视标题由演员扮演orientdb得到两个egdes的交集结果

我希望能找到它们的共同点。 (交集) 但我不知道如何查询有关这些边缘关系。

你能帮我吗?

+0

你见过OrientDB的交集功能? http://orientdb.com/docs/last/SQL-Functions.html#intersect – vitorenesduarte

回答

0

你试过吗?

select expand($c) 
let $a=(traverse out_e_Direct from #29:1042 while $depth < 2), 
$b=(traverse out_e_Played from #29:5535 while $depth < 2), 
$c=intersect($a,$b) 

问候, MICHELA