| name | palantir-core-workflow-b |
| description | Work with Palantir Foundry Ontology objects, actions, and queries via SDK.
Use when querying objects, applying actions, linking objects,
or building Ontology-driven applications.
Trigger with phrases like "palantir ontology", "foundry objects",
"palantir actions", "ontology query", "OSDK objects".
|
| allowed-tools | Read, Write, Edit, Bash(pip:*), Bash(npm:*), Grep |
| version | 1.5.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","palantir","foundry","ontology","osdk","actions"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Palantir Core Workflow B — Ontology Objects & Actions
Overview
Query, filter, and mutate Ontology objects using the Foundry Platform SDK and OSDK. Covers listing objects with property filters, following links between object types, applying actions, and aggregating object data. This is the primary workflow for Ontology-driven applications.
Prerequisites
- Completed
palantir-install-auth setup
- An Ontology with configured object types, link types, and actions
- Familiarity with
palantir-core-workflow-a (data pipelines feed the Ontology)
Instructions
Step 1: List and Filter Objects (REST API)
import os, foundry
client = foundry.FoundryClient(
auth=foundry.UserTokenAuth(
hostname=os.environ["FOUNDRY_HOSTNAME"],
token=os.environ["FOUNDRY_TOKEN"],
),
hostname=os.environ["FOUNDRY_HOSTNAME"],
)
ONTOLOGY = "my-company"
result = client.ontologies.OntologyObject.list(
ontology=ONTOLOGY,
object_type="Employee",
page_size=20,
order_by="hireDate:asc",
properties={"department": "Engineering"},
)
for obj in result.data:
p = obj.properties
print(f"{p['fullName']} | {p['department']} | hired {p['hireDate']}")
Step 2: Search Objects with Filters
search_result = client.ontologies.OntologyObject.search(
ontology=ONTOLOGY,
object_type="Employee",
where={
"type": "and",
"value": [
{"type": , : , : },
{: , : , : },
],
},
page_size=,
)
()