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
demandé il y a 5 mois158 vues
1 réponse
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
répondu il y a 4 mois
profile picture
EXPERT
vérifié il y a un mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions