How to download the ttl file containing schema of the knowledge grapg using python

I wanted to download a ttl file using stardog python library "pystardog", which I can download using the model section of the UI of stardog studio. It is shown below:

The database is "band_data" with the following named graphs:

Can anyone please help me download the TTL file using python and stardog API ?

Hi Vipul. A very similar question has been asked recently. See if this helps you: Download model via `pystardog` or HTTP API - #3 by noahgorstein

Cheers,
Noah