Class: SPARQL::Algebra::Operator::NotEqual
- Inherits:
-
Equal
- Object
- SPARQL::Algebra::Operator
- Binary
- Compare
- Equal
- SPARQL::Algebra::Operator::NotEqual
- Defined in:
- lib/sparql/algebra/operator/not_equal.rb
Overview
The SPARQL relational != (not equal) comparison operator.
Constant Summary
- NAME =
!=
Constants inherited from Binary
Constants inherited from SPARQL::Algebra::Operator
Instance Attribute Summary
Attributes inherited from SPARQL::Algebra::Operator
Instance Method Summary (collapse)
-
- (RDF::Literal::Boolean) apply(term1, term2)
Returns
trueif the operands are not equal; returnsfalseotherwise.
Methods included from Evaluatable
Methods inherited from Binary
Methods inherited from SPARQL::Algebra::Operator
arity, base_uri, #base_uri, base_uri=, #boolean, #constant?, #eql?, #evaluatable?, evaluate, #executable?, for, #initialize, #inspect, #operand, #optimize, prefixes, #prefixes, prefixes=, #to_sse, #to_sxp, #variable?
Methods included from Expression
cast, #constant?, #evaluate, for, new, open, #optimize, parse, #to_sse, #variable?
Constructor Details
This class inherits a constructor from SPARQL::Algebra::Operator::Binary
Instance Method Details
- (RDF::Literal::Boolean) apply(term1, term2)
Returns true if the operands are not equal; returns false
otherwise.
21 22 23 |
# File 'lib/sparql/algebra/operator/not_equal.rb', line 21 def apply(term1, term2) RDF::Literal(super.false?) end |