Loading TOC...

MarkLogic Server 11.0 Product Documentation
tde functions (Template Driven Extraction)

The tde (Template-driven Data Extraction) function module is installed as the following file:

install_dir/Modules/MarkLogic/tde.xqy

where install_dir is the directory in which MarkLogic Server is installed.

To use the tde.xqy module in your own XQuery modules, include the following line in your XQuery prolog:

import module "http://marklogic.com/xdmp/tde" at "/MarkLogic/tde.xqy"

The library uses the tde: namespace, predefined in the server.

The tde functions are built-in functions for Extraction Templates. The tde namespace prefix is built into the server.

6 functions
Function name Description
tde:column-get-permissions This function returns the permissions granted to a protected column.
tde:column-remove-permissions This function removes all permissions from a protected column.
tde:column-set-permissions This function sets the permissions of a protected column.
tde:template-batch-insert This function validates and inserts multiple templates, is similar to tde:template-insert for individual template, throw errors for any invalid template or duplicate template URIs provided by sequence of argument with tde:template-info .
tde:template-info This function returns a map:map (object[]) containing individual template information used for inserting templates with tde:template-batch-insert().
tde:template-insert This function validates the template, inserts the template as a document into the tde collection of the schema database (if executed on the content database) with the default permissions, and reindexes the database.