You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "stephen mallette (JIRA)" <ji...@apache.org> on 2016/09/19 17:15:20 UTC

[jira] [Commented] (TINKERPOP-1454) Create Serializers for Graph objects in Gremlin-Python

    [ https://issues.apache.org/jira/browse/TINKERPOP-1454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15504045#comment-15504045 ] 

stephen mallette commented on TINKERPOP-1454:
---------------------------------------------

hmm - that could probably work. i believe the structure suite makes it so that {{g.V(v)}} respects any vertex instances - including "detached", "reference", etc.

> Create Serializers for Graph objects in Gremlin-Python
> ------------------------------------------------------
>
>                 Key: TINKERPOP-1454
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1454
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: io, language-variant
>    Affects Versions: 3.2.2
>            Reporter: Marko A. Rodriguez
>
> Right now, Gremlin-Python only supports {{VertexDeserializer}}, etc. We should add {{VertexSerializer}}. Why? So we can send vertex, edge, etc. objects in a traversal.
> {code}
> v = g.V().has('name','stephen').next()
> g.V(v).out('knows').toList() // currently doesn't work
> g.withSideEffect('x',v).V().out('knows').where(neq('x')) // currently doesn't work
> {code}
> Note that the serialization simply needs to encode {{id}} only so this can be really simple to do.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)