Loading TOC...


   $sparql as xs:string,
   [$bindingNames as xs:string*],
   [$options as xs:string*]
) as element()


Return a node representing the query plan of the given SPARQL query.

sparql The SPARQL query to be executed.
bindingNames A sequence of strings naming the variables whose values should be provided by the sem:sparql() call. These values will be substituted into the query where referenced as if they were literals.
options Options as a sequence of string values. Available options are:
The initial base IRI for the query.
Sets the optimization level to use. Levels of 0 (off), 1, and 2 are recognized. The default is 1.
Outputs an XML format query plan. This is the default.
Outputs a JSON format query plan. The default is "xml".

Required Privileges



    sem:sparql-plan("select * { ?s ?p ?o }",(),"optimize=1")

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