com.hp.hpl.jena.sparql.util
Class ResultSetUtils

java.lang.Object
  extended by com.hp.hpl.jena.sparql.util.ResultSetUtils

public class ResultSetUtils
extends java.lang.Object


Constructor Summary
ResultSetUtils()
           
 
Method Summary
static java.util.List<com.hp.hpl.jena.rdf.model.RDFNode> resultSetToList(ResultSet rs, java.lang.String selectElement)
          Extracts a List filled with the binding of selectElement variable for each query solution as RDFNodes (Resources or Literals).
static java.util.List<java.lang.String> resultSetToStringList(ResultSet rs, java.lang.String selectElement, java.lang.String literalOrResource)
          Extracts a List filled with the binding of selectElement variable for each query solution, turned into a string (URIs or lexical forms).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultSetUtils

public ResultSetUtils()
Method Detail

resultSetToList

public static java.util.List<com.hp.hpl.jena.rdf.model.RDFNode> resultSetToList(ResultSet rs,
                                                                                java.lang.String selectElement)
Extracts a List filled with the binding of selectElement variable for each query solution as RDFNodes (Resources or Literals). Exhausts the result set. Create a rewindable one to use multiple times. Suggested by James Howison

See Also:
ResultSetFactory

resultSetToStringList

public static java.util.List<java.lang.String> resultSetToStringList(ResultSet rs,
                                                                     java.lang.String selectElement,
                                                                     java.lang.String literalOrResource)
Extracts a List filled with the binding of selectElement variable for each query solution, turned into a string (URIs or lexical forms). Exhausts the result set. Create a rewindable one to use multiple times.

See Also:
ResultSetFactory


Copyright ? 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP Copyright ? 2010 Talis Systems Ltd. Copyright ? 2010, 2011 Epimorphics Ltd.