Sha256: e4f8749d19d5cdc120637540a529d0c40ade67c1c3b97ef02a92e0aa41b005fe

Contents?: true

Size: 546 Bytes

Versions: 1

Compression:

Stored size: 546 Bytes

Contents

module ShEx::Algebra
  ##
  class Not < Operator::Unary
    include Satisfiable
    NAME = :not

    #
    # S is a ShapeNot and for the shape expression se2 at shapeExpr, notSatisfies(n, se2, G, m).
    # @param [RDF::Resource] n
    # @return [Boolean] `true` when satisfied, meaning that the operand was not satisfied
    # @raise [ShEx::NotSatisfied] if not satisfied, meaning that the operand was satisfied
    def satisfies?(n)
      status ""
      operands.last.not_satisfies?(n)
      status "not satisfied"
      true
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shex-0.1.0 lib/shex/algebra/not.rb