--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
g.V('customerId','ALFKI').as('customer').out('ordered').out('contains').out('is').as('products').in('is').in('contains').in('ordered').except('customer').out('ordered').out('contains').out('is').except('products').groupCount().cap().orderMap(T.decr)[0..<5].productName
SELECT TOP (5) [t14].[ProductName]FROM (SELECT COUNT(*) AS [value],[t13].[ProductName]FROM [customers] AS [t0]CROSS APPLY (SELECT [t9].[ProductName]FROM [orders] AS [t1]CROSS JOIN [order details] AS [t2]INNER JOIN [products] AS [t3]ON [t3].[ProductID] = [t2].[ProductID]CROSS JOIN [order details] AS [t4]INNER JOIN [orders] AS [t5]ON [t5].[OrderID] = [t4].[OrderID]LEFT OUTER JOIN [customers] AS [t6]ON [t6].[CustomerID] = [t5].[CustomerID]CROSS JOIN ([orders] AS [t7]CROSS JOIN [order details] AS [t8]INNER JOIN [products] AS [t9]ON [t9].[ProductID] = [t8].[ProductID])WHERE ( NOT ( EXISTS(SELECT NULL AS [EMPTY]FROM [orders] AS [t10]CROSS JOIN [order details] AS [t11]INNER JOIN [products] AS [t12]ON [t12].[ProductID] = [t11].[ProductID]WHERE ( [t9].[ProductID] = [t12].[ProductID] )AND ( [t10].[CustomerID] = [t0].[CustomerID] )AND ( [t11].[OrderID] = [t10].[OrderID] )) ) )AND ( NOT ( [t6].[CustomerID] = [t0].[CustomerID] ) )AND ( [t1].[CustomerID] = [t0].[CustomerID] )AND ( [t2].[OrderID] = [t1].[OrderID] )AND ( [t4].[ProductID] = [t3].[ProductID] )AND ( [t7].[CustomerID] = [t6].[CustomerID] )AND ( [t8].[OrderID] = [t7].[OrderID] )) AS [t13]WHERE [t0].[CustomerID] = N'ALFKI'GROUP BY [t13].[ProductName]) AS [t14]ORDER BY [t14].[value] DESC
You received this message because you are subscribed to the Google Groups "Aurelius" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aureliusgraph...@googlegroups.com.
Hey Daniel,Check this out what Daniel Kuppitz did. This is Gremlin vs. SQL for a recommendation.
g.V('customerId','ALFKI').as('customer').out('ordered').out('contains').out('is').as('products').in('is').in('contains').in('ordered').except('customer').out('ordered').out('contains').out('is').except('product
.groupCount().cap().orderMap(T.decr)[0..<5].productName
Conciseness is one parameter, others that come to mind: capabilities of the language, ability to implement algorithms, speed, maintenance costs, ability to handle change, familiarity by developers, ability to conform to sound software engineering principles, overall project simplicity, ...Gremlin is great on many of there counts. Examples like this one are great because it allows developers to evaluate these parameters for themselves. I have always found this page persuasive: https://github.com/tinkerpop/gremlin/wiki/SPARQL-vs.-Gremlin
One thing I would like to know is why did you, Marko, design Gremlin rather than going with a more traditional approach like that taken by cypher or sparql? I think developers would find information like that helpful when deciding if they are going to learn it.
--
You received this message because you are subscribed to a topic in the Google Groups "Gremlin-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gremlin-users/xndHcjfhxP8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gremlin-user...@googlegroups.com.