Bulk loading using Json, python or Scala?


Yihang Yan <yanyi...@...>
 

I see.. we need to use GraphML file. The issue here is our graph might contain billions of nodes, will Python client be able to handle that?

Thanks!


On Friday, June 16, 2017 at 12:24:25 AM UTC-4, David Brown wrote:
You should be able to bulk load with any client that allows you to submit raw gremlin scripts to the server. For example, you can do it with ipython-gremlin, check out cell # 2: https://github.com/davebshow/ipython-gremlin/blob/master/example.ipynb. You could submit that same script with the new Python client that will be released with TinkerPop 3.2.5 in a couple days. You can also do it with the driver included with aiogremlin 3.2.4+ [1]. Maybe someone with more expertise could weigh in about the Scala client.

Best of luck!

Dave


On Thursday, June 15, 2017 at 12:03:03 PM UTC-4, Yihang Yan wrote:
Other than Groovy, is it possible to do bulk loading using Json, python or Scala? Any sample code could be provided?

Thanks!


Yihang Yan <yanyi...@...>
 

Thanks, Dave! I am wondering what's the recommended format of the data, xml, txt or csv ?


On Friday, June 16, 2017 at 12:24:25 AM UTC-4, David Brown wrote:
You should be able to bulk load with any client that allows you to submit raw gremlin scripts to the server. For example, you can do it with ipython-gremlin, check out cell # 2: https://github.com/davebshow/ipython-gremlin/blob/master/example.ipynb. You could submit that same script with the new Python client that will be released with TinkerPop 3.2.5 in a couple days. You can also do it with the driver included with aiogremlin 3.2.4+ [1]. Maybe someone with more expertise could weigh in about the Scala client.

Best of luck!

Dave


On Thursday, June 15, 2017 at 12:03:03 PM UTC-4, Yihang Yan wrote:
Other than Groovy, is it possible to do bulk loading using Json, python or Scala? Any sample code could be provided?

Thanks!


David Brown <dave...@...>
 

You should be able to bulk load with any client that allows you to submit raw gremlin scripts to the server. For example, you can do it with ipython-gremlin, check out cell # 2: https://github.com/davebshow/ipython-gremlin/blob/master/example.ipynb. You could submit that same script with the new Python client that will be released with TinkerPop 3.2.5 in a couple days. You can also do it with the driver included with aiogremlin 3.2.4+ [1]. Maybe someone with more expertise could weigh in about the Scala client.

Best of luck!

Dave

1. http://aiogremlin.readthedocs.io/en/latest/usage.html#using-the-driver-module

On Thursday, June 15, 2017 at 12:03:03 PM UTC-4, Yihang Yan wrote:
Other than Groovy, is it possible to do bulk loading using Json, python or Scala? Any sample code could be provided?

Thanks!


Yihang Yan <yanyi...@...>
 

Other than Groovy, is it possible to do bulk loading using Json, python or Scala? Any sample code could be provided?

Thanks!