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달 전158회 조회
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
전문가
검토됨 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠