The CSV importer is an official plugin maintained by the Linkurious team that allows you to import external data from a CSV file into Linkurious Enterprise. It makes it possible to transform tabular data into rich graph visualizations quickly.
- Linkurious Enterprise 2.9.x or above
- CSV files containing nodes and edges structured as follows:
Two sample CSV files, for nodes and edges, are available here:
person.csv
contains information about person entities (a node);ping.csv
contains information about relationships between two person nodes (a relationship).
Make sure to have write access to the folder of Linkurious Enterprise as well as a Linkurious admin account.
-
Download the
csv-importer.lke
plugin available here. -
Copy
csv-importer.lke
file to the following path<linkurious>/data/plugins
-
Restart Linkurious Enteprise
-
From the Linkurious Enterprise dashboard, go to
Admin
->Global configuration
-
Scroll to the
Plugin settings
field -
On the
Plugin settings
section, modify the content as follows:{ "importer": { "basePath": "importer" } }
-
Click on
Save
To access the plugin you need to create a custom action that will appears in right-click context menu within the Linkurious Enterprise UI.
In order to do so:
- Open the Custom action panel (more information here)
- Click on
NEW CUSTOM ACTION
- Give a title within the
Custom action name
field - Fill the
URL template
field with the following URL:{{baseurl}}plugins/importer/index.html?sourceKey={{sourcekey}}
- (Optional) Share the Custom Action with all users
- Click on
SAVE
- Choose your CSV file and click the Upload button
- Specify if you are uploading nodes or edges
- Confirm the category name/edge type and the list of properties
- For edges, specify the categories for the source and destination nodes
- Click import
After the import, you will get one of the following results:
-
Successful: All nodes / edges have been imported
-
Failed: Nothing has been imported
-
Incomplete: Some nodes/edges failed to be imported due to one of the following reasons:
a. Schema non-compliant data The schema type has phone as number, but in the csv the value of phone is a string. Same for date or booleans or other incompatible types
b. Unexpected properties (in strict schema) If the schema type has name and phone, but in your csv you have the headers name, phone, email, then it will fail for email
c. Missing required properties If the schema type has phone as required, but your csv has only name
d. Too many or missing header values Your header has 3 property names, but some rows have less than 3 or more than 3 comma-separated values
e. Source or target node does not exist
f. Data-source is not available (including read-only)
g. Unauthorized access to the data-source
h. Error unknown Default message if error is not known
The maximum file size currently supported is 3.5MB.
The Linkurious CSV importer plugin is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.