class SPARQL::Algebra::Operator::NotEqual

The SPARQL relational `!=` (not equal) comparison operator.

@see www.w3.org/TR/sparql11-query/#OperatorMapping @see www.w3.org/TR/sparql11-query/#func-RDFterm-equal

Constants

NAME

Public Instance Methods

apply(term1, term2, **options) click to toggle source

Returns `true` if the operands are not equal; returns `false` otherwise.

Comparing unknown datatypes might have different lexical forms but be the same value.

@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

Calls superclass method SPARQL::Algebra::Operator::Equal#apply
# File lib/sparql/algebra/operator/not_equal.rb, line 23
def apply(term1, term2, **options)
  RDF::Literal(super.false?)
end