You probably want to do both. Write your SPARQL queries - either in Jena ARQ or in text files which you post to Jena Fuseki (depending on your set up) - and then load the results into a Model to extract the bits of information you need.
Rob Rob Walpole Email robkwalp...@gmail.com Tel. +44 (0)7969 869881http://www.linkedin.com/in/robwalpole On Thu, Aug 20, 2015 at 8: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? >