How to convert the cypher query to Gremlin of OpenCypher to use it on Neptune

0

I have Cypher query: LOAD CSV WITH HEADERS FROM "file:///pois.csv" as line MERGE (poi:POI{id: line.id}) CALL apoc.create.setProperty(poi, line["p"], line["o"])

I need to convert it to Gremlin. Can anyone tell me is it a complex process?

  • Hello and thanks for the question. Have you had a chance to look at the Neptune bulk loader documentation? If you need to load CSV files that is going to be the fastest way. There is no way currently to transform the CSV during the load however. https://docs.aws.amazon.com/neptune/latest/userguide/load-data.html

  • @Prasun - are you still needing assistance here? Did AWS-KRL's comment prove useful?

  • @Taylor-AWS, yes this is now sorted

Prasun
asked 4 months ago144 views
1 Answer
0

Adding my comment (from above) as an answer in case others find this post and have similar questions.

If you need to load CSV files the Neptune bulk loader is going to be the simplest, and most efficient, that is going to be the fastest way. There is no way currently to transform the CSV during the load however.

The full documentation on using the loader can be found here:

https://docs.aws.amazon.com/neptune/latest/userguide/load-data.html

AWS
AWS-KRL
answered 4 months ago
profile picture
EXPERT
reviewed 23 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions