Hi everybody,
I'm working on a parser to transform a file from "log-style" to a GEXF graph. Then I'd like to import that graph into Gephi 0.8. In order to build the GEXF file I'm using the gexf4j library. Unfortunately I've noticed that there's nothing for the "spell" attribute. I've just found a "Slice" class, but the history of Gephi (http://gexf.net/format/history.html) says that slice are renamed to spell... so, I want to be consistent with the last version of Gephi.
What should I use?
Thank you for your help.
Regards,
Francesco
[SOLVED] gexf4j and spells
-
- Gephi Community Manager
- Posts:964
- Joined:09 Dec 2009 14:41 [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: gexf4j and spells
Hi,
You need to use "spells". Unfortunately, gexf4j seems not maintained anymore, and may not be compliant with the latest changes of the GEXF format.
You need to use "spells". Unfortunately, gexf4j seems not maintained anymore, and may not be compliant with the latest changes of the GEXF format.
Re: gexf4j and spells
Hi,admin wrote:Hi,
You need to use "spells". Unfortunately, gexf4j seems not maintained anymore, and may not be compliant with the latest changes of the GEXF format.
since yesterday I've worked on gexf4j source to change it in according to latest version of GEXF draft, that is 1.2 (Gephi 0.8 compatible).
I'll let you know when I finish the changes.
Regards,
Francesco
-
- Gephi Community Manager
- Posts:964
- Joined:09 Dec 2009 14:41 [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: gexf4j and spells
Wow, thank you very much Francesco!
Re: gexf4j and spells
Hi,
I've almost completed the changes, but I have to implement timeformat in DOUBLE and INTEGER form (date and dateTime are done).
I haven't found anything on GEXF schema... What's their official form? E.g., 2012 for integer and 2012.04 for double?
Thanks,
Francesco
I've almost completed the changes, but I have to implement timeformat in DOUBLE and INTEGER form (date and dateTime are done).
I haven't found anything on GEXF schema... What's their official form? E.g., 2012 for integer and 2012.04 for double?
Thanks,
Francesco
-
- Gephi Community Manager
- Posts:964
- Joined:09 Dec 2009 14:41 [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: gexf4j and spells
Hi,
Yes it is.
Yes it is.
Re: gexf4j and spells
Ok, so the integer part is the year, while the decimal part is the month.admin wrote:Hi,
Yes it is.
Good, thanks.
Francesco
Re: gexf4j and spells
Ok, I've finished these changes:
- "timetype" attribute is renamed to "timeformat".
- <slices> and "slice" are renamed <spells> and "spell" correspondingly.
- Now the "timeformat" can be integer, double (default), date, dateTime
- Open intervals (non-inclusive) are added: "startopen" and "endopen" attributes.
- Bug fix on all "Attribute setTitle(String title)": the expression in checkArgument was wrong.
Now, how do we organize the update?
Bye,
Francesco Ficarola
- "timetype" attribute is renamed to "timeformat".
- <slices> and "slice" are renamed <spells> and "spell" correspondingly.
- Now the "timeformat" can be integer, double (default), date, dateTime
- Open intervals (non-inclusive) are added: "startopen" and "endopen" attributes.
- Bug fix on all "Attribute setTitle(String title)": the expression in checkArgument was wrong.
Now, how do we organize the update?
Bye,
Francesco Ficarola
-
- Gephi Community Manager
- Posts:964
- Joined:09 Dec 2009 14:41 [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: gexf4j and spells
No I mean, time can be encoded as an integer, like when you have snapshots. It could also be any floating point number.
Re: gexf4j and spells
Ah ok, so it can be any number, like a "user-timestamp". I'll fix that.admin wrote:No I mean, time can be encoded as an integer, like when you have snapshots. It could also be any floating point number.