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

GraphML Importer Attribute Loading Problem #1656

Closed
bassman99 opened this issue Jan 23, 2017 · 14 comments
Closed

GraphML Importer Attribute Loading Problem #1656

bassman99 opened this issue Jan 23, 2017 · 14 comments
Assignees
Milestone

Comments

@bassman99
Copy link

bassman99 commented Jan 23, 2017

Expected Behavior

Ability to handle value entries in GraphML file, as documented at https://gephi.org/users/supported-graph-formats/graphml-format/

Current Behavior

Only handles attributes as described in this forum link: http://forum-gephi.org/viewtopic.php?f=29&t=5878&p=13712&hilit=graphml#p13712

Possible Solution

Deferred to developers...

Greatly increases usefulness of Gephi to entire Neo4j community, which is limited by the availability of free visualization tools.

Steps to Reproduce

  1. Generate GraphML from Neo4j APOC, which results in GraphML format consistent with expected behavior above.
  2. Open in Gephi; no attributes!

Context

Frantically trying to find free visualization tools for use with Neo4j. This issue is a showstopper (not being a good enough programmer these days to write my own GraphML generator from Neo4j).

Your Environment

  • Version used: Gephi 0.9.1
  • Operating System: Windows 10

N/A - Any GraphML file with value should do fine to reproduce the error.

@bassman99
Copy link
Author

Here's a sample GraphML file that demonstrates the problem. Nodes/relationships are loaded fine, but no attributes.
GraphML.txt

@eduramiba eduramiba reopened this Jan 23, 2017
@eduramiba eduramiba added this to the 0.9.2 milestone Jan 23, 2017
@bassman99
Copy link
Author

Of course, please rename "GraphML.txt" to "GraphML.graphml" for loading. I had to change the file extension so I could upload it.

@eduramiba
Copy link
Member

Notes: we might assume String type for undeclared attributes, since Neo4j APOC does this, but I am not sure that's valid GraphML according to http://graphml.graphdrawing.org/specification/primer/graphml-primer.html

@eduramiba
Copy link
Member

Original topic: http://forum-gephi.org/viewtopic.php?f=29&t=5939

@bassman99
Copy link
Author

bassman99 commented Jan 23, 2017

The actual XML is getting beyond my expertise, but I posted over at the APOC site (portion of Neo4j that generates the GraphML); perhaps they will chime-in... neo4j-contrib/neo4j-apoc-procedures#258

@eduramiba
Copy link
Member

Can you try if this was fixed as indicated in neo4j-contrib/neo4j-apoc-procedures#258 please?

@eduramiba
Copy link
Member

Did it work?

@bassman99
Copy link
Author

bassman99 commented Apr 15, 2017 via email

@phelps-sg
Copy link

I am still seeing this issue with APOC 3.1.3.7, despite neo4j issue 258 being marked as closed.

@eduramiba
Copy link
Member

Is it producing the correct output?

@phelps-sg
Copy link

I am not sure whether the output is correct according to the graphml standard, but Gephi 0.9.1. fails to recognise the node or edge attributes exported by APOC. A snippet of an exported graph is shown below. I don't know whether this is a bug in Gephi or a bug in APOC.

<?xml version="1.0" encoding="UTF-8"?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd">
<graph id="G" edgedefault="directed">
<node id="n0" labels=":Asset"><data key="labels">:Asset</data><data key="asset_id">Ua8oJEML7KXcvUTzL2g9WvJs9xyXTrj8YvJkzZ</data></node>
<node id="n1" labels=":Transaction"><data key="labels">:Transaction</data><data key="txid">74ac74b7b1fca6557cac3ce4d79a11f63c65d40f51eded347c0c43b532728cef</data></node>
<node id="n2" labels=":BTCAddress"><data key="labels">:BTCAddress</data><data key="hash">1DwmXwjNfFgdzA9yvwGPcu6kfv3znGBN7n</data></node>
<node id="n3" labels=":BTCAddress"><data key="labels">:BTCAddress</data><data key="hash">3KBSjKsSc4VKCfoWnj1fe8XHRhiG52gYZA</data></node>
<node id="n4" labels=":Transaction"><data key="labels">:Transaction</data><data key="txid">6489c12b5c90963cae7edaa0e91554fd29f2737d83d0af7e21732ad081d6481a</data></node>

@eduramiba
Copy link
Member

eduramiba commented Jun 26, 2017

It seems it's still not generating the key headers, that should look like:

<key id="labels" for="node" attr.name="labels" attr.type="string"/>

@xznhj8129
Copy link

has there been any progress at all on this issue? Same problem

@eduramiba
Copy link
Member

@snow-frog the issue is still open in neo4j neo4j-contrib/neo4j-apoc-procedures#466

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

4 participants