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

stephen mallette commented on TINKERPOP-1935:
---------------------------------------------

GraphML as a format has no direct support for a concept like multi-properties. 
Perhaps there would be a way to include some kind of custom type to support 
that, but we've resisted that approach (for this and other "features") given 
the use case that GraphML tries to fit. GraphML is meant for the widest level 
of interoperability with other systems. The GraphML we generate is meant to be 
consumed by other tools (e.g. Cytoscape, Gephi, etc). That means we want 
GraphML to only support the lowest common denominator of features and for 
everything else, users can use GraphSON or Gryo which support the full scope of 
TinkerPop features. 

> GraphML Export Fails with List Cardinality
> ------------------------------------------
>
>                 Key: TINKERPOP-1935
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1935
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: io
>    Affects Versions: 3.3.2
>            Reporter: James Baker
>            Priority: Major
>
> Exporting to GraphML throws an error if there are nodes with a List 
> Cardinality and multiple values set for a property. This works fine when 
> exporting to GraphSON.
> The exception thrown is:
> {{java.lang.IllegalStateException: Multiple properties exist for the provided 
> key, use Vertex.properties(name)}}{{at 
> org.apache.tinkerpop.gremlin.structure.Vertex$Exceptions.multiplePropertiesExistForProvidedKey(Vertex.java:179)}}
> {{ at 
> org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerVertex.property(TinkerVertex.java:75)}}
> {{ at 
> org.apache.tinkerpop.gremlin.structure.io.graphml.GraphMLWriter.writeVertices(GraphMLWriter.java:315)}}
> {{ at 
> org.apache.tinkerpop.gremlin.structure.io.graphml.GraphMLWriter.writeGraph(GraphMLWriter.java:193)}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to