Right. ui:call does not support these arguments. How complex is your query, and would it be possible to use ui:call ui:queryString="..." with a dynamically constructed SPARQL string instead? It would be helpful to see the query to understand other options.

Holger


On 28/03/2017 3:55, Adam Kimball wrote:

Thanks, Pat.


I see this working when I inline my SPARQL into the SWP template, but haven't seen this work for ui:call. Let me try again.


-A

------------------------------------------------------------------------
*From:* [email protected] <[email protected]> on behalf of Pat Doyle <[email protected]>
*Sent:* Monday, March 27, 2017 11:22:58 AM
*To:* TopBraid Suite Users
*Subject:* Re: [topbraid-users] Using variables for OFFSET and LIMIT
Adam,

If you set the ui:queryLimit and ui:queryOffset values in the ui:forEach - it will work as you expect it to. If we use those parameters it appends the values directly to the query, prior to execution, unlike with ui:limit and ui:offset - which looks to perform the limiting/offsetting after the full query has been executed.

Query executed using ui:limit/ui:offset:
Inline image 2
Query executed using ui:queryLimit/ui:queryOffset:
Inline image 3


If you're having trouble getting ui:queryOffset or ui:queryLimit to work correctly - let's discuss on a support ticket.


Pat






On Mon, Mar 27, 2017 at 11:30 AM, Adam Kimball <[email protected] <mailto:[email protected]>> wrote:

    Hi,

    I understand that I can't use variables in SPARQL for LIMIT and
    OFFSET.  But, something tells me this is possible when working
    within the SWP/SPIN toolbox.

    The problem is that I'm querying over a decent sized set of
    triples, and even utilizing ui:limit and ui:offset on my
    ui:foreach statements is still slow.  Is there some piece of magic
    that would allow me to pass limit/offset into a SPIN template via
    ui:call?  It kinda looks like ui:queryOffset and ui:queryLimit
    should work but my initial tests suggest otherwise.

    I can't be the first to want to limit the query at query time
    rather than resultset time.

    Best,
    Adam
-- You received this message because you are subscribed to the Google
    Group "TopBraid Suite Users", the topics of which include the
    TopBraid Suite family of products and its base technologies such
    as SPARQLMotion, SPARQL Web Pages and SPIN.
    To post to this group, send email to
    [email protected]
    <mailto:[email protected]>
    ---
    You received this message because you are subscribed to the Google
    Groups "TopBraid Suite Users" group.
    To unsubscribe from this group and stop receiving emails from it,
    send an email to [email protected]
    <mailto:[email protected]>.
    For more options, visit https://groups.google.com/d/optout
    <https://groups.google.com/d/optout>.


--
You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include the TopBraid Suite family of products and its base technologies such as SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to [email protected]
---
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include the TopBraid Suite family of products and its base technologies such as SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to [email protected]
---
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Group "TopBraid 
Suite Users", the topics of which include the TopBraid Suite family of products and 
its base technologies such as SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to [email protected]
--- You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to