Package org.apache.jena.sparql.util
Class ResultSetUtils
- java.lang.Object
-
- org.apache.jena.sparql.util.ResultSetUtils
-
public class ResultSetUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ResultSetUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<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).static ResultSet
union(ResultSet... sets)
Create an in-memory result set from an array of ResulSets.
-
-
-
Method Detail
-
resultSetToList
public static java.util.List<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.- 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
-
-