Class Expressions
java.lang.Object
org.eclipse.rdf4j.sparqlbuilder.constraint.Expressions
A class with static methods to create SPARQL expressions. Obviously there's some more flushing out TODO still
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic Expression<?> ABS(operand)static Expression<?> ABS(operand)static Expression<?> operand1 + operand2 + ...static Expression<?> operand1 invalid input: '&'invalid input: '&' operand2 invalid input: '&'invalid input: '&' ...static Aggregateavg(...)static Bindbind(Assignable exp, Variable var) static Expression<?> bnode()BNODE()static Expression<?> BNODE(operand)static Expression<?> bnode(RdfLiteral<?> literal) BNODE(operand)static Expression<?> BOUND(operand)static Expression<?> CEIL(operand)static Expression<?> COALESCE(operand1, operand2, ...static Expression<?> CONCAT(operand1, operand2, ...static Aggregatecount()static AggregatecountAll()static Expression<?> static Expression<?> static Expression<?> static Expression<?> operand1 / operand2 / ...static Expression<?> left = rightstatic Expression<?> function(SparqlFunction function, Operand... operands) Too lazy at the moment.static Aggregategroup_concat(String separator, Operand... operands) static Aggregategroup_concat(Operand... operands) static Expression<?> left > rightstatic Expression<?> left > rightstatic Expression<?> left > rightstatic Expression<?> left > rightstatic Expression<?> left >= rightstatic Expression<?> static Expression<?> operand IN (expression1, expression2...)static Expression<?> static Expression<?> static Expression<?> static Expression<?> left invalid input: '<' rightstatic Expression<?> left invalid input: '<' rightstatic Expression<?> left invalid input: '<' rightstatic Expression<?> left invalid input: '<' rightstatic Expression<?> left invalid input: '<'= rightstatic Aggregatestatic Aggregatestatic Expression<?> -operandstatic Expression<?> operand1 * operand2 * ...static Expression<?> !operandstatic Expression<?> left != rightstatic Expression<?> static Expression<?> static Expression<?> operand NOT IN (expression1, expression2...)static Expression<?> static Expression<?> static Expression<?> operand1 || operand2 || ...static Expression<?> +operandstatic Expression<?> REGEX(testString, pattern)static Expression<?> REGEX(testString, pattern, flags)static Expression<?> REGEX(testString, pattern)static Expression<?> REGEX(testString, pattern, flags)static Aggregatestatic Expression<?> STR(literal)orSTR(iri)static Expression<?> static Expression<?> static Expression<?> operand1 - operand2 - ...static Aggregate
-
Method Details
-
abs
ABS(operand)- Parameters:
operand- the argument to the absolute value function- Returns:
- an ABS() function
- See Also:
-
abs
ABS(operand)- Parameters:
operand- the argument to the absolute value function- Returns:
- an ABS() function
- See Also:
-
bnode
-
bnode
BNODE(operand)- Parameters:
literal- the RDF literal argument to the function- Returns:
- a BNODE() function
- See Also:
-
bnode
BNODE(operand)- Parameters:
literal- the String literal argument to the function- Returns:
- a BNODE() function
- See Also:
-
bound
BOUND(operand)- Parameters:
var- the SPARQL variable argument to the function- Returns:
- a BOUND() function
- See Also:
-
ceil
CEIL(operand)- Parameters:
operand- the argument to the function- Returns:
- a CEIL() function
- See Also:
-
coalesce
COALESCE(operand1, operand2, ... , operandN)- Parameters:
operands- the arguments to the function- Returns:
- a COALESCE() function
- See Also:
-
concat
CONCAT(operand1, operand2, ... , operandN)- Parameters:
operands- the arguments to the function- Returns:
- a CONCAT() function
- See Also:
-
regex
REGEX(testString, pattern)- Parameters:
testString- the text to match againstpattern- the regex pattern to match- Returns:
- a REGEX() function
- See Also:
-
regex
REGEX(testString, pattern, flags)- Parameters:
testString- the text to match againstpattern- the regular expression pattern to matchflags- flags to specify matching options- Returns:
- a REGEX() function
- See Also:
-
regex
REGEX(testString, pattern)- Parameters:
testString- the text to match againstpattern- the regex pattern to match- Returns:
- a REGEX() function
- See Also:
-
regex
REGEX(testString, pattern, flags)- Parameters:
testString- the text to match againstpattern- the regular expression pattern to matchflags- flags to specify matching options- Returns:
- a REGEX() function
- See Also:
-
str
STR(literal)orSTR(iri)- Parameters:
operand- the arg to convert to a string- Returns:
- a
STR()function - See Also:
-
custom
-
custom
-
in
operand IN (expression1, expression2...)- Parameters:
searchTerm-expressions-- Returns:
- an
INfunction - See Also:
-
notIn
operand NOT IN (expression1, expression2...)- Parameters:
searchTerm-expressions-- Returns:
- an
NOT INfunction - See Also:
-
function
Too lazy at the moment. Make the rest of the functions this way for now.- Parameters:
function- a SPARQL Functionoperands- arguments to the function- Returns:
- a function object of the given
functiontype andoperands
-
not
!operand- Parameters:
operand- argument to the function- Returns:
- logical not operation
- See Also:
-
plus
+operand- Parameters:
operand- argument to the function- Returns:
- unary plus operation
- See Also:
-
minus
-operand- Parameters:
operand- argument to the function- Returns:
- unary minus operation
- See Also:
-
equals
left = right- Parameters:
left- the left operandright- the right operand- Returns:
- logical equals operation
- See Also:
-
notEquals
left != right- Parameters:
left- the left operandright- the right operand- Returns:
- logical not equals operation
- See Also:
-
notEquals
-
notEquals
-
gt
left > right- Parameters:
left- the left operandright- the right operand- Returns:
- logical greater than operation
- See Also:
-
gt
left > right- Parameters:
left- the left operandright- the right operand- Returns:
- logical greater than operation
- See Also:
-
gt
left > right- Parameters:
left- the left operandright- the right operand- Returns:
- logical greater than operation
- See Also:
-
gt
left > right- Parameters:
left- the left operandright- the right operand- Returns:
- logical greater than operation
- See Also:
-
gte
left >= right- Parameters:
left- the left operandright- the right operand- Returns:
- logical greater than or equals operation
- See Also:
-
lt
left invalid input: '<' right- Parameters:
left- the left operandright- the right operand- Returns:
- logical less than operation
- See Also:
-
lt
left invalid input: '<' right- Parameters:
left- the left operandright- the right operand- Returns:
- logical less than operation
- See Also:
-
lt
left invalid input: '<' right- Parameters:
left- the left operandright- the right operand- Returns:
- logical less than operation
- See Also:
-
lt
left invalid input: '<' right- Parameters:
left- the left operandright- the right operand- Returns:
- logical less than operation
- See Also:
-
lte
left invalid input: '<'= right- Parameters:
left- the left operandright- the right operand- Returns:
- logical less than or equals operation
- See Also:
-
and
operand1 invalid input: '&'invalid input: '&' operand2 invalid input: '&'invalid input: '&' ... operandN- Parameters:
operands- the arguments- Returns:
- logical and operation
- See Also:
-
or
operand1 || operand2 || ... || operandN- Parameters:
operands- the arguments- Returns:
- logical or operation
- See Also:
-
add
operand1 + operand2 + ... + operandN- Parameters:
operands- the arguments- Returns:
- arithmetic addition operation
- See Also:
-
subtract
operand1 - operand2 - ... - operandN- Parameters:
operands- the arguments- Returns:
- arithmetic subtraction operation
- See Also:
-
multiply
operand1 * operand2 * ... * operandN- Parameters:
operands- the arguments- Returns:
- arithmetic multiplication operation
- See Also:
-
divide
operand1 / operand2 / ... / operandN- Parameters:
operands- the arguments- Returns:
- arithmetic division operation
- See Also:
-
avg
-
count
-
countAll
-
group_concat
-
group_concat
-
max
-
min
-
sample
-
sum
-
bind
-
notIn
-
notIn
-
in
-
in
-
strdt
-
strlen
-
isBlank
-
datatype
-
iff
-