Wrap the code in a gcore-spark module, that a single import statement initializes the gcore-spark subsystem, reads the default catalog, and then is ready to execute queries by adding some gcore(string) : Graph method to the sparkSession.
If the query is a SELECT query, we should just return a dataframe
If the query is a CONSTRUCT, we should return some SparkGraph object, and maybe offer some simple basic methods to look into graphs (like returning a list of V, E, P dataframes, or even couple with a graph visualization libraries).
Wrap the code in a gcore-spark module, that a single import statement initializes the gcore-spark subsystem, reads the default catalog, and then is ready to execute queries by adding some gcore(string) : Graph method to the sparkSession.