[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 583: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 639: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
Gephi forums •GraphML import data key values?
Page 1 of 1

GraphML import data key values?

Posted: 21 Jan 2017 15:14
by bassman
I'm trying to load GraphML into Gephi, generated from Neo4j APOC, but the data key values are ignored. Is there a way to also import the data key values, so I don't just have the computer-generated node IDs? Here is a snippet of the data keys I'm trying to load, extracted from the actual GraphML. I'd like to use the "name" data key for labels, but also load-in the "labels" and "uuid" data keys.

<node id="n0" labels=":IT_System">
<data key="labels">:IT_System</data>
<data key="uuid">C287B4F6-57E5-4A15-A505-4685515F1F44</data>
<data key="name">Name A</data>
</node>
<node id="n1" labels=":IT_System">
<data key="labels">:IT_System</data>
<data key="uuid">170FD71A-48C4-4FFE-B2B5-B225186ADC48</data>
<data key="name">Name B</data>
</node>
<node id="n2" labels=":IT_System">
<data key="labels">:IT_System</data>
<data key="name">Name C</data>
<data key="uuid">0395BBC7-C375-4489-BF8D-9983CF8BB297</data>
</node>

Re: GraphML import data key values?

Posted: 22 Jan 2017 22:07
by bassman
I found a bit more. The problem is with the way the GraphML is formatted. The format that Gephi "likes" is documented here: viewtopic.php?f=29&t=5878&p=13712&hilit=graphml#p13712

Unfortunately, the Gephi documentation implies that the format that APOC generates GraphML works, which it does not: https://gephi.org/users/supported-graph ... ml-format/

Sigh...

Re: GraphML import data key values?

Posted: 23 Jan 2017 16:11
by eduramiba
Hi,
We should review the GraphML importer to be able to handle all types of files.
Could you create an issue at http://github.com/gephi/gephi/issues please?

Re: GraphML import data key values?

Posted: 23 Jan 2017 17:43
by bassman
Done!