Sha256: c6e3405a0ed59c9bd07c6b74261037517033691b3de79b1321ead1c7eae4fc73

Contents?: true

Size: 1.08 KB

Versions: 5

Compression:

Stored size: 1.08 KB

Contents

module SPARQL; module Algebra
  class Operator
    ##
    # The SPARQL relational `>=` (greater than or equal) comparison
    # operator.
    #
    # @example
    #   (>= ?x ?y)
    #
    # @see https://www.w3.org/TR/sparql11-query/#OperatorMapping
    # @see https://www.w3.org/TR/xpath-functions/#func-compare
    # @see https://www.w3.org/TR/xpath-functions/#func-numeric-greater-than
    # @see https://www.w3.org/TR/xpath-functions/#func-boolean-greater-than
    # @see https://www.w3.org/TR/xpath-functions/#func-dateTime-greater-than
    class GreaterThanOrEqual < Compare
      NAME = :>=

      ##
      # 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
      def apply(left, right)
        super
      end
    end # GreaterThanOrEqual
  end # Operator
end; end # SPARQL::Algebra

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sparql-3.1.6 lib/sparql/algebra/operator/greater_than_or_equal.rb
sparql-3.1.5 lib/sparql/algebra/operator/greater_than_or_equal.rb
sparql-3.1.4 lib/sparql/algebra/operator/greater_than_or_equal.rb
sparql-3.1.3 lib/sparql/algebra/operator/greater_than_or_equal.rb
sparql-3.1.2 lib/sparql/algebra/operator/greater_than_or_equal.rb