Hi all,
I would like to implement pagination for a Jena TDB backed web application. I
can think of a couple different approaches to querying the model.
1. Use SPARQL queries via ARQ to limit the result set.
SELECT *
WHERE {
?s ?p ?o
FILTER (?o > some_value)
}
ORDER BY (?o)
LIMIT 100
(I can use offsets here too..)
2. Use the Jena core API (model.listStatements(subject, predicate,
object) to query for a set of statements and then use Java collections
operations to arrive at the result set I want.
What is the recommended approach? To me, using SPARQL queries via ARQ is more
fitting. Are there any disadvantages to the first approach?
Thanks.
Kai