class SPARQL::Algebra::Operator::LessThanOrEqual
The SPARQL
relational `<=` (less than or equal) comparison operator.
@example
(<= ?x ?y)
@see www.w3.org/TR/sparql11-query/#OperatorMapping @see www.w3.org/TR/xpath-functions/#func-compare @see www.w3.org/TR/xpath-functions/#func-numeric-less-than @see www.w3.org/TR/xpath-functions/#func-boolean-less-than @see www.w3.org/TR/xpath-functions/#func-dateTime-less-than
Constants
- NAME
Public Instance Methods
apply(left, right, **options)
click to toggle source
Returns `true` if the first operand is less than or equal to the second operand; returns `false` otherwise.
@param [RDF::Literal] left
a literal
@param [RDF::Literal] right
a literal
@return [RDF::Literal::Boolean] `true` or `false` @raise [TypeError] if either operand is not a literal
Calls superclass method
SPARQL::Algebra::Operator::Compare#apply
# File lib/sparql/algebra/operator/less_than_or_equal.rb, line 27 def apply(left, right, **options) RDF::Literal(super <= RDF::Literal(0)) end