class SPARQL::Algebra::Operator::LessThan
The SPARQL
relational `<` (less than) 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 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.rb, line 27 def apply(left, right, **options) #require 'byebug'; byebug if super == RDF::Literal(-1) RDF::Literal(super == RDF::Literal(-1)) end