class SPARQL::Algebra::Operator::GreaterThan
The SPARQL
relational `>` (greater 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-greater-than @see www.w3.org/TR/xpath-functions/#func-boolean-greater-than @see www.w3.org/TR/xpath-functions/#func-dateTime-greater-than
Constants
- NAME
Public Instance Methods
apply(left, right, **options)
click to toggle source
Returns `true` if the first operand is greater 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/greater_than.rb, line 27 def apply(left, right, **options) #require 'byebug'; byebug if super == RDF::Literal(1) RDF::Literal(super == RDF::Literal(1)) end