class SPARQL::Algebra::Operator::GreaterThanOrEqual

The SPARQL relational `>=` (greater 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-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 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

# File lib/sparql/algebra/operator/greater_than_or_equal.rb, line 28
def apply(left, right, **options)
  RDF::Literal(super >= RDF::Literal(0))
end