Objects(对象(Objects))¶
Object media types describe the contract for attaching object metadata to a drag payload. The Palantir platform accepts these media types, so adding them to your drag payloads allows related drop zones to receive data containing this media type. Creating drop zones with these media types means you can drag payloads from related drag zones in the Palantir platform onto your drop zones. See media types and Palantir media types for more information.
Foundry¶
These are media types primarily used for data in Foundry and are backed by Foundry concepts.
Foundry object resource identifiers¶
Media type: "application/x-vnd.palantir.rid.phonograph2-objects.object"
Data shape: string[]
This media type can be used for transferring Foundry object resource identifiers (RIDs) on a DataTransfer.
Refer to the drag and drop zone tutorial for guidance on how to use this media type to implement drag and drop for your application. Refer to the Ontology overview documentation for information on how you can use these IDs to get object data, and review the object RID documentation for more information on Foundry object RIDs.
Usage¶
This media type can be written to a DataTransfer as follows:
const foundryObjectRids = ["ri.phonograph2-objects.main.object.XXXXXXX", "ri.phonograph2-objects.main.object.YYYYYYY"]
event.dataTransfer.setData(
"application/x-vnd.palantir.rid.phonograph2-objects.object",
JSON.stringify(foundryObjectRids)
);
Examples¶
In an Object Explorer view, the object icon is a drag zone that adds the Foundry object RID media type to the drag payload.

This drag payload can then be dropped onto the Vertex graph.

Gotham¶
These are media types primarily used in Gotham and are backed by Gotham concepts.
Gotham object identifiers¶
Media type: "application/x-vnd.palantir.rid.gotham.object"
Data shape: string[]
This media type can be used for transporting Gotham object identifiers on a DataTransfer. Gotham identifiers, also known as GIDs, are used to identify data and other concepts in Gotham.
Review the drag and drop tutorial for guidance on how to use this media type to implement drag and drop for your application.
Usage¶
This media type can be written to a DataTransfer as follows:
const gothamObjectIds = ["ri.gotham.XXXXXXXX", "ri.gotham.YYYYYYYYY"]
event.dataTransfer.setData(
"application/x-vnd.palantir.rid.gotham.object",
JSON.stringify(gothamObjectIds)
);
Examples¶
In the figure below, each of the cards is a Gotham object drag zone.

The following map drop zone accepts Gotham object drag payloads.

中文翻译¶
对象(Objects)¶
对象媒体类型描述了将对象元数据附加到拖拽载荷的契约。Palantir平台支持这些媒体类型,因此将它们添加到拖拽载荷中,可以让相关的放置区域接收包含此媒体类型的数据。创建具有这些媒体类型的放置区域,意味着您可以从Palantir平台中相关的拖拽区域将载荷拖拽到您的放置区域。更多信息请参阅媒体类型和Palantir媒体类型。
Foundry¶
这些是主要用于Foundry数据的媒体类型,并基于Foundry概念构建。
Foundry对象资源标识符(Foundry object resource identifiers)¶
媒体类型: "application/x-vnd.palantir.rid.phonograph2-objects.object"
数据格式: string[]
此媒体类型可用于在DataTransfer上传输Foundry对象资源标识符(RID)。
请参阅拖拽放置区域教程,了解如何使用此媒体类型为您的应用程序实现拖拽功能。有关如何使用这些ID获取对象数据的信息,请参阅本体论概述文档,并查看对象RID文档以获取有关Foundry对象RID的更多信息。
使用方法¶
此媒体类型可以按如下方式写入DataTransfer:
const foundryObjectRids = ["ri.phonograph2-objects.main.object.XXXXXXX", "ri.phonograph2-objects.main.object.YYYYYYY"]
event.dataTransfer.setData(
"application/x-vnd.palantir.rid.phonograph2-objects.object",
JSON.stringify(foundryObjectRids)
);
示例¶
在对象资源管理器(Object Explorer)视图中,对象图标是一个拖拽区域,它会将Foundry对象RID媒体类型添加到拖拽载荷中。

然后可以将此拖拽载荷放置到Vertex图上。

Gotham¶
这些是主要用于Gotham的媒体类型,并基于Gotham概念构建。
Gotham对象标识符(Gotham object identifiers)¶
媒体类型: "application/x-vnd.palantir.rid.gotham.object"
数据格式: string[]
此媒体类型可用于在DataTransfer上传输Gotham对象标识符。Gotham标识符(也称为GID)用于标识Gotham中的数据和其他概念。
请参阅拖拽教程,了解如何使用此媒体类型为您的应用程序实现拖拽功能。
使用方法¶
此媒体类型可以按如下方式写入DataTransfer:
const gothamObjectIds = ["ri.gotham.XXXXXXXX", "ri.gotham.YYYYYYYYY"]
event.dataTransfer.setData(
"application/x-vnd.palantir.rid.gotham.object",
JSON.stringify(gothamObjectIds)
);
示例¶
在下图中,每个卡片都是一个Gotham对象拖拽区域。

以下地图放置区域接受Gotham对象拖拽载荷。
