Oracle Big Data Spatial and Graph - technical tips, best practices, and news from the product team

  • October 18, 2017

One Line of Python Code to Export a Property Graph to Flat Files

Alan Wu

Last week I got a question on exporting a property graph to flat files in Python. Turns out that JPype can cause a bit of headache with "no matching overloads found."

An easy solution is as follows:

 JClass("oracle.pg.common.OraclePropertyGraphUtilsBase").exportFlatFiles(opg, "/tmp/g.opv", "/tmp/g.ove", False)

This solution is very cool in the sense that it works with any of the three supported property graph backend databases: Oracle Database, Oracle NoSQL Database, and Apache HBase.

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.