Loading TOC...


   model as map:map
) as element(tde:template)


This function is deprecated and will not be supported in MarkLogic 11.
Generate a Template Driven Extraction (TDE) template you can use to render entity instance data into rows for querying with the Optic API or SQL.

model A valid basic entity model.

Usage Notes

Use this function to generate an extraction template. The template enables SQL and Optic API use with instance data. You can use the template as-is or customize it. You must install the template in your schemas database before you can use it.

See Also


xquery version "1.0-ml";
import module namespace es = "http://marklogic.com/entity-services"
  at "/MarkLogic/entity-services/entity-services.xqy";

    <es:model xmlns:es="http://marklogic.com/entity-services">
        <es:description>ES Examples</es:description>

(: ==> A TDE template that defines how to express your entity instances
 :     as rows. :)

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