Changes

Jump to navigation Jump to search
211 bytes removed ,  11:53, 1 June 2021
==Thesaurus==
BaseX supports One or more thesaurus files can be specified in a full-text queries using thesauri, but it does not provide a default thesaurusexpression. This is why queries such asThe following query returns false:
<syntaxhighlight lang="xquery">
</syntaxhighlight>
will return <code>false</code>. However, if If a thesaurus is specified, then the result will be <code>true</code>: <syntaxhighlight lang="xquery">'hardware' contains text 'computers' using thesaurus at 'thesaurus.xml'</syntaxhighlight> ; Thesaurus documentemployed…
<syntaxhighlight lang="xml">
</syntaxhighlight>
Thesaurus files must …the result will be the same as for the thesauri files used in the [https{{Code|true}}://dev.w3.org/2007/xpath-full- <syntaxhighlight lang="xquery">'hardware' contains text-10-test-suite XQuery and XPath Full Text 1.0 Test Suite]. It is an XML with structure defined by an [https://dev.w3'computers' using thesaurus at 'thesaurus.org/2007xml'</xpath-full-text-10-test-suite/TestSuiteStagingArea/TestSources/thesaurus.xsd XSD Schema].syntaxhighlight>
By default, both Thesaurus files must comply with the relationship defined in [https://wwwdev.isow3.org/standard2007/7776xpath-full-text-10-test-suite/TestSuiteStagingArea/TestSources/thesaurus.html ISO 2788xsd XSD Schema] of the XQFT Test Suite (NT: narrower team, RT: related term, etc.but the namespace can be omitted) and custom relationships are supported.
The type of relationship and the level depth can be specified as well:
using thesaurus at 'x.xml' relationship 'BT' from 1 to 10 levels
</syntaxhighlight>
 
Apart from the relationship defined in [https://www.iso.org/standard/7776.html ISO 2788] (NT: narrower team, RT: related term, etc.), custom relationships can be used.
More details can be found in the [https://www.w3.org/TR/xpath-full-text-10/#ftthesaurusoption specification].
Bureaucrats, editor, reviewer, Administrators
13,551

edits

Navigation menu