Kumar, >From my experience, if you only have a single triple patter like ?s <studies> ?o or ?s <studies> <some>, then the Model API might be more convenient. But when you start combining them, and especially having optional patterns, it's a good sign that it's time to move on to SPARQL.
Martynas graphityhq.com On Thu, Aug 20, 2015 at 9:10 AM, kumar rohit <kumar.en...@gmail.com> wrote: > What is the best way to query a model in Jena? Through classes and methods > of Jena like below > ResIterator itr = model.listSubjectsWithProperty(studies); > > Or through SPARQL inside jena code.? > > and how one is best than the other?