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
已提問 5 個月前檢視次數 160 次
1 個回答
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
已回答 4 個月前
profile picture
專家
已審閱 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南