[SOLVED] gexf4j and spells

All questions about the GEXF (see http://gexf.net before)
redcrow
Posts:11
Joined:13 Apr 2012 17:04
Location:Rome
Contact:
[SOLVED] gexf4j and spells

Post by redcrow » 13 Apr 2012 17:21

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

admin
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

Post by admin » 15 Apr 2012 14:18

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.

redcrow
Posts:11
Joined:13 Apr 2012 17:04
Location:Rome
Contact:

Re: gexf4j and spells

Post by redcrow » 15 Apr 2012 16:00

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

admin
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

Post by admin » 15 Apr 2012 16:26

Wow, thank you very much Francesco!

redcrow
Posts:11
Joined:13 Apr 2012 17:04
Location:Rome
Contact:

Re: gexf4j and spells

Post by redcrow » 16 Apr 2012 13:00

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

admin
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

Post by admin » 16 Apr 2012 14:49

Hi,

Yes it is.

redcrow
Posts:11
Joined:13 Apr 2012 17:04
Location:Rome
Contact:

Re: gexf4j and spells

Post by redcrow » 16 Apr 2012 14:59

admin wrote:Hi,

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

Good, thanks.

Francesco

redcrow
Posts:11
Joined:13 Apr 2012 17:04
Location:Rome
Contact:

Re: gexf4j and spells

Post by redcrow » 16 Apr 2012 16:05

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

admin
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

Post by admin » 16 Apr 2012 17:16

No I mean, time can be encoded as an integer, like when you have snapshots. It could also be any floating point number.

redcrow
Posts:11
Joined:13 Apr 2012 17:04
Location:Rome
Contact:

Re: gexf4j and spells

Post by redcrow » 16 Apr 2012 18:51

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.

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