public class Expressions extends Object
Modifier and Type | Method and Description |
---|---|
static Expression<?> |
abs(Number operand)
ABS(operand ) |
static Expression<?> |
abs(Operand operand)
ABS(operand ) |
static Expression<?> |
add(Operand... operands)
operand1 + operand2 + ... |
static Expression<?> |
and(Operand... operands)
operand1 && operand2 && ... |
static Aggregate |
avg(Operand operand)
avg(...) |
static Expression<?> |
bnode()
BNODE() |
static Expression<?> |
bnode(RdfLiteral<?> literal)
BNODE(operand) |
static Expression<?> |
bnode(String literal)
BNODE(operand) |
static Expression<?> |
bound(Variable var)
BOUND(operand) |
static Expression<?> |
ceil(Operand operand)
CEIL(operand) |
static Expression<?> |
coalesce(Operand... operands)
COALESCE(operand1, operand2, ... |
static Expression<?> |
concat(Operand... operands)
CONCAT(operand1, operand2, ... |
static Aggregate |
count(Operand operand)
count() |
static Aggregate |
countAll() |
static Expression<?> |
custom(Iri functionIri,
Operand... operands) |
static Expression<?> |
divide(Operand... operands)
operand1 / operand2 / ... |
static Expression<?> |
equals(Operand left,
Operand right)
left = right |
static Expression<?> |
function(SparqlFunction function,
Operand... operands)
Too lazy at the moment.
|
static Aggregate |
group_concat(Operand... operands) |
static Aggregate |
group_concat(String separator,
Operand... operands) |
static Expression<?> |
gt(Number left,
Number right)
left > right |
static Expression<?> |
gt(Number left,
Operand right)
left > right |
static Expression<?> |
gt(Operand left,
Number right)
left > right |
static Expression<?> |
gt(Operand left,
Operand right)
left > right |
static Expression<?> |
gte(Operand left,
Operand right)
left >= right |
static Expression<?> |
lt(Number left,
Number right)
left < right |
static Expression<?> |
lt(Number left,
Operand right)
left < right |
static Expression<?> |
lt(Operand left,
Number right)
left < right |
static Expression<?> |
lt(Operand left,
Operand right)
left < right |
static Expression<?> |
lte(Operand left,
Operand right)
left <= right |
static Aggregate |
max(Operand operand) |
static Aggregate |
min(Operand operand) |
static Expression<?> |
minus(Operand operand)
-operand |
static Expression<?> |
multiply(Operand... operands)
operand1 * operand2 * ... |
static Expression<?> |
not(Operand operand)
!operand |
static Expression<?> |
notEquals(Operand left,
Operand right)
left != right |
static Expression<?> |
or(Operand... operands)
operand1 || operand2 || ... |
static Expression<?> |
plus(Operand operand)
+operand |
static Expression<?> |
regex(Operand testString,
Operand pattern)
REGEX(testString, pattern) |
static Expression<?> |
regex(Operand testString,
Operand pattern,
Operand flags)
REGEX(testString, pattern, flags) |
static Expression<?> |
regex(Operand testString,
String pattern)
REGEX(testString, pattern) |
static Expression<?> |
regex(Operand testString,
String pattern,
String flags)
REGEX(testString, pattern, flags) |
static Aggregate |
sample(Operand operand) |
static Expression<?> |
str(Operand operand)
STR(literal) or STR(iri) |
static Expression<?> |
subtract(Operand... operands)
operand1 - operand2 - ... |
static Aggregate |
sum(Operand operand) |
public static Expression<?> abs(Number operand)
ABS(operand
)operand
- the argument to the absolute value functionpublic static Expression<?> abs(Operand operand)
ABS(operand
)operand
- the argument to the absolute value functionpublic static Expression<?> bnode()
BNODE()
public static Expression<?> bnode(RdfLiteral<?> literal)
BNODE(operand)
literal
- the RDF literal argument to the functionpublic static Expression<?> bnode(String literal)
BNODE(operand)
literal
- the String literal argument to the functionpublic static Expression<?> bound(Variable var)
BOUND(operand)
var
- the SPARQL variable argument to the functionpublic static Expression<?> ceil(Operand operand)
CEIL(operand)
operand
- the argument to the functionpublic static Expression<?> coalesce(Operand... operands)
COALESCE(operand1, operand2, ... , operandN)
operands
- the arguments to the functionpublic static Expression<?> concat(Operand... operands)
CONCAT(operand1, operand2, ... , operandN)
operands
- the arguments to the functionpublic static Expression<?> regex(Operand testString, String pattern)
REGEX(testString, pattern)
testString
- the text to match againstpattern
- the regex pattern to matchpublic static Expression<?> regex(Operand testString, String pattern, String flags)
REGEX(testString, pattern, flags)
testString
- the text to match againstpattern
- the regular expression pattern to matchflags
- flags to specify matching optionspublic static Expression<?> regex(Operand testString, Operand pattern)
REGEX(testString, pattern)
testString
- the text to match againstpattern
- the regex pattern to matchpublic static Expression<?> regex(Operand testString, Operand pattern, Operand flags)
REGEX(testString, pattern, flags)
testString
- the text to match againstpattern
- the regular expression pattern to matchflags
- flags to specify matching optionspublic static Expression<?> str(Operand operand)
STR(literal)
or STR(iri)
operand
- the arg to convert to a stringSTR()
functionpublic static Expression<?> custom(Iri functionIri, Operand... operands)
public static Expression<?> function(SparqlFunction function, Operand... operands)
function
- a SPARQL Functionoperands
- arguments to the functionfunction
type and operands
public static Expression<?> not(Operand operand)
!operand
operand
- argument to the functionpublic static Expression<?> plus(Operand operand)
+operand
operand
- argument to the functionpublic static Expression<?> minus(Operand operand)
-operand
operand
- argument to the functionpublic static Expression<?> equals(Operand left, Operand right)
left = right
left
- the left operandright
- the right operandpublic static Expression<?> notEquals(Operand left, Operand right)
left != right
left
- the left operandright
- the right operandpublic static Expression<?> gt(Number left, Number right)
left > right
left
- the left operandright
- the right operandpublic static Expression<?> gt(Number left, Operand right)
left > right
left
- the left operandright
- the right operandpublic static Expression<?> gt(Operand left, Number right)
left > right
left
- the left operandright
- the right operandpublic static Expression<?> gt(Operand left, Operand right)
left > right
left
- the left operandright
- the right operandpublic static Expression<?> gte(Operand left, Operand right)
left >= right
left
- the left operandright
- the right operandpublic static Expression<?> lt(Number left, Number right)
left < right
left
- the left operandright
- the right operandpublic static Expression<?> lt(Number left, Operand right)
left < right
left
- the left operandright
- the right operandpublic static Expression<?> lt(Operand left, Number right)
left < right
left
- the left operandright
- the right operandpublic static Expression<?> lt(Operand left, Operand right)
left < right
left
- the left operandright
- the right operandpublic static Expression<?> lte(Operand left, Operand right)
left <= right
left
- the left operandright
- the right operandpublic static Expression<?> and(Operand... operands)
operand1 && operand2 && ... operandN
operands
- the argumentspublic static Expression<?> or(Operand... operands)
operand1 || operand2 || ... || operandN
operands
- the argumentspublic static Expression<?> add(Operand... operands)
operand1 + operand2 + ... + operandN
operands
- the argumentspublic static Expression<?> subtract(Operand... operands)
operand1 - operand2 - ... - operandN
operands
- the argumentspublic static Expression<?> multiply(Operand... operands)
operand1 * operand2 * ... * operandN
operands
- the argumentspublic static Expression<?> divide(Operand... operands)
operand1 / operand2 / ... / operandN
operands
- the argumentspublic static Aggregate avg(Operand operand)
avg(...)
operand
- the expression to averagepublic static Aggregate count(Operand operand)
count()
operand
- the expression to countpublic static Aggregate countAll()
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.