# Programmatic Ontology Management in Palantir Foundry: Alternatives to GUI-based Approach?

**URL:** <https://community.palantir.com/t/programmatic-ontology-management-in-palantir-foundry-alternatives-to-gui-based-approach/979>\
**Category:** Ask the Community\
**Tags:** ontology-management\
**Created:** [August 9, 2024, 11:09am UTC](https://community.palantir.com/t/programmatic-ontology-management-in-palantir-foundry-alternatives-to-gui-based-approach/979 "2024-08-09T11:09:50Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![nick\_simpson](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/nick_simpson/32/1099_2.png) [@nick\_simpson](https://community.palantir.com/u/nick_simpson)\
**Post date:** [August 9, 2024, 11:09am UTC](https://community.palantir.com/t/programmatic-ontology-management-in-palantir-foundry-alternatives-to-gui-based-approach/979/1 "2024-08-09T11:09:50Z")

</div>

The Palantir Foundry ontology appears to be primarily managed through the graphical Ontology Manager interface. Are there any Infrastructure-as-Code (IaC) approaches or APIs available for programmatically defining and managing the ontology structure? I’m looking for methods to automate ontology creation and updates with less reliance on the GUI. Any insights into more code-centric ways to manage the ontology would be appreciated

---

<div class="post-metadata">

**Author:** ![tmiskow](https://avatars.discourse-cdn.com/v4/letter/t/5fc32e/32.png) [@tmiskow](https://community.palantir.com/u/tmiskow)\
**Post date:** [August 13, 2024, 11:01am UTC](https://community.palantir.com/t/programmatic-ontology-management-in-palantir-foundry-alternatives-to-gui-based-approach/979/2 "2024-08-13T11:01:10Z")

</div>

Hey! Unfortunately, this feature is not possible yet. The GUI is the only supported way at the moment ☹

---

<div class="post-metadata">

**Author:** ![HugoRodrigues](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/hugorodrigues/32/999_2.png) [@HugoRodrigues](https://community.palantir.com/u/HugoRodrigues)\
**Post date:** [August 14, 2024, 6:59am UTC](https://community.palantir.com/t/programmatic-ontology-management-in-palantir-foundry-alternatives-to-gui-based-approach/979/3 "2024-08-14T06:59:00Z")

</div>

Hi @nick_simpson - I am not sure what do you mean as Infrastructure-as-Code (IaC) and I am going to assume you are scoping just one organization.

The APIs available for programmatically defining and managing the ontology structure can be reverse-engineered by the devTools and then consolidated into Postman collections.

There’s also the [GitHub - palantir/foundry-platform-python: The official Python library for the Foundry API](https://github.com/palantir/foundry-platform-python). This effort is at embryonic stage and contains some ontology endpoints. If expanded and integrated with the OSDK developer console, could potentially solve your problem.

---

<div class="post-metadata">

**Author:** ![nick\_simpson](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/nick_simpson/32/1099_2.png) [@nick\_simpson](https://community.palantir.com/u/nick_simpson)\
**Post date:** [August 14, 2024, 8:16am UTC](https://community.palantir.com/t/programmatic-ontology-management-in-palantir-foundry-alternatives-to-gui-based-approach/979/4 "2024-08-14T08:16:34Z")

</div>

Hi @HugoRodrigues

Thanks for taking the time to respond.

> I am not sure what do you mean as Infrastructure-as-Code (IaC)

The IaC (declarative) approach defines the desired state and the system executes what needs to happen to achieve that desired state.

Please see [this post](https://community.palantir.com/t/implementing-infrastructure-as-code-iac-for-ontology-management-in-palantir-foundry/1016) relating to IaC for the Ontology.

Thanks,  
Nick

---

<div class="post-metadata">

**Author:** ![bwolcott](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@bwolcott](https://community.palantir.com/u/bwolcott)\
**Post date:** [August 16, 2024, 10:19pm UTC](https://community.palantir.com/t/programmatic-ontology-management-in-palantir-foundry-alternatives-to-gui-based-approach/979/5 "2024-08-16T22:19:22Z")

</div>

@nick_simpson, Have a look at OSDK if you haven’t already. “The Ontology Software Development Kit (SDK) allows you to access the full power of the Ontology directly from your development environment.” https://www.palantir.com/docs/foundry/ontology-sdk/overview/

---

<div class="post-metadata">

**Author:** ![bobbyfidz](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/bobbyfidz/32/1241_2.png) [@bobbyfidz](https://community.palantir.com/u/bobbyfidz)\
**Post date:** [August 19, 2024, 8:53am UTC](https://community.palantir.com/t/programmatic-ontology-management-in-palantir-foundry-alternatives-to-gui-based-approach/979/6 "2024-08-19T08:53:40Z")

</div>

@nick_simpson I hear this is being worked on, almost certainly not stable but you can peek here https://github.com/palantir/osdk-ts/tree/main/packages/maker

---

<div class="post-metadata">

**Author:** ![nick\_simpson](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/nick_simpson/32/1099_2.png) [@nick\_simpson](https://community.palantir.com/u/nick_simpson)\
**Post date:** [August 19, 2024, 10:34am UTC](https://community.palantir.com/t/programmatic-ontology-management-in-palantir-foundry-alternatives-to-gui-based-approach/979/7 "2024-08-19T10:34:06Z")

</div>

Hi @bwolcott @bobbyfidz The OSDK looks interesting but ideally I would like to use a declarative approach which defines the desired state and the system executes what needs to happen to achieve that desired state.

Please see [this post](https://community.palantir.com/t/implementing-infrastructure-as-code-iac-for-ontology-management-in-palantir-foundry/1016) relating to IaC for the Ontology.

Thanks

---

<div class="post-metadata">

**Author:** ![aparson](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@aparson](https://community.palantir.com/u/aparson)\
**Post date:** [August 19, 2024, 12:14pm UTC](https://community.palantir.com/t/programmatic-ontology-management-in-palantir-foundry-alternatives-to-gui-based-approach/979/8 "2024-08-19T12:14:48Z")

</div>

Hey @nick_simpson we are working on exactly what you described. @bobbyfidz found our package for defining ontologies in typescript 🙃. This package is our first step in enabling these kinds of declarative code → ontology workflows.

Right now it is early days but it should roughly enable you to define an ontology in code, and then in CI/CD take that definition and push to to foundry as a marketplace product. You can then install the marketplace product (which creates/updates the ontology) either manually or in CI/CD.

---

<div class="post-metadata">

**Author:** ![nick\_simpson](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/nick_simpson/32/1099_2.png) [@nick\_simpson](https://community.palantir.com/u/nick_simpson)\
**Post date:** [August 20, 2024, 8:54am UTC](https://community.palantir.com/t/programmatic-ontology-management-in-palantir-foundry-alternatives-to-gui-based-approach/979/9 "2024-08-20T08:54:18Z")

</div>

Thanks @ [aparson](https://community.palantir.com/u/aparson). Are there any tutorials etc for using this? Appreciate its early days so probably not yet.

---

<div class="post-metadata">

**Author:** ![aparson](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@aparson](https://community.palantir.com/u/aparson)\
**Post date:** [August 20, 2024, 10:42am UTC](https://community.palantir.com/t/programmatic-ontology-management-in-palantir-foundry-alternatives-to-gui-based-approach/979/10 "2024-08-20T10:42:49Z")

</div>

Currently there is no way for you to use this tooling. The infrastructure is still under development and testing.

---

<div class="post-metadata">

**Author:** ![jdbermeo251](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/jdbermeo251/32/2806_2.png) [@jdbermeo251](https://community.palantir.com/u/jdbermeo251)\
**Post date:** [June 2, 2026, 10:37am UTC](https://community.palantir.com/t/programmatic-ontology-management-in-palantir-foundry-alternatives-to-gui-based-approach/979/11 "2026-06-02T10:37:14Z")

</div>

Hi,

Is there a follow up on this. I found https://github.com/palantir/osdk-ts/tree/main/packages/maker to define the ontology with TS, but I have not found any documentation on the CI/CD to push it to Ontology Manager within the context of a Marketplace product.

Are there any tutorials with similar logic for the CI/CD step?

thanks!

EDIT: my bad, it was already answered here https://community.palantir.com/t/ontology-as-code-beta/5257
