Loading TOC...

thsr:load

thsr:load(
   $path as xs:string,
   $uri as xs:string
) as empty-sequence()

Summary

Load the file specified in $path to the thesaurus at $uri. Exisiting documents at $uri are overwritten.

Parameters
path The path to a file containing thesaurus entries.
uri The URI of a thesaurus document.

Usage Notes

If $path contains XML that does not conform to the thesaurus schema, an error is raised.

Example

  xquery version "1.0-ml";
  import module namespace 
	thsr="http://marklogic.com/xdmp/thesaurus" 
                             at "/MarkLogic/thesaurus.xqy";

  thsr:load("c:\thesaurus\roget.xml", "/myThsrDocs/roget.xml")
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.