Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edge labels not retained on graphml export #1516

Closed
burnssa opened this issue Jun 6, 2016 · 3 comments
Closed

Edge labels not retained on graphml export #1516

burnssa opened this issue Jun 6, 2016 · 3 comments

Comments

@burnssa
Copy link

burnssa commented Jun 6, 2016

Hi I've noticed that in exports from Gephi to graphml, edge labels and ids are not retained as an edge property. Thus when I try to import Gephi-exported graphml files into my Neo4j database, the proper edge relationship types are not being added.

As an example here is some sample output from a Gephi Graphml export:

Gephi export (loses relationship types on import)

<edge source="n64" target="n65">
<data key="edgeid">e76</data>
<data key="edgelabel">has_next_message</data>
<data key="weight">1.0</data>
<data key="ids">e76</data>
<data key="labels">has_next_message</data>
<data key="types">has_next_message</data>
</edge>

Note that only source and target are retained on the edge property.

When I export to graphml from my database, using neo4j shell tools, I get edge descriptions like the following, which include id and label information not as a data key, but on the edge itself. When I import from graphml files like the following, the proper relationship types for each edge are set.

Neo4j Shell Tools Export (retains relationship types on import)

<edge id="e7975" source="n2982" target="n2983" label="has_response_request">
<data key="label">has_response_request</data>
<data key="created_at">1465180965</data>
<data key="updated_at">1465180965</data>
</edge>

How can I export with Gephi so that I can retain all edge properties on Neo4j import?

Thanks

@Qingmu
Copy link

Qingmu commented Sep 1, 2017

@burnssa Have you fixed the problem ?? The problem also appears in neo4j-community-3.2.2 with apoc-3.2.04……

@burnssa
Copy link
Author

burnssa commented Sep 6, 2017 via email

@eduramiba eduramiba self-assigned this Sep 29, 2017
@eduramiba eduramiba added this to the 0.9.3 milestone Sep 29, 2017
@eduramiba
Copy link
Member

eduramiba added a commit that referenced this issue Nov 18, 2017
Based on commit 6634da3

#1516 Edge labels not retained on graphml export
#1788 GephiFormatException: Gephi failed saving the project.
#1789 NullPointerException: The fileObject parameter cannot be null
#1802 Exception with no-merge strategy in some cases. Incompatible edge should not be created
#1810 GephiFormatException can cause ArrayIndexOutOfBoundsException: 0
#1811 NullPointerException on EdgeTypeFilter
#1812 CSV files are no longer imported correctly when double quotes inside strings are delimited with backslashes
#1815 Add support of Byte Order Mark to CSV parser
#1840 Import of graphml still confuses d3 and label fields
#1848 Import CSV error edges: force undirected makes edges disappear when merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants