Class: SPARQL::Algebra::Operator::Unary Abstract

Inherits:
SPARQL::Algebra::Operator show all
Defined in:
lib/sparql/algebra/operator.rb

Overview

This class is abstract.

A SPARQL unary operator.

Operators of this kind take one operand.

Direct Known Subclasses

Bound, Datatype, IsBlank, IsIRI, IsLiteral, Lang, Minus, Not, Plus, Str

Constant Summary

ARITY =
1

Instance Method Summary (collapse)

Methods inherited from SPARQL::Algebra::Operator

#boolean, #constant?, evaluate, #evaluate, #operand, #to_sse, #variable?

Constructor Details

- (Unary) initialize(arg, options = {})

A new instance of Unary

Parameters:



173
174
175
176
# File 'lib/sparql/algebra/operator.rb', line 173

def initialize(arg, options = {})
  @operands = [arg]
  super(options)
end