[ https://issues.apache.org/jira/browse/TINKERPOP-2006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16544633#comment-16544633 ]
ASF GitHub Bot commented on TINKERPOP-2006: ------------------------------------------- GitHub user svanteschubert opened a pull request: https://github.com/apache/tinkerpop/pull/891 TINKERPOP-2006 - Fix for valid GraphML export when graph properties o… …f a vertex and edge have similar names I have created an JIRA issue for this patch: https://issues.apache.org/jira/browse/TINKERPOP-2006 You can merge this pull request into a Git repository by running: $ git pull https://github.com/svanteschubert/tinkerpop TINKERPOP-2006 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/tinkerpop/pull/891.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #891 ---- commit cfc7ecefd370ac438afea03f1e6d718f1eff0fbe Author: Svante Schubert <svante.schubert@...> Date: 2018-07-15T18:26:10Z TINKERPOP-2006 - Fix for valid GraphML export when graph properties of a vertex and edge have similar name ---- > GraphML serialization invalid if a vertex and edge have similar named property > ------------------------------------------------------------------------------ > > Key: TINKERPOP-2006 > URL: https://issues.apache.org/jira/browse/TINKERPOP-2006 > Project: TinkerPop > Issue Type: Bug > Affects Versions: 3.3.3 > Reporter: Svante Schubert > Priority: Trivial > > I have created a graph using the Tinkerpop Graph and required for Gephi > visualization a property called color on edges and vertices to be coloured. > The current gremlin-core serialization creates the following two key elements > in GraphML > <key id="color" for="node" attr.name="color" attr.type="string"></key> > <key id="color" for="edge" attr.name="color" attr.type="string"></key> > the id attribute is an internal name, but have to be different. > I would suggest a patch to check for an intersection of the edge & vertices > keys and add for those keys an additional differentiating letter like: > <key id="colorV" for="node" attr.name="color" attr.type="string"></key> > <key id="colorE" for="edge" attr.name="color" attr.type="string"></key> > > Going to provide a pullrequest on GitHub. -- This message was sent by Atlassian JIRA (v7.6.3#76005)