[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 •Import CSV via API
Page 1 of 1

Import CSV via API

Posted: 06 Sep 2017 10:27
by ishais
Hi all,

Does anyone have a sample code showing how to import nodes & edges CSVs via the toolkit?

Thanks!

Re: Import CSV via API

Posted: 06 Sep 2017 16:31
by eduramiba
Hi,
This will be documented for 0.9.2 as the process to do it has changed (now importer API will be used for all csv files (whether they contain a matrix, edge list, nodes table oredges table). You can try to use the 0.9.2-SNAPSHOT version of the toolkit, which will have the spreadsheet importer classes https://github.com/gephi/gephi/blob/mas ... etCSV.java

Re: Import CSV via API

Posted: 06 Sep 2017 16:42
by eduramiba
Example of how to use the Import API with any file https://github.com/gephi/gephi-toolkit- ... xport.java

Re: Import CSV via API

Posted: 06 Sep 2017 16:56
by ishais
Thanks!