GraphML import data key values?

Get help with your data
Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
bassman
Posts:9
Joined:25 May 2011 18:29
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
GraphML import data key values?

Post by bassman » 21 Jan 2017 15:14

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>

bassman
Posts:9
Joined:25 May 2011 18:29
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: GraphML import data key values?

Post by bassman » 22 Jan 2017 22:07

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...

User avatar
eduramiba
Gephi Code Manager
Posts:1064
Joined:22 Mar 2010 15:30
Location:Madrid, Spain
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: GraphML import data key values?

Post by eduramiba » 23 Jan 2017 16:11

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?

bassman
Posts:9
Joined:25 May 2011 18:29
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: GraphML import data key values?

Post by bassman » 23 Jan 2017 17:43

Done!

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable