java.lang.Object
org.apache.jena.sparql.util.ResultSetUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<org.apache.jena.rdf.model.RDFNode>
resultSetToList
(ResultSet rs, String selectElement) Extracts a List filled with the binding of selectElement variable for each query solution as RDFNodes (Resources or Literals).resultSetToStringList
(ResultSet rs, String selectElement, 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
Create an in-memory result set from an array of ResulSets.
-
Constructor Details
-
ResultSetUtils
public ResultSetUtils()
-
-
Method Details
-
resultSetToList
public static List<org.apache.jena.rdf.model.RDFNode> resultSetToList(ResultSet rs, 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:
-
resultSetToStringList
public static List<String> resultSetToStringList(ResultSet rs, String selectElement, 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:
-
union
Create an in-memory result set from an array of ResulSets. It is assumed that all the ResultSets from the array have the same variables.- Parameters:
sets
- the ResultSets to concatenate.
-