COUNT(*) / LIMIT should give you the number of pages.
On Tue, Mar 9, 2021 at 9:52 AM Donald McIntosh <dmcint...@opentechnology.net> wrote: > > Hi.. > > I have an implementation where I would like to page through data retrieved > via a SPARQL query on Apache Jena on a UI. offset and limit features take me > some of the way there but do not tell me the full size of the overall result > set so that users can skip to the end or to page x knowing that it will > exist. I am guessing that internally Jena will know the result set size from > a query but perhaps this not available to the caller, as the full set will > have been retrieved and sorted. > > Is there a correct and efficient way to implement this type of use case > inApache Jena ? > > Thanks, > Donald