You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by Jack Park <ja...@gmail.com> on 2017/06/21 14:32:46 UTC

A question regarding vertex identification

I am revisiting the tinkerpop universe looking for a system which can
cluster, and which permits me to construct vertex objects in which  I set
the vertex id, and can fetch them back. Ideally, findById and findByLabel
are of interest.

Can someone point me to tinkerpop-based implementations which allow that?

Thanks in adance.
Jack

Re: A question regarding vertex identification

Posted by Stephen Mallette <sp...@gmail.com>.
>  permits me to construct vertex objects in which  I set the vertex id,
and can fetch them back.

In a sense, every TinkerPop implementation allows that. You might not be
able to set the actual Vertex or Edge Identifier for most graph databases
but you can always add a property key called "myId" and set it to whatever
you want. Index it, then look it up.

> Ideally, findById and findByLabel are of interest.

g.V().has("person", "myId", "someIdThatIAssigned")


On Wed, Jun 21, 2017 at 10:32 AM, Jack Park <ja...@gmail.com> wrote:

> I am revisiting the tinkerpop universe looking for a system which can
> cluster, and which permits me to construct vertex objects in which  I set
> the vertex id, and can fetch them back. Ideally, findById and findByLabel
> are of interest.
>
> Can someone point me to tinkerpop-based implementations which allow that?
>
> Thanks in adance.
> Jack
>