GSQL Queries to run in TG from Python

Hi I want to know if it is possible to write a generalized query for multiple graph from python to Tiger Graph. For example if I have 3 different graph(example Insurance, banking, retail ) and want to make a generalize query in Jupyter(GSQL Queries) wherein I can pass different vertex and edges as parameters can it be done? (all in python), if yes, how can I write a query for it if there is any particular example for it. Hope this explainatian is helpful as to what I’m looking for. thank you!

Hi @ms23,

TigerGraph’s Graph Data Science library uses a “schemaless” technique allowing you to run the GSQL algorithms on any solution. This is possible when you execute the queries you pass the vertex and edge as parameters.

There are quite a few GSQL examples you can pull from this repository:

Let me know if that helps, or if you have additional follow-up questions!

1 Like