> > Hi Leonardo! > As I see, you are confusing node and edge. They are not the same, node is the same as vertex. 1. With osql you can take out all the edges that satisfy your condition, e.g.: select from Edge where weight > 3; or if need traversing: select from (select expand(outE()) from V) where weight > 3 Also I advice to look closer to gremlin.
2.It's complex query, and you can no way (I mean really, dont even try) do it with osql, probably it is possible with gremlin using groovy's closure but also is not trivial. It is more simple if you make it in Java, via pipelines(gremlin) or Java Traverse. Just look through documentation: http://www.orientechnologies.com/docs/last/SQL-Traverse.html I had to make something similar and found no way to do it with osql. Then I switched to gremlin, which, I found, affords such queries. P.s. Probably no one answered because you should read all the documentation at first. And yes, the second query is not easy. -- --- 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.
