Search for all subordinate terms.
tf:narrowerTerms(string $termName, string? $thesaurus) => unspecified
The function tf:narrowerTerms
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 subordinate
terms of $termName
. If there is no subordinate 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
$termName |
name of a thesaurus entry that is defined in the
|
---|---|
$thesaurus |
name of a thesaurus |
Return all subordinate terms of "carnivore":
declare namespace ino="http://namespaces.softwareag.com/tamino/response2" for $p in input()/ino:term where tf:containsText($p/ino:termName, tf:narrowerTerms("carnivore")) return $p/ino:termName
The following construct(s) refer to this construct: