palantir-hello-world

Featured

Create a minimal working Palantir Foundry example querying Ontology objects. Use when starting a new Foundry integration, testing your setup, or learning basic Foundry API and Ontology patterns. Trigger with phrases like "palantir hello world", "palantir example", "palantir quick start", "foundry first query".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Palantir Hello World ## Overview Build a minimal working example that connects to Palantir Foundry, queries Ontology objects via the REST API, reads a dataset, and applies an action. Uses real `foundry-platform-sdk` Python API calls. ## Prerequisites - Completed `palantir-install-auth` setup - Valid bearer token or OAuth2 credentials - At least one Ontology with object types configured in your Foundry enrollment ## Instructions ### Step 1: List Available Ontologies ```python import os import foundry client = foundry.FoundryClient( auth=foundry.UserTokenAuth( hostname=os.environ["FOUNDRY_HOSTNAME"], token=os.environ["FOUNDRY_TOKEN"], ), hostname=os.environ["FOUNDRY_HOSTNAME"], ) # List all ontologies you have access to for ont in client.ontologies.Ontology.list(): print(f"Ontology: {ont.api_name} RID: {ont.rid}") ``` ### Step 2: Query Ontology Objects ```python # List objects of type "Employee" from the default ontology # The object type api_name comes from your Ontology configuration ONTOLOGY = "your-ontology-api-name" OBJECT_TYPE = "Employee" objects = client.ontologies.OntologyObject.list( ontology=ONTOLOGY, object_type=OBJECT_TYPE, page_size=5, ) for obj in objects.data: props = obj.properties print(f" {props.get('fullName', 'N/A')} — {props.get('department', 'N/A')}") ``` ### Step 3: Get a Single Object by Primary Key ```python employee = client.ontologies.OntologyObject.get( ontology=ONTOLOGY, obje...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

palantir-core-workflow-b

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".

2,266 Updated today
jeremylongshore
AI & Automation Featured

palantir-reference-architecture

Implement Palantir Foundry reference architecture with best-practice project layout. Use when designing new Foundry integrations, planning data pipeline architecture, or establishing patterns for Ontology-driven applications. Trigger with phrases like "palantir architecture", "foundry best practices", "foundry project structure", "how to organize palantir".

2,266 Updated today
jeremylongshore
AI & Automation Featured

palantir-install-auth

Install and configure Palantir Foundry SDK authentication with OAuth2 or token auth. Use when setting up a new Foundry integration, configuring API credentials, or initializing the foundry-platform-sdk in your project. Trigger with phrases like "install palantir", "setup palantir", "palantir auth", "configure palantir API key", "foundry SDK setup".

2,266 Updated today
jeremylongshore
AI & Automation Featured

palantir-common-errors

Diagnose and fix Palantir Foundry common errors and API exceptions. Use when encountering Foundry errors, debugging failed API calls, or troubleshooting transform build failures. Trigger with phrases like "palantir error", "fix palantir", "foundry not working", "debug foundry", "palantir 401 403".

2,266 Updated today
jeremylongshore
AI & Automation Featured

palantir-observability

Set up observability for Palantir Foundry integrations with metrics, logging, and alerts. Use when implementing monitoring for Foundry API calls, setting up dashboards, or configuring alerting for Foundry integration health. Trigger with phrases like "palantir monitoring", "foundry metrics", "palantir observability", "monitor foundry", "foundry alerts".

2,266 Updated today
jeremylongshore