Import CSV via API

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
ishais
Posts:4
Joined:29 Aug 2017 17:34
[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
Import CSV via API

Post by ishais » 06 Sep 2017 10:27

Hi all,

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

Thanks!

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: Import CSV via API

Post by eduramiba » 06 Sep 2017 16:31

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

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: Import CSV via API

Post by eduramiba » 06 Sep 2017 16:42

Example of how to use the Import API with any file https://github.com/gephi/gephi-toolkit- ... xport.java

ishais
Posts:4
Joined:29 Aug 2017 17:34
[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: Import CSV via API

Post by ishais » 06 Sep 2017 16:56

Thanks!

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