Loading TOC...


   sparql as String,
   [bindingNames as String[]],
   [options as String[]]
) as ObjectNode


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.

Required Privileges



    sem.sparqlPlan("select * { ?s ?p ?o }",null,"optimize=1")

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