Hi. Looking for Graph QL samples to get the Glossa...
# getting-started
c
Hi. Looking for Graph QL samples to get the Glossary Term’s properties like Owner Name, Links etc., . Thanks!
d
something like this will do :
Copy code
{
  glossaryTerm(urn: "urn:li:glossaryTerm:<name>") {
    ownership {
        owners {
          owner {
            ... on CorpUser {
              urn
            }
          	... on CorpGroup {
              urn 
            }
          }
        }
      }
      glossaryTermInfo {
        description
        name
      }
  }
}
c
Thanks! It worked. Can you also help me with the links associated to a Glossary Term?
d
Copy code
{
  glossaryTerm(urn: "urn:li:glossaryTerm:<name>") {
    institutionalMemory {
      elements {
        label
        url
      }
    }
  }
}
This will do!
c
Thank you! I am trying to build a .yml file to ingest the Glossary metadata into Datahub. I tried to use “institutionalMemory” as an element to ingest a link for a Glossary term, but it won’t take it. Can you refer to the documentation or send me a sample for this?
c
Hi @delightful-ram-75848 - thanks for your help! Can you help me with the graph ql query to get all the business glossary terms with out providing the URN ?
d
Something like this will work :
Copy code
{
  search(input: {
    type: GLOSSARY_TERM,
    query: "*",
    start: 0,
    count: 100
  }){
    total
    searchResults{
    	entity{
      	urn
        
      }
    }
  }
}
c
Thank you @delightful-ram-75848 - Would you please help me with sample ingestion .yml to add/update content in a document in a Business Glossary term?
Hi @delightful-ram-75848 - I am trying to create a POC on multiple ways to query Business Glossaries programmatically. These are the options I am working on - 1. Graph QL 2. REST API 3. Python SDK 4. JAVA SDK Would you please help me with documentation and samples regarding the above scenarios. Thanks in Advance!