Class: RDF::N3::Algebra::Str::NotMatches

Inherits:
Matches show all
Defined in:
lib/rdf/n3/algebra/str/not_matches.rb

Overview

The subject string; the object is a regular expression in the perl, python style. It is true iff the string does NOT match the regexp.

Constant Summary collapse

NAME =
:strNotMatches
URI =
RDF::N3::Str.notMatches

Instance Attribute Summary

Attributes included from Enumerable

#existentials, #universals

Instance Method Summary collapse

Methods inherited from Matches

#input_operand, #resolve

Methods inherited from ResourceOperator

#as_literal, #execute, #input_operand, #resolve, #valid?

Methods included from Builtin

#each, #evaluate, #hash, #input_operand, #rank, #to_uri

Instance Method Details

#apply(text, pattern) ⇒ RDF::Literal::Boolean

Returns true or false.

Parameters:

Returns:

  • (RDF::Literal::Boolean)

    true or false

See Also:



14
15
16
# File 'lib/rdf/n3/algebra/str/not_matches.rb', line 14

def apply(text, pattern)
  RDF::Literal(super != RDF::Literal::TRUE)
end