Tinkerpop [2.6.0] - Solution for loading vertices by property that match a regexp (wildcard)

153 views
Skip to first unread message

Kamen Ivanov

unread,
Mar 22, 2015, 5:38:07 PM3/22/15
to gremli...@googlegroups.com
Hello, Is there any method that can help me load vertices from a given class, that have a property which matches a regexpr (or wildcard like in SQL - name LIKE 'Apu%'). Or I can do this only by using the gremlin or Tinkerpop Pipes?

Daniel Kuppitz

unread,
Mar 23, 2015, 6:32:17 AM3/23/15
to gremli...@googlegroups.com
The only graph database that supports that is Titan (afaik); it adds the String search predicates REGEX and CONTAINS_REGEX. The only other solution I can think of is a lambda .filter() step in Gremlin (but that's probably what you've already figured out).

Cheers,
Daniel


On Sun, Mar 22, 2015 at 10:38 PM, Kamen Ivanov <kameniv...@gmail.com> wrote:
Hello, Is there any method that can help me load vertices from a given class, that have a property which matches a regexpr (or wildcard like in SQL - name LIKE 'Apu%'). Or I can do this only by using the gremlin or Tinkerpop Pipes?

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/cb397b77-a5b4-4488-9816-bb1fb1b80415%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kamen Ivanov

unread,
Mar 25, 2015, 5:00:24 AM3/25/15
to gremli...@googlegroups.com
Thanks for the answer Daniel, i'm sorry for the late response, i was busy at work, I was thinking of that but wasn't sure whether to use .filter() or something else, thanks for the hint, I'll try it tonight.

Have a nice day, 
Kamen

sanju m

unread,
Oct 31, 2018, 3:35:27 PM10/31/18
to Gremlin-users
Hi Daniel,

Is it supports this functionality now in CosmosDB?.. Please can you provide the solution. In my case properties will dynamically change.. i have one string "xyz" using that string i want to retrieve all the vertex properties that have string "xyz".

Daniel Kuppitz

unread,
Oct 31, 2018, 4:05:02 PM10/31/18
to gremli...@googlegroups.com
I don't know, I never tried CosmosDB. Probably not, as I just recently learned that it doesn't even support match(). But I dunno, you'll get a better answer reading the docs I guess.

Cheers,
Daniel


Reply all
Reply to author
Forward
0 new messages