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
- A connected Neo4j data-source in Linkurious
- CSV files containing nodes or 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
lke-plugin-csv-importer-{version number}.lke
plugin available here. -
Copy
lke-plugin-csv-importer-{version number}.lke
file to the following path<linkurious>/data/plugins
-
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:{ "csv-importer": { "basePath": "importer" } }
-
Click on
Save
To access the plugin it's recommended to create a custom action that will appear 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
If you prefer to access the plugin directly via URL, you need to retrieve the sourceKey and replace it within the link: https://{{baseurl}}/plugins/csv-importer/index.html?sourceKey={{sourceKey}}
Make sure you are logged in as an Admin user, and the Linkurious Enterprise schema is not in the strict mode.
-
Choose your CSV file and click the Upload button. You can get one of the following errors:
a. No source key defined in URL
b. No headers provided: Your CSV file starts with an empty line
c. Header has an empty value: One or more header values have no content
d. Missing values: Record/s 1, 4, 9, ...: Some records have less columns than the headers
e. Too many values: Record/s 1, 4, 9, ...: Some records have more columns than the headers
-
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
- Check if data has been imported successfully
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. Source or target node not found
b. Data-source is not available
c. Unauthorized access to the data-source
d. Unexpected error, check the logs: Default message if error is unknown. You can download the logs following [these steps] (https://doc.linkurio.us/admin-manual/latest/support/)
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.