[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 •[SOLVED] gexf4j and spells
Page 1 of 2

[SOLVED] gexf4j and spells

Posted: 13 Apr 2012 17:21
by redcrow
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

Re: gexf4j and spells

Posted: 15 Apr 2012 14:18
by admin
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.

Re: gexf4j and spells

Posted: 15 Apr 2012 16:00
by redcrow
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.
Hi,

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

Re: gexf4j and spells

Posted: 15 Apr 2012 16:26
by admin
Wow, thank you very much Francesco!

Re: gexf4j and spells

Posted: 16 Apr 2012 13:00
by redcrow
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

Re: gexf4j and spells

Posted: 16 Apr 2012 14:49
by admin
Hi,

Yes it is.

Re: gexf4j and spells

Posted: 16 Apr 2012 14:59
by redcrow
admin wrote:Hi,

Yes it is.
Ok, so the integer part is the year, while the decimal part is the month.

Good, thanks.

Francesco

Re: gexf4j and spells

Posted: 16 Apr 2012 16:05
by redcrow
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

Re: gexf4j and spells

Posted: 16 Apr 2012 17:16
by admin
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

Posted: 16 Apr 2012 18:51
by redcrow
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.
Ah ok, so it can be any number, like a "user-timestamp". I'll fix that.