Sha256: 8dbf5e299b41495a0a9f88ec5596aff1c1f585a036517ea2314e9632ed29eaea

Contents?: true

Size: 1.04 KB

Versions: 11

Compression:

Stored size: 1.04 KB

Contents

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

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sparql-3.1.0 lib/sparql/algebra/operator/less_than_or_equal.rb
sparql-3.0.2 lib/sparql/algebra/operator/less_than_or_equal.rb
sparql-3.0.1 lib/sparql/algebra/operator/less_than_or_equal.rb
sparql-3.0.0 lib/sparql/algebra/operator/less_than_or_equal.rb
sparql-2.2.2 lib/sparql/algebra/operator/less_than_or_equal.rb
sparql-2.2.1 lib/sparql/algebra/operator/less_than_or_equal.rb
sparql-2.2.0 lib/sparql/algebra/operator/less_than_or_equal.rb
sparql-2.1.0 lib/sparql/algebra/operator/less_than_or_equal.rb
sparql-2.0.0 lib/sparql/algebra/operator/less_than_or_equal.rb
sparql-2.0.0.beta2 lib/sparql/algebra/operator/less_than_or_equal.rb
sparql-2.0.0.beta1 lib/sparql/algebra/operator/less_than_or_equal.rb