| Line 36... |
Line 36... |
|
|
Value argValue = args[0];
|
Value argValue = args[0];
|
if (argValue instanceof Literal) {
|
if (argValue instanceof Literal) {
|
Literal literal = (Literal)argValue;
|
Literal literal = (Literal)argValue;
|
|
|
// strlen function accepts only plain literals (optionally
|
// strlen function accepts only string literals
|
// language-tagged) or string-typed literals.
|
|
if (QueryEvaluationUtil.isStringLiteral(literal)) {
|
if (QueryEvaluationUtil.isStringLiteral(literal)) {
|
|
|
// TODO we jump through some hoops here to get an xsd:integer
|
// TODO we jump through some hoops here to get an xsd:integer
|
// literal. Shouldn't createLiteral(int) return an xsd:integer
|
// literal. Shouldn't createLiteral(int) return an xsd:integer
|
// rather than an xsd:int?
|
// rather than an xsd:int?
|
|
|