Sha256: 61c62d0e5e8510de25b60d63f3c2ef88bdf9804046657fde6fdc8bdd86ca3ac1

Contents?: true

Size: 787 Bytes

Versions: 31

Compression:

Stored size: 787 Bytes

Contents

module SPARQL; module Algebra
  class Operator
    ##
    # The SPARQL relational `!=` (not equal) comparison operator.
    #
    # @see http://www.w3.org/TR/rdf-sparql-query/#OperatorMapping
    # @see http://www.w3.org/TR/rdf-sparql-query/#func-RDFterm-equal
    class NotEqual < Equal
      NAME = :'!='

      ##
      # Returns `true` if the operands are not equal; returns `false`
      # otherwise.
      #
      # @param  [RDF::Term] term1
      #   an RDF term
      # @param  [RDF::Term] term2
      #   an RDF term
      # @return [RDF::Literal::Boolean] `true` or `false`
      # @raise  [TypeError] if either operand is not an RDF term
      def apply(term1, term2)
        RDF::Literal(super.false?)
      end
    end # NotEqual
  end # Operator
end; end # SPARQL::Algebra

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
sparql-1.99.1 lib/sparql/algebra/operator/not_equal.rb
sparql-1.1.9.1 lib/sparql/algebra/operator/not_equal.rb
sparql-1.99.0 lib/sparql/algebra/operator/not_equal.rb
sparql-1.1.9 lib/sparql/algebra/operator/not_equal.rb
sparql-1.1.8 lib/sparql/algebra/operator/not_equal.rb
sparql-1.1.7 lib/sparql/algebra/operator/not_equal.rb
sparql-1.1.6 lib/sparql/algebra/operator/not_equal.rb
sparql-1.1.5 lib/sparql/algebra/operator/not_equal.rb
sparql-1.1.4 lib/sparql/algebra/operator/not_equal.rb
sparql-1.1.3 lib/sparql/algebra/operator/not_equal.rb
sparql-1.1.2.1 lib/sparql/algebra/operator/not_equal.rb
sparql-1.1.2 lib/sparql/algebra/operator/not_equal.rb
sparql-1.1.1 lib/sparql/algebra/operator/not_equal.rb
sparql-1.1.0 lib/sparql/algebra/operator/not_equal.rb
sparql-1.1.0p0 lib/sparql/algebra/operator/not_equal.rb
sparql-1.0.8 lib/sparql/algebra/operator/not_equal.rb
sparql-1.0.7 lib/sparql/algebra/operator/not_equal.rb
sparql-1.0.6 lib/sparql/algebra/operator/not_equal.rb
sparql-1.0.5 lib/sparql/algebra/operator/not_equal.rb
sparql-1.0.4 lib/sparql/algebra/operator/not_equal.rb