How do I specify options in the SPARQL REST endpoint for MarkLogic?

有些话、适合烂在心里 提交于 2019-12-11 06:33:31

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!