I saw a lot of tutorials about how to load csv (Gremlin) data in the format of vertices and edges into AWS Neptune. For a lot of reasons, I cannot create vertices and edges for data loading. Instead I have just the raw csv file where each row is a record (e.g. a person).
How can I create nodes and relationships from each row of record from the raw csv in Neptune from the notebook interface?
Given you mentioned wanting to do this in the notebooks, the examples below are all run from inside a Jupyter notebook. I don't have the data sets you mentioned to hand, so let's make a simple one in a Notebook cell using.
We can then generate the openCypher CREATE steps for the nodes contained in that CSV file using a simple cell such as:
Which yields
Finally let's have the notebook
oc
cell magic run that query for usTo verify that the query worked
which returns:
There are many ways you could do this, but this is a simple way if you want to stay inside the notebooks. Given your question does not have a lot of detail or an example of what you have tried so far, hopefully this gives you some pointers.