Class: SPARQL::Algebra::Operator::GreaterThanOrEqual
Overview
The SPARQL relational >= (greater than or equal) comparison
operator.
[114] RelationalExpression ::= NumericExpression ('>=' NumericExpression)?
Constant Summary collapse
- NAME =
:>=
Instance Method Summary collapse
-
#apply(left, right, **options) ⇒ RDF::Literal::Boolean
Returns
trueif the first operand is greater than or equal to the second operand; returnsfalseotherwise.
Methods inherited from Compare
Methods included from Evaluatable
#evaluate, #memoize, #replace_aggregate!, #replace_vars!
Instance Method Details
#apply(left, right, **options) ⇒ RDF::Literal::Boolean
Returns true if the first operand is greater than or equal to the
second operand; returns false otherwise.
38 39 40 |
# File 'lib/sparql/algebra/operator/greater_than_or_equal.rb', line 38 def apply(left, right, **) RDF::Literal(super >= RDF::Literal(0)) end |