class RDF::N3::Algebra::Str::NotMatches

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.

Constants

NAME
URI

Public Instance Methods

apply(text, pattern) click to toggle source

@param [RDF::Literal] text

a simple literal

@param [RDF::Literal] pattern

a simple literal

@return [RDF::Literal::Boolean] ‘true` or `false` @see www.w3.org/TR/xpath-functions/#regex-syntax

Calls superclass method RDF::N3::Algebra::Str::Matches#apply
# File lib/rdf/n3/algebra/str/not_matches.rb, line 14
def apply(text, pattern)
  RDF::Literal(super != RDF::Literal::TRUE)
end