Class: SPARQL::Algebra::Operator::LessThanOrEqual
Overview
The SPARQL relational <= (less 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 less 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 less than or equal to the
second operand; returns false otherwise.
37 38 39 |
# File 'lib/sparql/algebra/operator/less_than_or_equal.rb', line 37 def apply(left, right, **) RDF::Literal(super <= RDF::Literal(0)) end |