Class: RDF::N3::Algebra::Log::NotIncludes
- Inherits:
-
Includes
- Object
- SPARQL::Algebra::Operator::Binary
- ResourceOperator
- Includes
- RDF::N3::Algebra::Log::NotIncludes
- Defined in:
- lib/rdf/n3/algebra/log/not_includes.rb
Overview
The object formula is NOT a subset of subject. True iff log:includes is false. The converse of log:includes. (Understood natively by cwm. The subject formula may contain variables.)
(In cwm, variables must of course end up getting bound before the log:include test can be done, or an infinite result set would result)
Related: See includes
Constant Summary collapse
Instance Attribute Summary
Attributes included from Enumerable
Instance Method Summary collapse
-
#execute(queryable, solutions:, **options) ⇒ RDF::Solutions
Uses log:includes and returns a solution if log:includes fails.
Methods inherited from Includes
#apply, #input_operand, #resolve
Methods inherited from ResourceOperator
#as_literal, #input_operand, #resolve, #valid?
Methods included from Builtin
#each, #evaluate, #hash, #input_operand, #rank, #to_uri
Instance Method Details
#execute(queryable, solutions:, **options) ⇒ RDF::Solutions
Uses log:includes and returns a solution if log:includes fails
23 24 25 |
# File 'lib/rdf/n3/algebra/log/not_includes.rb', line 23 def execute(queryable, solutions:, **) super.empty? ? RDF::Query::Solutions(RDF::Query::Solution.new) : RDF::Query::Solutions.new end |