Class: ShEx::Algebra::Operator::Unary Abstract
- Inherits:
-
ShEx::Algebra::Operator
- Object
- ShEx::Algebra::Operator
- ShEx::Algebra::Operator::Unary
- Defined in:
- vendor/bundler/ruby/3.3.0/bundler/gems/shex-f64040a493d0/lib/shex/algebra/operator.rb
Overview
A unary operator.
Operators of this kind take one operand.
Constant Summary collapse
- ARITY =
1
Constants included from SPARQL::Algebra::Expression
SPARQL::Algebra::Expression::PATTERN_PARENTS
Constants included from RDF::Util::Logger
Instance Attribute Summary
Attributes inherited from ShEx::Algebra::Operator
#id, #logger, #operands, #options, #schema
Instance Method Summary collapse
-
#initialize(arg1, **options) ⇒ Unary
constructor
A new instance of Unary.
Methods inherited from ShEx::Algebra::Operator
#base_uri, #closed?, #dup, #each_descendant, #eql?, #expression, #expressions, #find, #focus, #focus=, from_shexj, #inspect, iri, #iri, #json_type, #matched, #matched=, #message, #message=, #not_matched, #not_satisfied, #operand, #parent, #parent=, #references, #satisfied, #satisfied=, #satisfy, #semact?, #semantic_actions, #serialize_value, #status, #structure_error, #to_h, #to_json, #to_sxp, #to_sxp_bin, #triple_expression?, #unmatched, #unmatched=, #unsatisfied, #unsatisfied=, #validate!, value, #value
Methods included from SPARQL::Algebra::Expression
cast, #constant?, #evaluate, extension, extension?, extensions, for, #invalid?, new, #node?, open, #optimize, #optimize!, parse, register_extension, #to_sxp_bin, #valid?, #validate!, #variable?
Methods included from RDF::Util::Logger
#log_debug, #log_depth, #log_error, #log_fatal, #log_info, #log_recover, #log_recovering?, #log_statistics, #log_warn, #logger
Constructor Details
#initialize(arg1, **options) ⇒ Unary
Returns a new instance of Unary.
696 697 698 699 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/shex-f64040a493d0/lib/shex/algebra/operator.rb', line 696 def initialize(arg1, **) raise ArgumentError, "wrong number of arguments (given 2, expected 1)" unless .is_a?(Hash) super end |