GetAncestors
The GetAncestors() function returns all the parents (ancestors) of a concept.
Read general information about Concepts and Ontology
This function is NOT SQL compatible. For more information about SQL compatibility, see our documentation.
Returns a Concept Set with all the parent concepts of a concept. The concept parameter is not included in the result.
An unknown value is returned if the concept has no parent or the given parameter is unknown.
The GetParent() function only returns the direct parent of a concept.
Syntax
GetAncestors(concept)
GetAncestors(unknownconcept)
=>Result: unknown
GetAncestors('Languages'.'Dutch')
=>Result: Languages
GetAncestors('World regions'.'EMEA'.'CIS')
=>Result: { 'World regions' , 'EMEA' } as a concept set
Parameters
concept
concept
☑️
a single concept, either literal or as expression
Last updated
Was this helpful?