public class QueryStringUtil extends Object
SPARQLTupleQuery
, SPARQLGraphQuery
and
SPARQLBooleanQuery
.SPARQLTupleQuery
,
SPARQLGraphQuery
,
SPARQLBooleanQuery
Constructor and Description |
---|
QueryStringUtil() |
Modifier and Type | Method and Description |
---|---|
static StringBuilder |
appendValueAsString(StringBuilder sb,
Value value)
Converts a value to its SPARQL string representation and appends it to a StringBuilder.
|
static String |
getBooleanQueryString(String queryString,
BindingSet bindings)
Retrieve a modified queryString into which all bindings of the given argument are replaced with their value.
|
static String |
getGraphQueryString(String queryString,
BindingSet bindings)
Retrieve a modified queryString into which all bindings of the given argument are replaced with their value.
|
static String |
getQueryString(String queryString,
BindingSet bindings)
Deprecated.
since 2.0.use
getTupleQueryString(String, BindingSet) |
static String |
getTupleQueryString(String queryString,
BindingSet bindings)
Retrieve a modified queryString into which all bindings of the given argument are replaced, with the binding
names included in the SELECT clause.
|
static String |
getUpdateString(String queryString,
BindingSet bindings)
Retrieve a modified queryString into which all bindings of the given argument are replaced with their value.
|
static String |
valueToString(Value value)
Converts a value to its SPARQL string representation.
|
@Deprecated public static String getQueryString(String queryString, BindingSet bindings)
getTupleQueryString(String, BindingSet)
queryString
- bindings
- public static String getTupleQueryString(String queryString, BindingSet bindings)
queryString
- bindings
- public static String getUpdateString(String queryString, BindingSet bindings)
queryString
- bindings
- public static String getBooleanQueryString(String queryString, BindingSet bindings)
queryString
- bindings
- public static String getGraphQueryString(String queryString, BindingSet bindings)
queryString
- bindings
- public static String valueToString(Value value)
value
- the value to convertpublic static StringBuilder appendValueAsString(StringBuilder sb, Value value)
sb
- StringBuilder to append tovalue
- the value to convertCopyright © 2015-2022 Eclipse Foundation. All Rights Reserved.