问题
When I query the SPARQL endpoint for marklogic, I am trying to specify the optimize option:
/v1/graphs/sparql?options=optimize%3D2
This results in a 400 error:
REST-INVALIDPARAM: (err:FOER0000) Invalid parameter: No configured options: optimize=2"
What is the correct syntax to specify this and other options?
Related: How can I optimize a SPARQL query that returns optional properties?
回答1:
See reference for GET /v1/graphs/sparql. There is an "optimize" parameter you can specify. For example:
/v1/graphs/sparql?optimize=2
The "options" parameter accepts the name of persisted query options.
来源:https://stackoverflow.com/questions/43642453/how-do-i-specify-options-in-the-sparql-rest-endpoint-for-marklogic