How do I specify parameters in SPARQL REST endpoint for MarkLogic?

When I query the SPARQL endpoint for marklogic, I try to specify an optimization parameter:

/v1/graphs/sparql?options=optimize%3D2

This results in error 400: REST-INVALIDPARAM: (err:FOER0000) Invalid parameter: No configured options: optimize=2"

What is the correct syntax for specifying this and other parameters?

Related: How to optimize a SPARQL query that returns additional properties?

+1


source to share


1 answer


See link for GET / v1 / graphs / sparql . There is an "optimize" parameter that you can specify. For example:

/v1/graphs/sparql?optimize=2

      



The "options" parameter takes the name of the query parameters to store .

+3


source







All Articles