tf:broaderTerms

Search for all superordinate terms.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:


Syntax

tf:broaderTerms(string $termName, string? $thesaurus) => unspecified

Description

The function tf:broaderTerms is specific to Tamino. It takes a string as argument which is the name of a thesaurus entry. You can supply a further optional string value that specifies the name of a thesaurus. In the scope of text retrieval functions this function returns all superordinate terms of $termName. If there is no superordinate term defined, only $termName is returned.

This function can only be used within the scope of the following functions:

tf:containsAdjacentText
tf:containsNearText
tf:containsText
tf:createAdjacentTextReference
tf:createNearTextReference
tf:createTextReference

Arguments

$termName

name of a thesaurus entry that is defined in the termName element

$thesaurus

name of a thesaurus

Examples

  • Return all superordinate terms of "dog":

    declare namespace ino="http://namespaces.softwareag.com/tamino/response2"
    for    $p in input()/ino:term
    where  tf:containsText($p/ino:termName, tf:broaderTerms("dog"))
    return $p/ino:termName