Have you seen http://stackoverflow.com/questions/24661476/marklogic-how-to-pass-integer-to-semsparql-triples-in-bindings yet?
-- Mike > On 11 Nov 2014, at 15:07 , [email protected] <[email protected]> > wrote: > > I can't seem to paramaterize LIMIT and OFFSET in a SPARQL query. This is the > error message I get: > <rapi:error xmlns:rapi="http://marklogic.com/rest-api > "> > <rapi:status-code>500</rapi:status-code> > <rapi:status>INTERNAL ERROR</rapi:status> > <rapi:message-code>XDMP-UNEXPECTED</rapi:message-code> > <rapi:message> > XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, > unexpected <variable>, expecting <integer literal>. See the MarkLogic > server error log for further detail. > </rapi:message> > </rapi:error> > > I want to be able to pass values for LIMIT and OFFSET to XQuery and extract > them with something like this: > map:entry("limit", xs:unsignedInt(xdmp:get-request-field("limit", "100"))) > Is this possible to do? > > > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
