Loading TOC...


   $model as map:map
) as document-node()


This function is deprecated and will be removed in a future release.
Generate an XQuery library module containing stub code for converting source data to entity instances.

model A valid basic entity model.

Usage Notes

The output of this function is an XQuery library module containing boilerplate code you can customize for ingestion scenarios. You must insert the generated module into your modules database to use it.

The generated module contains code to get you started on a data integration pipeline. The module also contains comments that explain the default code and provide tips for customization.

The generated code is runnable out-of-the-box, but the default implementation is suitable for only those entity instances that already conform to the canonical representation. Any transform from source systems should be implemented by customizing the generated functions.

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>

(: ==> An XQuery library module containing functions such as
 :     example:extract-instance-Name, example:extract-instance-Person,
 :     example:instance-to-canonical-xml, and example:instance-to-envelope. :)

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