Tamino XQuery User Guide - Software AG Documentation
Tamino XQuery User Guide - Software AG Documentation
Tamino XQuery User Guide - Software AG Documentation
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Text Retrieval<br />
Thesaurus<br />
A thesaurus is a special kind of dictionary that is ordered by topic or semantic relationships. A<br />
regular dictionary uses a lexicographic order: for example, letter-based languages use the language's<br />
alphabet; ideographic languages use the base signs and the number of strokes. In contrast, a<br />
thesaurus is ordered by meaning: it helps you find words or phrases for general ideas. Semantic<br />
relationships let you explore words along two directions: horizontally by looking up variants with<br />
the same context of meaning (e.g., synonyms, antonyms) or vertically by finding broader, superordinate<br />
terms (hypernyms), and narrower, subordinate terms (hyponyms). In <strong>Tamino</strong>, this adds<br />
another dimension of text retrieval functionality: now you can retrieve contents not only by using<br />
the graphemic representation or syntactic variants of the search term, but also by using its semantic<br />
properties.<br />
<strong>Tamino</strong> supports the most important aspects of a thesaurus: synonyms, hypernyms and hyponyms.<br />
There is no pre-defined thesaurus, so you can specify one tailored to the special vocabulary of<br />
your <strong>Tamino</strong> application scenario. You can define one or more thesauri in a single database. The<br />
collection ino:vocabulary holds thesaurus entries as term elements, each of which is assigned to<br />
a single thesaurus using the attribute ino:thesaurus. A term element can contain the following<br />
elements:<br />
termName<br />
defines the name of the thesaurus entry (mandatory)<br />
synonym<br />
defines a term which is synonymous to termName<br />
broaderTerm<br />
defines a term which is superordinate to termName (hypernym)<br />
narrowerTerm<br />
defines a term which is subordinate to termName (hyponym)<br />
Example<br />
To create a sample thesaurus with words having to do with animals, load the following data into<br />
the collection ino:vocabulary of an existing database. Please refer to the section Loading Data into<br />
<strong>Tamino</strong> for more information about loading data into <strong>Tamino</strong>.<br />
<br />
<br />
dog<br />
canine<br />
pooch<br />
doggie<br />
bow-wow<br />
puppy-dog<br />
96<br />
<strong>XQuery</strong> <strong>User</strong> <strong>Guide</strong>