Create objectType
还没有人认领这个 Issue。
评估
调研方向
首先查看链接的 Get objectType API 文档以及存储库中现有的 objectType REST 操作。根据 issue 中的示例定义创建操作及其请求 payload,然后验证是否可以为所述的本体填充工作流创建缺失的对象类型。
由索引模型根据 Issue 内容生成。
描述
I can get a new object type via the REST API... but I can't create one.
Which means if I have a collection of object types to create at the start of an engagement, I'm going to have to manually add them. Obviously via REST I wouldn't expect to have the full flexibility of the manual wizard, but I would expect to be able to CRUD the basics at least
I would expect the potential request payload to be similar to the Get objectType with the exception of the RID's of all the elements.
Expected Payload
{
"apiName": "employee",
"description": "A full-time or part-time employee of our firm",
"displayName": "Employee",
"status": "ACTIVE",
"primaryKey": "employeeId",
"properties": {
"employeeId": {
"dataType": {
"type": "integer"
},
},
"fullName": {
"dataType": {
"type": "string"
},
},
"office": {
"description": "The unique ID of the employee's primary assigned office",
"dataType": {
"type": "string"
},
},
"startDate": {
"description": "The date the employee was hired (most recently, if they were re-hired)",
"dataType": {
"type": "date"
},
}
},
}
As an example use case, this would allow me to populate an Ontology with a 1:1 mapping of a pre-existing model: by listing the current ontology objects and then creating the missing ones.
- 主要语言
- Python
- 星标
- 208
- 派生
- 49
- 平均合并
- 15 小时 8 分钟
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
palantir/foundry-platform-python 的其他 Issue
-
Feature Request: API endpoints to create Object Types, Action Types, and Link Types programmatically未关闭
难度 5/5 一周以上 新手友好度 35/100
palantir/foundry-platform-python#318 · 1 条评论 ·
-
AIP Agents API Seems Broken可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 3/5 1-2 天 新手友好度 35/100
-
难度 5/5 一周以上 新手友好度 15/100
-
难度 4/5 3-5 天 新手友好度 35/100
palantir/foundry-platform-python#200 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 25/100
palantir/foundry-platform-python#83 · 3 条评论 ·
查看 palantir/foundry-platform-python 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
cathrynlavery/diagram-design#441 ·
维护者通常 2 天内回复
-
[Cleanup] Include the public header in work_split.cpp可能已有人在做 @blozano-tt 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
tenstorrent/tt-metal#60850 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
backend::sglang bug language::python observability
难度 2/5 半天 新手友好度 65/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 75/100
OpenShot/openshot-qt#6202 ·
维护者通常 1 天内回复