Loading TOC...

es functions

The table below lists all the es built-in functions (in this namespace: http://marklogic.com/entity-services).

This module contains the Entity Services API, which enables you to define logical entity-relationship models and instantiate them for use in your applications. For details, see the Entity Services Developer's Guide.

To use the es module as part of your own XQuery module, include the following line in your XQuery prolog:

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

The library namespace prefix es is not predefined in the server.

16 functions
Function nameDescription
es:database-properties-generateGenerate a database configuration artifact from a basic model.
es:extract-arrayConvert one or more source nodes into an array.
es:extraction-template-generateGenerate a Template Driven Extraction (TDE) template you can use to render entity instance data into rows for querying with the Optic API or SQL.
es:instance-converter-generateGenerate an XQuery library module containing stub code for converting source data to entity instances.
es:instance-from-documentExtract an in-memory entity instance from its envelope document as a map:map () .
es:instance-get-attachmentsExtract attachments from an entity service document.
es:instance-json-from-documentExtract an entity instance from its envelope document, as JSON.
es:instance-xml-from-documentExtract a canonical entity instance from its envelope document, as XML.
es:model-from-xmlCreate a basic model from an XML model descriptor, without validating the input descriptor for correctness.
es:model-get-test-instancesGenerate entity instances of each entity type in a basic model.
es:model-to-xmlSerialize a basic model as an XML element.
es:model-validateValidates an entity services model descriptor.
es:optionalA utility function for adding keys to a map, if they exist.
es:schema-generateGenerate an XSD schema that can be used to validate instance data.
es:search-options-generateGenerate a set of query options that can be used to query your entity instances using several MarkLogic server-side and client APIs.
es:version-translator-generateGenerate a module that can be used to translate instances conforming to one version of a model into instances conforming to another version
Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy