public interface QueryResult
QueryResultSet.getResults()
Modifier and Type | Method and Description |
---|---|
Boolean |
getBoolean(String name)
Returns the Boolean value bound to the specified SPARQL SELECT variable name.
|
Date |
getDate(String name)
Returns the Date value bound to the specified SPARQL SELECT variable name.
|
Integer |
getInteger(String name)
Returns the Integer value bound to the specified SPARQL SELECT variable name.
|
String |
getString(String name)
Returns the String value bound to the specified SPARQL SELECT variable name.
|
URI |
getURI(String name)
Returns the URI value bound to the specified SPARQL SELECT variable name.
|
URI getURI(String name)
This method is applicable if the underlying predicate references a resource.
name
- a variable namenull
if none.ClassCastException
- if the value is not a URI.String getString(String name)
This method is applicable if the underlying predicate references a String literal.
name
- a variable namenull
if none.ClassCastException
- if the value is not a String.Boolean getBoolean(String name)
This method is applicable if the underlying predicate references a Boolean literal (http://www.w3.org/2001/XMLSchema#boolean
).
name
- a variable namenull
if none.ClassCastException
- if the value is not a Boolean.Integer getInteger(String name)
This method is applicable if the underlying predicate references a Integer literal (http://www.w3.org/2001/XMLSchema#integer
).
name
- a variable namenull
if none.ClassCastException
- if the value is not a Integer.Date getDate(String name)
This method is applicable if the underlying predicate references a Date literal (http://www.w3.org/2001/XMLSchema#dateTime
).
name
- a variable namenull
if none.ClassCastException
- if the value is not a Date.