Create from text file
In KgBase, you can also add nodes through a text file.
In Graph view, you can add a node by selecting “Edit mode” at the top of the page, going to “Paste code” from the dropdown menu.
Paste the code
A pop-up window will appear, with an example of what the code should look like.
In the example pictured below, we are adding three nodes and two relationships (between Titanic and Kate, and Titanic and Leo).
Click the blue “Validate” button to ensure there are no syntax errors, and then click Save.
The nodes will then be created and will be displayed in the graph.
[movies.titanic] title="Titanic" year="1997" :actors kate leo [actors.kate] name="Kate Winslet" gender="female" [actors.leo] name="Lenoardo DiCaprio" gender="male"