Loading...
Loading...
Compare original and translation side by side
datahub graphqlallowed-toolsmetadata-searcher../shared-references/references/templates/datahub graphqlallowed-toolsmetadata-searcher../shared-references/references/templates/| If the user wants to... | Use this instead |
|---|---|
| Search or discover entities | |
| Explore lineage or dependencies | |
| Generate quality reports or audits | |
| Set up data quality assertions or incidents | |
| 如果用户需要... | 请使用对应技能 |
|---|---|
| 搜索或查找实体 | |
| 探查血缘或依赖关系 | |
| 生成质量报告或审计结果 | |
| 设置数据质量断言或事件 | |
`$|;&><\n`$|;&><\ | MCP tools | DataHub CLI ( | |
|---|---|---|
| Coverage | Common single-entity operations | All GraphQL mutations — batch, creation, structural |
| Tags | | |
| Terms | | |
| Owners | | |
| Descriptions | | |
| Domains | | |
| Deprecation | | |
| Not in MCP | — | Data products, structured properties, documents, links, batch ops, all creation mutations |
datahub graphql --query '...'| MCP工具 | DataHub CLI ( | |
|---|---|---|
| 覆盖范围 | 通用单实体操作 | 所有 GraphQL mutation — 批量、创建、结构调整 |
| 标签 | | |
| 术语 | | |
| 所有者 | | |
| 描述 | | |
| 域 | | |
| 弃用状态 | | |
| MCP不支持的功能 | — | 数据产品、结构化属性、文档、链接、批量操作、所有创建类mutation |
datahub graphql --query '...'| Operation | Batch Mutation | Single Mutation | Scope |
|---|---|---|---|
| Add tags | | | Entity or field |
| Remove tags | | | Entity or field |
| Add glossary terms | | | Entity or field |
| Remove glossary terms | | | Entity or field |
| Add owners | | | Entity |
| Remove owners | | | Entity |
| Set domain | | | Entity |
| Set deprecation | | | Entity |
| Set data product | | — | Entity |
| Update description | — (no batch) | | Entity or field |
| Structured properties | — | | Entity |
| Links | — | | Entity |
addOwnerremoveOwnersubResourceType: DATASET_FIELDsubResource: "<field_path>"| 操作 | 批量Mutation | 单Mutation | 作用范围 |
|---|---|---|---|
| 添加标签 | | | 实体或字段 |
| 移除标签 | | | 实体或字段 |
| 添加术语表术语 | | | 实体或字段 |
| 移除术语表术语 | | | 实体或字段 |
| 添加所有者 | | | 实体 |
| 移除所有者 | | | 实体 |
| 设置域 | | | 实体 |
| 设置弃用状态 | | | 实体 |
| 设置数据产品 | | — | 实体 |
| 更新描述 | —(无批量版本) | | 实体或字段 |
| 结构化属性 | — | | 实体 |
| 链接 | — | | 实体 |
addOwnerremoveOwnersubResourceType: DATASET_FIELDsubResource: "<字段路径>"| Operation | Mutation | Notes |
|---|---|---|
| Create tag | | See ID strategy in mutation reference |
| Create glossary term | | Can set parent node |
| Create glossary group | | Can set parent node |
| Move glossary item | | Reparent term or group; null removes parent |
| Create domain | | Optional |
| Move domain | | Reparent under another domain; null → top-level |
| Create data product | | Requires |
| Create document | | Optional parent document and related assets |
| Update document | | Title and text |
| Link document to assets | | Replaces related asset list |
| Move document | | Reparent; null/absent → root |
| 操作 | Mutation | 说明 |
|---|---|---|
| 创建标签 | | 参考mutation文档中的ID策略 |
| 创建术语表术语 | | 可设置父节点 |
| 创建术语表分组 | | 可设置父节点 |
| 移动术语表条目 | | 调整术语或分组的父级,设为null可移除父级 |
| 创建域 | | 可选 |
| 移动域 | | 挂载到其他域下,设为null则成为顶级域 |
| 创建数据产品 | | 需要 |
| 创建文档 | | 可选父文档和关联资产 |
| 更新文档 | | 更新标题和正文 |
| 关联文档到资产 | | 替换关联资产列表 |
| 移动文档 | | 调整父级,设为null/留空则移动到根目录 |
| Concept | Purpose | Example |
|---|---|---|
| Glossary terms | Define reusable business concepts — metric definitions, business terms, KPI formulas. Apply to entities and columns to create a shared vocabulary across the organization. | "Revenue" = net sales after returns. Applied to columns across Snowflake, dbt, and Looker so everyone agrees on the definition. |
| Glossary groups | Organize terms into hierarchical categories. | "Finance" group containing terms like "Revenue", "COGS", "Gross Margin". |
| Domains | Organize assets by business area or owning team. Hierarchical — a domain can contain sub-domains. Think org chart or functional area. | "Marketing" domain with sub-domains "Marketing > Campaigns" and "Marketing > Attribution". |
| Data products | Bundle related physical assets into a consumable unit that serves a concrete use case. Always belongs to a domain. | "Revenue Analytics" product containing |
| Tags | Lightweight, freeform labels for ad-hoc classification. No hierarchy or definitions. | |
| Documents | Rich-text context pages linked to assets. For data dictionaries, onboarding guides, runbooks. | A "Sales Data Onboarding" doc linked to the key tables a new analyst needs. |
| 概念 | 用途 | 示例 |
|---|---|---|
| 术语表术语 | 定义可复用的业务概念——指标定义、业务术语、KPI计算公式。应用到实体和列上,为整个组织建立统一的词汇表。 | "营收" = 扣除退货后的净销售额。应用到Snowflake、dbt和Looker的相关列上,确保所有人对定义的认知一致。 |
| 术语表分组 | 将术语组织成分层分类结构。 | "财务"分组包含"营收"、"销货成本"、"毛利率"等术语。 |
| 域 | 按业务领域或所属团队组织资产,支持层级结构——一个域可以包含子域,类似组织架构或功能分区。 | "营销"域包含"营销>活动"和"营销>归因"两个子域。 |
| 数据产品 | 将相关的物理资产打包成可消费的单元,服务于具体的使用场景,始终归属于某个域。 | "营收分析"产品包含 |
| 标签 | 轻量、自由的标签,用于临时分类,没有层级或定义。 | |
| 文档 | 关联到资产的富文本上下文页面,用于数据字典、入职指南、运行手册等场景。 | 关联到新分析师需要使用的核心表的"销售数据入职指南"文档。 |
--projectionproperties { name description }subTypesdomainproperties { name description }subTypesdomain--projectionundefinedundefined<URN>| Field | Current Value | New Value |
|---|---|---|
| <field> | <current> | <proposed> |
For bulk operations, show the scope and a sample of matched entities. See `templates/enrichment-plan.template.md` for the full template.
---<URN>| 字段 | 当前值 | 新值 |
|---|---|---|
| <字段名> | <当前值> | <建议值> |
批量操作展示操作范围和匹配实体的样例,完整模板参考`templates/enrichment-plan.template.md`。
-----variables--query--variables--queryundefinedundefined| # | Entity | Operation | Status |
|---|---|---|---|
| 1 | <name> | <operation> | Success |
See `templates/enrichment-report.template.md` for the full template.
---| 序号 | 实体 | 操作 | 状态 |
|---|---|---|---|
| 1 | <名称> | <操作> | 成功 |
完整模板参考`templates/enrichment-report.template.md`。
---| Document | Path | Purpose |
|---|---|---|
| Mutation reference | | GraphQL mutations per operation |
| Bulk operations guide | | Batch patterns and safety limits |
| Enrichment plan template | | Proposed changes template |
| Enrichment report template | | Completed changes template |
| CLI reference (shared) | | CLI syntax |
| 文档 | 路径 | 用途 |
|---|---|---|
| Mutation参考 | | 各操作对应的GraphQL mutation |
| 批量操作指南 | | 批量模式和安全限制 |
| 富集计划模板 | | 修改建议模板 |
| 富集报告模板 | | 完成修改的报告模板 |
| CLI参考(共享) | | CLI语法 |
batchAddTags--query(),--variablesbatchAddTags--query(),--variables--variables--query--variables--query