Class: SPARQL::Algebra::Operator::NotEqual
- Defined in:
- lib/sparql/algebra/operator/not_equal.rb
Overview
The SPARQL relational != (not equal) comparison operator.
[114] RelationalExpression ::= NumericExpression ('!=' NumericExpression)?
Constant Summary collapse
- NAME =
:'!='
Instance Method Summary collapse
-
#apply(term1, term2, **options) ⇒ RDF::Literal::Boolean
Returns
trueif the operands are not equal; returnsfalseotherwise.
Methods inherited from Compare
Methods included from Evaluatable
#evaluate, #memoize, #replace_aggregate!, #replace_vars!
Instance Method Details
#apply(term1, term2, **options) ⇒ RDF::Literal::Boolean
Returns true if the operands are not equal; returns false
otherwise.
Comparing unknown datatypes might have different lexical forms but be the same value.
36 37 38 |
# File 'lib/sparql/algebra/operator/not_equal.rb', line 36 def apply(term1, term2, **) RDF::Literal(super.false?) end |