Hi,

For 1) you can use the OFFSET and LIMIT constructs
For 2) You can use:  ResultSetFormatter.toList()

See this answer
http://answers.semanticweb.com/questions/9456/jena-pagination-for-sparql for
more details.

Cheers,

Samuel


On Tue, Oct 22, 2013 at 8:24 AM, Wang Dongsheng <[email protected]>wrote:

> Hi, all
> I want to implement pagination for ResultSet of Sparql.
> I guess there are generally two ways:
>
> 1, Through a specified SPARQL format, but I dont know how to write the
> query,
> 2. Get the size of ResultSet. but there are no way to get the total
> number that ResultSet contains.
>
> I prefer to implement the second way, But Doc of API seems unavailable.
>
> Any one tried this kind of effort? Or it was not suitable to paginate
> the result?
>
> Thank in advance~
>

Reply via email to