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
feita há 5 meses159 visualizações
1 Resposta
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
respondido há 4 meses
profile picture
ESPECIALISTA
avaliado há um mês

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas