docs/api/tutorials/applications.md
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
Applications are groupings of assets based on a particular purpose, similar to domains and data products. For more information on what an Application is, and how it differs from other concepts, refer to About DataHub Applications.
This guide will show you how to
For this tutorial, you need to deploy DataHub Quickstart and ingest sample data. For detailed steps, please refer to DataHub Quickstart Guide.
mutation createApplication {
createApplication(
input: {
properties: {
name: "My New Application"
description: "An optional description"
}
}
)
}
If you see the following response, the operation was successful:
{
"data": {
"createApplication": "<application_urn>"
},
"extensions": {}
}
{{ inline /metadata-ingestion/examples/library/application_create_full.py show_path_as_comment }}
You can now see the applications under Applications sidebar section.
query {
dataset(urn: "urn:li:dataset:(urn:li:dataPlatform:hive,fct_users_created,PROD)") {
application {
application {
urn
properties {
name
description
}
}
}
}
}
If you see the following response, the operation was successful:
{
"data": {
"dataset": {
"application": {
"application": {
"urn": "urn:li:application:71b3bf7b-2e3f-4686-bfe1-93172c8c4e10",
"properties": {
"name": "Cancellation Processing"
}
}
}
}
},
"extensions": {}
}
mutation batchSetApplication {
batchSetApplication(
input: {
resourceUrns: [
"urn:li:dataset:(urn:li:dataPlatform:bigquery,banking.public.customer,PROD)"
]
applicationUrn: "urn:li:application:new-customer-signup"
}
)
}
If you see the following response, the operation was successful:
{
"data": {
"batchSetApplication": true
},
"extensions": {}
}
{{ inline /metadata-ingestion/examples/library/application_add.py show_path_as_comment }}
You can now see the application has been added to the dataset.
mutation batchSetApplication {
batchSetApplication(
input: {
resourceUrns: [
"urn:li:dataset:(urn:li:dataPlatform:bigquery,banking.public.customer,PROD)"
],
applicationUrn: null
}
)
}
Expected Response:
{
"data": {
"batchSetApplication": true
},
"extensions": {}
}
{{ inline /metadata-ingestion/examples/library/application_remove.py show_path_as_comment }}