Tinkerpop 2 does not define something like classes, so only way to filter verticies is by property or edge.
Since Tinkerpop 3 (not implemented by OrientDB yet) verticies are allowed to have a single immutable label accessible via "T.label" . But it's basically used just as typed property name: g.V(T.label, "A") Now Tinkerpop implementors can define T.label as "@class" for example. To stay as universal as possible Tinkerpop stack does not define something like classes or labels, but operates on generic "property graph". However since Tinkerpop 3 , you can use T.label Dne úterý 26. ledna 2016 15:42:25 UTC+1 [email protected] napsal(a): > > Right, so what's the gremlin alternative to > > select from A ? > > On Tuesday, January 26, 2016 at 4:32:06 AM UTC-5, [email protected] > wrote: >> >> Hi, >> I think that >> >> g.V("@class", "A") >> >> is equivalent to >> >> select from V where @class='A' >> >> and then it will return only the verteces of the class A.. >> >> Kind regards, >> Alessandro >> > -- --- 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.
