Area: Videos Sub-Area: Business Glossary Applies to: OSS + Cloud
Correction to the video
The video says you can create a term under another term and use Related Terms to build a parent-child hierarchy. That is not how DataHub works.
- A term has at most one parent, and that parent must be a Term Group (a glossary node). You can't nest a term under another term. The parent picker in the create modal lists only Term Groups.
- Related Terms links two terms with an Is A or Has A relationship. These links don't make a parent-child hierarchy.
- To build a hierarchy, create Term Groups and put terms inside them. Term Groups can nest. See Business Glossary.
- To move a term or Term Group with the API, call the
updateParentNodeGraphQL mutation withresourceUrnandparentNode. A nullparentNoderemoves the parent. - For developers, the video says "REST API". Use the GraphQL API instead.
createGlossaryTermandcreateGlossaryNodetakename, an optionalid,descriptionandparentNode. If you leave outid, DataHub generates a random UUID. - To add a term to a column with GraphQL, use
addTermswithsubResourceType: DATASET_FIELDandsubResourceset to the column's field path. To tag many assets at once, usebatchAddTerms. See Terms API tutorial. - In the Python SDK, add a term to a column with
dataset["column_name"].add_term(term), then update the entity through the client. The term is written to the dataset's editable schema metadata (the UI-editable layer). In ingestion mode,add_termraisesSdkUsageError: "Adding field terms in ingestion mode is not yet supported. Use set_terms instead."
UI labels (DataHub Cloud v2.4.4)
- The Glossary page uses the labels "Create Glossary", "Add Term" and "Add Term Group".
- The create modal is titled "Create
". It has a required name field, an optional Parent selector, a documentation editor, and the buttons Cancel, Propose and Create. An Advanced section lets you set a custom id. Without one, DataHub generates a random UUID. - On a dataset page, the sidebar has a Summary tab that holds a Terms section. In the Terms section, click the plus icon. The "Add Glossary Terms" modal opens. Select one or more terms and click Add (or Propose). The Terms section has no "Add Term" text button, so the video's "Click Add Term" step differs from the current UI.
- The Terms section's button depends on the "Edit Glossary Terms" privilege. "Manage Glossaries" lets you create, edit and remove glossary entities. "Manage Direct Glossary Children" can be granted on a Term Group.
- A term page has a Related Terms tab.
Outline of this demonstration (transcript below)
I. Introduction
- Purpose: Learn how to work with the business glossary in DataHub
- Value: Establishes common vocabulary across the organization
- Benefit: Ensures consistent understanding of data terms
-
Goals by end of demo:
- Create glossary terms
- Organize terms (see the correction above: hierarchy comes from Term Groups)
- Link terms to data assets using the Web UI
II. Understanding Business Glossary
- Definition: Standard definitions for business terms used throughout the organization
- Conceptual model: A dictionary for your organization's data language
III. Creating a Glossary (Live Demo)
- Open Glossary in the side navigation bar
- Click "Create Glossary"
- Give it a name (example: "Marketing Terminology") and a description
IV. Adding Business Terms
- The video adds a term, "Customer Acquisition Cost", with "Add Term"
- Give it a name and a description
V. Organizing Terms and Relating Terms
- The video adds a second term, "CAC Payback Period", with "Add Term" again, and then adds it under Related Terms.
- Correction: A term can't be a child of another term. Related Terms creates Is A or Has A links between terms. It does not create a parent-child hierarchy.
- To build a hierarchy, use "Add Term Group" and put terms inside Term Groups.
VI. Linking Terms to Data Assets
Dataset-Level Linking
- Search for a dataset (example: Marketing Schema)
- In the sidebar's Summary tab, find the Terms section
- Click the plus icon, select the term in the "Add Glossary Terms" modal, and click Add
Column-Level Linking
- The video adds a term to a column in the UI. To do this in code, use
addTermswithsubResourceType: DATASET_FIELD, or the Python SDK (see the correction above).
VII. Developer/Automation Options
- Use the GraphQL API to create glossary terms and Term Groups (the video says "REST API").
- Use the Python SDK to add terms to columns.
- Use cases: bulk importing terms from existing glossaries or spreadsheets.
VIII. Discovery and Usage
- Search for terms from the search bar (example: "acquisition cost")
- Browse terms in the Glossary section
IX. Recap
- Created a glossary for marketing terminology
- Added business terms with clear definitions
- Related terms (use Term Groups for hierarchy)
- Linked terms to data assets
- Explored API options for automation
=== TIMESTAMPED TRANSCRIPT (unchanged, see the correction above) ===
[0.00s - 10.16s]: Hello, everyone. In this video, I'll demonstrate how to work with the business glossary in
[10.16s - 15.08s]: DataHub. A business glossary is essential for establishing a common vocabulary across
[15.08s - 20.76s]: your organization, ensuring everyone understands data terms consistently. By the end of this
[20.76s - 25.64s]: short demo, you will see how to create glossary terms, organize them hierarchically, and
[25.64s - 31.68s]: link them to data assets using DataHub's Web UI. Let's start with a quick overview of
[31.68s - 36.88s]: what a business glossary is and why it matters. A business glossary in DataHub provides
[36.88s - 41.40s]: standard definitions for business terms used throughout your organization. Think about
[41.40s - 47.80s]: as a dictionary for your organization's data language. Now let's see the business glossary
[47.80s - 54.84s]: in action. First, we'll need to create a glossary to hold our terms. And DataHub, you
[54.84s - 59.60s]: can have multiple glossaries for different purposes. I'll navigate to the glossary section
[59.60s - 66.24s]: in the side navigation bar. And here we can see existing glossaries. For a new one, I can
[66.24s - 74.76s]: click Create Glossary. I can give it a name. We'll go with Marketing Terminology. And I
[74.76s - 83.48s]: can give it a description in the documentation field here. I can click Create and our glossary
[83.48s - 91.00s]: is ready. This glossary will serve as a container for related business terms. Now let's add
[91.00s - 96.60s]: a business term to our glossary. From the Marketing Terminology Glossary page, I'll
[96.60s - 109.16s]: click Add Term. Let's create a term for customer acquisition cost. I can then give it a description
[109.16s - 119.04s]: in the Documentation field. I can see that it's part of the Marketing Terminology Glossary
[119.04s - 126.16s]: group. And click Create. Great. We created our first business term with a clear definition
[126.16s - 132.48s]: that everyone in the organization can reference. Similar to domains, glossary terms can be organized
[132.48s - 138.40s]: hierarchically. Let's create a related term under customer acquisition cost. First, I'll
[138.40s - 149.40s]: create Add Term again. This will be CAC Payback Period. I can give it a description in the Documentation
[149.40s - 159.96s]: field and create it. I now have both terms. And now, if I want to have it as a related term
[159.96s - 166.96s]: to customer acquisition cost, I can click in here, go into related terms and add it appropriately.
[168.40s - 178.00s]: Now, we have a parent child relationship between our terms creating a logical hierarchy of related
[178.00s - 184.96s]: concepts. One of the most powerful features of the business glossary is the ability to link
[184.96s - 190.12s]: terms to actual data assets. Let's connect our customer acquisition cost term to a relevant
[190.12s - 201.92s]: data set. I'll navigate to the search bar and search for a data set. Here, I can find
[201.92s - 208.36s]: our Marketing Schema and open it. In the Summary tab, I'll scroll down to the term section.
[208.36s - 218.84s]: I can click Add Term. Here, I can find my customer acquisition cost term and add this. You
[218.84s - 226.96s]: can also link terms at a more granular level. If I click into any of the data sets here, I can go
[226.96s - 238.44s]: to the actual column and click in here and add the term to the column itself. Now users viewing
[238.44s - 242.84s]: this data set or column will see the business definition creating clear context for the data.
[242.84s - 250.60s]: As with domains, the data hub provides APIs and SDKs for developers who want to programmatically
[250.60s - 256.84s]: manage the business glossary. If you prefer a developer workflow, you can create glossaries via
[256.84s - 266.12s]: the rest API. And you can add terms using the Python SDK. This approach is particularly useful
[266.12s - 272.68s]: for bulk importing terms from existing glossaries or spreadsheets. Now let's see how users
[272.68s - 279.32s]: can discover and use glossary terms. For many pageant data hub, I can use the search bar. If I
[279.32s - 287.24s]: search for acquisition cost, our term appears in the results. I can also browse all terms by
[287.24s - 296.04s]: navigating to the glossary section. Clicking on a term shows its definition, related terms,
[296.04s - 301.64s]: and linked assets. This makes it easy for users to find standard definitions and discover relevant
[301.64s - 307.88s]: data assets. That wraps up our demo on the business glossary and data hub. To summarize,
[307.88s - 313.08s]: we created a glossary for marketing terminology. We added business terms with clear definitions.
[313.48s - 318.84s]: We organized terms in a hierarchy. We linked terms to relevant data assets and we explored how
[318.84s - 325.80s]: developers can use APIs for automation. I will maintain business glossary is essential for data
[325.80s - 330.76s]: literacy and governance. It ensures everyone speaks the same language when discussing data,
[330.76s - 336.04s]: bridging the gap between technical and business teams. Whether you use the intuitive web UI
[336.04s - 340.76s]: or the developer APIs, data hub makes it easy to build and maintain a comprehensive business
[340.76s - 347.72s]: glossary that enhances your data catalog. Thanks for watching.