# Best approach for Continuous Deployment of VG, Datasources, DB etc

**URL:** <https://community.stardog.com/t/best-approach-for-continuous-deployment-of-vg-datasources-db-etc/3971>\
**Category:** Support\
**Created:** [September 29, 2022, 3:56am UTC](https://community.stardog.com/t/best-approach-for-continuous-deployment-of-vg-datasources-db-etc/3971 "2022-09-29T03:56:12Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![PallaviA](https://avatars.discourse-cdn.com/v4/letter/p/ba9def/32.png) [@PallaviA](https://community.stardog.com/u/PallaviA)\
**Post date:** [September 29, 2022, 3:56am UTC](https://community.stardog.com/t/best-approach-for-continuous-deployment-of-vg-datasources-db-etc/3971/1 "2022-09-29T03:56:12Z")

</div>

Hi,

I have just begun understanding and using Stardog for a project and was wondering what would be the best way for continuous delivery/continuous deployment of Stardog related resources like virtual graphs, database, datasources etc.  
Currently, I manually change the VG/datasource through Studio, but like all manual processes, this is error prone too.  
Please suggest.

Thank you.

---

<div class="post-metadata">

**Author:** ![Himanshu\_Kapoor](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/himanshu_kapoor/32/1469_2.png) [@Himanshu\_Kapoor](https://community.stardog.com/u/Himanshu_Kapoor)\
**Post date:** [October 3, 2022, 6:59am UTC](https://community.stardog.com/t/best-approach-for-continuous-deployment-of-vg-datasources-db-etc/3971/2 "2022-10-03T06:59:42Z")

</div>

Hi ,

You can refer Stardog Command Line interface documentation.

> **[Stardog Admin CLI Reference](https://docs.stardog.com/stardog-admin-cli-reference/)**
>
> This chapter contains details of all stardog-admin CLI commands.

Thanks

---

<div class="post-metadata">

**Author:** ![PallaviA](https://avatars.discourse-cdn.com/v4/letter/p/ba9def/32.png) [@PallaviA](https://community.stardog.com/u/PallaviA)\
**Post date:** [October 12, 2022, 4:41am UTC](https://community.stardog.com/t/best-approach-for-continuous-deployment-of-vg-datasources-db-etc/3971/3 "2022-10-12T04:41:23Z")

</div>

@Himanshu_Kapoor - Are you suggesting to use CLI commands to write automated scripts for the deployment of VG, datasources etc. which are committed in Git?  
Or is there any other way?

---

<div class="post-metadata">

**Author:** ![kavin](https://avatars.discourse-cdn.com/v4/letter/k/ba8739/32.png) [@kavin](https://community.stardog.com/u/kavin)\
**Post date:** [October 12, 2022, 6:08am UTC](https://community.stardog.com/t/best-approach-for-continuous-deployment-of-vg-datasources-db-etc/3971/4 "2022-10-12T06:08:49Z")

</div>

@PallaviA You could use [python wrapper library](https://github.com/stardog-union/pystardog) / [REST API](https://stardog-union.github.io/http-docs/) to automate deployment of, but not limited to

1. RDF Namespaces
2. Data sources
3. Virtual Graphs
4. Named Graphs

---

<div class="post-metadata">

**Author:** ![Himanshu\_Kapoor](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/himanshu_kapoor/32/1469_2.png) [@Himanshu\_Kapoor](https://community.stardog.com/u/Himanshu_Kapoor)\
**Post date:** [October 13, 2022, 12:26pm UTC](https://community.stardog.com/t/best-approach-for-continuous-deployment-of-vg-datasources-db-etc/3971/5 "2022-10-13T12:26:55Z")

</div>

If am getting it correctly , you want to automate creating the datasource ,VGs on Startdog. If my understanding is correct , yes you can write the shell/batch scripts to automate this stuff and can use CLI commands as part of your script to create these resources on Stardog server

you can also look into :

> **[GitHub - stardog-union/pystardog: Python bindings for the Stardog Knowledge...](https://github.com/stardog-union/pystardog)**
>
> Python bindings for the Stardog Knowledge Graph platform - GitHub - stardog-union/pystardog: Python bindings for the Stardog Knowledge Graph platform

---

<div class="post-metadata">

**Author:** ![paulo.zanini](https://avatars.discourse-cdn.com/v4/letter/p/97f17d/32.png) [@paulo.zanini](https://community.stardog.com/u/paulo.zanini)\
**Post date:** [October 13, 2022, 1:36pm UTC](https://community.stardog.com/t/best-approach-for-continuous-deployment-of-vg-datasources-db-etc/3971/6 "2022-10-13T13:36:57Z")

</div>

Or else you can use the HTTP API. That's how we did CI/CD, with the advantage that your Stardog Server remains a dedicated Stardog Server and doesn't run a ton of extra services or scripts.  
[API Reference | ReDoc (stardog-union.github.io)](https://stardog-union.github.io/http-docs/)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [October 29, 2022, 12:26am UTC](https://community.stardog.com/t/best-approach-for-continuous-deployment-of-vg-datasources-db-etc/3971/7 "2022-10-29T00:26:11Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [November 15, 2022, 7:05am UTC](https://community.stardog.com/t/best-approach-for-continuous-deployment-of-vg-datasources-db-etc/3971/8 "2022-11-15T07:05:41Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [December 8, 2022, 7:56am UTC](https://community.stardog.com/t/best-approach-for-continuous-deployment-of-vg-datasources-db-etc/3971/9 "2022-12-08T07:56:04Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [January 2, 2023, 8:14am UTC](https://community.stardog.com/t/best-approach-for-continuous-deployment-of-vg-datasources-db-etc/3971/10 "2023-01-02T08:14:31Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [January 29, 2023, 11:04am UTC](https://community.stardog.com/t/best-approach-for-continuous-deployment-of-vg-datasources-db-etc/3971/11 "2023-01-29T11:04:27Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [February 26, 2023, 6:03am UTC](https://community.stardog.com/t/best-approach-for-continuous-deployment-of-vg-datasources-db-etc/3971/12 "2023-02-26T06:03:27Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [March 26, 2023, 5:17pm UTC](https://community.stardog.com/t/best-approach-for-continuous-deployment-of-vg-datasources-db-etc/3971/13 "2023-03-26T17:17:29Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [April 25, 2023, 4:38am UTC](https://community.stardog.com/t/best-approach-for-continuous-deployment-of-vg-datasources-db-etc/3971/14 "2023-04-25T04:38:46Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [May 25, 2023, 11:52pm UTC](https://community.stardog.com/t/best-approach-for-continuous-deployment-of-vg-datasources-db-etc/3971/15 "2023-05-25T23:52:11Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [June 27, 2023, 8:49pm UTC](https://community.stardog.com/t/best-approach-for-continuous-deployment-of-vg-datasources-db-etc/3971/16 "2023-06-27T20:49:12Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [July 31, 2023, 8:38am UTC](https://community.stardog.com/t/best-approach-for-continuous-deployment-of-vg-datasources-db-etc/3971/17 "2023-07-31T08:38:38Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [September 5, 2023, 3:27pm UTC](https://community.stardog.com/t/best-approach-for-continuous-deployment-of-vg-datasources-db-etc/3971/18 "2023-09-05T15:27:38Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [October 19, 2023, 12:05am UTC](https://community.stardog.com/t/best-approach-for-continuous-deployment-of-vg-datasources-db-etc/3971/19 "2023-10-19T00:05:50Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [December 5, 2023, 5:25pm UTC](https://community.stardog.com/t/best-approach-for-continuous-deployment-of-vg-datasources-db-etc/3971/20 "2023-12-05T17:25:04Z")

</div>



[Next page](https://community.stardog.com/t/best-approach-for-continuous-deployment-of-vg-datasources-db-etc/3971.md?page=2)
