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 Aggregate
avg(...)
static Bind
bind
(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 Aggregate
count()
static Aggregate
countAll()
static Expression
<?> static Expression
<?> static Expression
<?> static Expression
<?> operand1 / operand2 / ...
static Expression
<?> left = right
static Expression
<?> function
(SparqlFunction function, Operand... operands) Too lazy at the moment.static Aggregate
group_concat
(String separator, Operand... operands) static Aggregate
group_concat
(Operand... operands) static Expression
<?> left > right
static Expression
<?> left > right
static Expression
<?> left > right
static Expression
<?> left > right
static Expression
<?> left >= right
static Expression
<?> static Expression
<?> operand IN (expression1, expression2...)
static Expression
<?> static Expression
<?> static Expression
<?> static Expression
<?> left invalid input: '<' right
static Expression
<?> left invalid input: '<' right
static Expression
<?> left invalid input: '<' right
static Expression
<?> left invalid input: '<' right
static Expression
<?> left invalid input: '<'= right
static Aggregate
static Aggregate
static Expression
<?> -operand
static Expression
<?> operand1 * operand2 * ...
static Expression
<?> !operand
static Expression
<?> left != right
static Expression
<?> static Expression
<?> static Expression
<?> operand NOT IN (expression1, expression2...)
static Expression
<?> static Expression
<?> static Expression
<?> operand1 || operand2 || ...
static Expression
<?> +operand
static Expression
<?> REGEX(testString, pattern)
static Expression
<?> REGEX(testString, pattern, flags)
static Expression
<?> REGEX(testString, pattern)
static Expression
<?> REGEX(testString, pattern, flags)
static Aggregate
static 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()
- Returns:
- a no-arg BNODE() function
- See Also:
-
-
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 against
pattern
- the regex pattern to match
- Returns:
- a REGEX() function
- See Also:
-
-
regex 
REGEX(testString, pattern, flags)
- Parameters:
testString
- the text to match against
pattern
- the regular expression pattern to match
flags
- flags to specify matching options
- Returns:
- a REGEX() function
- See Also:
-
-
regex 
REGEX(testString, pattern)
- Parameters:
testString
- the text to match against
pattern
- the regex pattern to match
- Returns:
- a REGEX() function
- See Also:
-
-
regex 
REGEX(testString, pattern, flags)
- Parameters:
testString
- the text to match against
pattern
- the regular expression pattern to match
flags
- flags to specify matching options
- Returns:
- a REGEX() function
- See Also:
-
-
str 
STR(literal)
or STR(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
IN
function
- See Also:
-
-
notIn 
operand NOT IN (expression1, expression2...)
- Parameters:
searchTerm
-
expressions
-
- Returns:
- an
NOT IN
function
- See Also:
-
-
function 
Too lazy at the moment. Make the rest of the functions this way for now.
- Parameters:
function
- a SPARQL Function
operands
- arguments to the function
- Returns:
- a function object of the given
function
type and operands
-
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 operand
right
- the right operand
- Returns:
- logical equals operation
- See Also:
-
-
notEquals 
left != right
- Parameters:
left
- the left operand
right
- the right operand
- Returns:
- logical not equals operation
- See Also:
-
-
notEquals 
-
notEquals 
-
gt 
left > right
- Parameters:
left
- the left operand
right
- the right operand
- Returns:
- logical greater than operation
- See Also:
-
-
gt 
left > right
- Parameters:
left
- the left operand
right
- the right operand
- Returns:
- logical greater than operation
- See Also:
-
-
gt 
left > right
- Parameters:
left
- the left operand
right
- the right operand
- Returns:
- logical greater than operation
- See Also:
-
-
gt 
left > right
- Parameters:
left
- the left operand
right
- the right operand
- Returns:
- logical greater than operation
- See Also:
-
-
gte 
left >= right
- Parameters:
left
- the left operand
right
- the right operand
- Returns:
- logical greater than or equals operation
- See Also:
-
-
lt 
left invalid input: '<' right
- Parameters:
left
- the left operand
right
- the right operand
- Returns:
- logical less than operation
- See Also:
-
-
lt 
left invalid input: '<' right
- Parameters:
left
- the left operand
right
- the right operand
- Returns:
- logical less than operation
- See Also:
-
-
lt 
left invalid input: '<' right
- Parameters:
left
- the left operand
right
- the right operand
- Returns:
- logical less than operation
- See Also:
-
-
lt 
left invalid input: '<' right
- Parameters:
left
- the left operand
right
- the right operand
- Returns:
- logical less than operation
- See Also:
-
-
lte 
left invalid input: '<'= right
- Parameters:
left
- the left operand
right
- 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 
avg(...)
- Parameters:
operand
- the expression to average
- Returns:
- an avg aggregate function
- See Also:
-
-
count 
count()
- Parameters:
operand
- the expression to count
- Returns:
- a count aggregate
- See Also:
-
-
countAll 
-
group_concat 
-
group_concat 
-
max 
-
min 
-
sample 
-
sum 
-
bind 
-
notIn 
-
notIn 
-
in 
-
in 
-
strdt 
-
strlen 
-
isBlank 
-
datatype 
-
iff 