跳转至

OSDK React applications(OSDK React 应用)

Developer Console enables application builders to build completely customizable user interfaces using React ↗ and powered by the Ontology Software Development Kit (OSDK). By choosing React to build your application, you can leverage the pre-existing developer experience and incredible community investments into this technology to quickly deliver best-in-class user interfaces. By treating Foundry as your backend, you can leverage the Ontology's robust ability to perform high-scale queries and Foundry edits alongside granular governance controls to accelerate the process of securely developing applications that can power your organization.

This section of documentation will walk you through the creation, development, and deployment process of a React application within the Palantir platform.

Development tools

Within the platform, we recommend using VS Code as your code editing tool. For more information on supported development tools, review the following documentation:

OSDK documentation

OSDK is language-agnostic. Along with providing an NPM (Node Package Manager) library for TypeScript, we also support Pip and Conda for Python, Maven for Java, and OpenAPI specs for any other language. You can review other OSDK and Developer Console documentation using the links below:

Examples and additional resources

Explore OSDK reference examples directly from the Examples application in the platform or the Developer Console home page. These examples provide self-paced lessons that demonstrate various OSDK capabilities to help you get started building your own applications:

  • Getting started with Ontology SDK (OSDK): Build a to-do application: Dive into this step-by-step tutorial and learn how to create your very own to-do application using the power of the Ontology SDK (OSDK). The OSDK allows you to access the full power of the ontology directly from your development environment and treat Foundry as the backend to develop custom applications. This comprehensive guide will teach you everything from setting up your development environment to deploying your final product.

  • Ontology SDK (OSDK) with AIP Logic: Build a to-do application powered by AIP Logic: AIP Logic is not locked inside Foundry; you can use it from anywhere you want. Dive into this step-by-step tutorial and learn how to create your very own to-do application using the power of OSDK. This comprehensive guide will teach you everything from setting up your development environment to running your application in production, including calling AIP Logic functions from React or Python applications.

  • Create custom Workshop widgets using the Ontology SDK (OSDK): Use the Iframe widget in Workshop to embed Foundry web-hosted React applications in Workshop and share state bi-directionally.

Each example includes step-by-step instructions and code samples that you can follow at your own pace to gain hands-on experience with different OSDK features and implementation patterns.

Advanced examples

  • Advanced to-do application with the Ontology SDK (OSDK): This project demonstrates advanced features of the Ontology SDK (OSDK) using a to-do application as a practical example.

中文翻译


OSDK React 应用

开发者控制台(Developer Console) 使应用构建者能够使用 React ↗ 构建完全可定制的用户界面,并由本体软件开发工具包(OSDK)提供支持。通过选择 React 构建应用,您可以利用现有的开发者体验和该技术领域庞大的社区投入,快速交付一流的用户界面。将 Foundry 作为后端,您可以利用本体强大的高并发查询和编辑能力,结合精细化的治理控制,加速安全开发能够驱动组织运转的应用。

本文档将引导您完成在 Palantir 平台内创建、开发和部署 React 应用的完整流程。

开发工具

在平台内,我们推荐使用 VS Code 作为代码编辑工具。有关支持的开发工具的更多信息,请参阅以下文档:

OSDK 文档

OSDK 与语言无关。除了为 TypeScript 提供 NPM(Node 包管理器)库外,我们还为 Python 提供 Pip 和 Conda 支持,为 Java 提供 Maven 支持,并为其他语言提供 OpenAPI 规范。您可以通过以下链接查阅其他 OSDK 和开发者控制台文档:

示例与额外资源

您可以直接从平台内的示例(Examples)应用或开发者控制台首页探索 OSDK 参考示例。这些示例提供自定进度的课程,展示各种 OSDK 功能,帮助您快速上手构建自己的应用:

  • 本体 SDK(OSDK)入门:构建待办事项应用: 深入此分步教程,学习如何利用本体 SDK(OSDK)的强大功能创建自己的待办事项应用。OSDK 允许您直接从开发环境访问本体的全部功能,并将 Foundry 作为后端来开发自定义应用。本综合指南将教您从设置开发环境到部署最终产品的所有内容。

  • 本体 SDK(OSDK)与 AIP Logic 结合:构建由 AIP Logic 驱动的待办事项应用: AIP Logic 并不局限于 Foundry 内部;您可以在任何需要的地方使用它。深入此分步教程,学习如何利用 OSDK 的强大功能创建自己的待办事项应用。本综合指南将教您从设置开发环境到在生产环境中运行应用的所有内容,包括从 React 或 Python 应用调用 AIP Logic 函数。

  • 使用本体 SDK(OSDK)创建自定义 Workshop 组件: 使用 Workshop 中的 Iframe 组件,将 Foundry 网页托管的 React 应用嵌入 Workshop,并实现双向状态共享。

每个示例都包含分步说明和代码示例,您可以按照自己的节奏学习,获得不同 OSDK 功能和实现模式的实践经验。

高级示例

  • 使用本体 SDK(OSDK)的高级待办事项应用: 本项目以待办事项应用为实际案例,展示了本体 SDK(OSDK)的高级功能。