Help translate gremlin to OSQL

61 views
Skip to first unread message

Khaled B

unread,
Mar 18, 2015, 10:28:13 AM3/18/15
to orient-...@googlegroups.com
Hello,

I've been using gremlin for a while with Orientdb , however I noticed that I can get queries answered even faster with Orient SQL.

is it possible to translate the following gremlin script into OSQL:

Graph:  
User --- Likes ---> Item

Goal: 
Find top 15 similar items to item x and filter by item genre property ( assuming item is song) .

Gremlin script:
item_x = g.v('12:56');
item_x.in('Likes').out('Likes').except([item_x]).has('genre', item.getProperty('genre')).groupCount().cap().orderMap(T.decr)[0..15].map( )

Thank you in advance for you help
  

Khaled B

unread,
Apr 28, 2015, 5:23:56 AM4/28/15
to orient-...@googlegroups.com
 Can anyone help with this please :) ? 
Reply all
Reply to author
Forward
0 new messages