Module: ShEx::Algebra::ShapeExpression

Included in:
And, External, NodeConstraint, Not, Or, Shape, Start
Defined in:
lib/shex/algebra/shape_expression.rb

Overview

Implements ‘satisfies?` and `not_satisfies?`

Instance Method Summary collapse

Instance Method Details

#satisfies?(focus, depth: 0, **options) ⇒ ShapeExpression

Satisfies method

Parameters:

  • focus (RDF::Resource)
  • depth (Integer) (defaults to: 0)

    for logging

  • options (Hash{Symbol => Object})

    Other, operand-specific options

Returns:

  • (ShapeExpression)

    with ‘matched` and `satisfied` accessors for matched triples and sub-expressions

Raises:

  • (ShEx::NotMatched)

    with ‘expression` accessor to access `matched` and `unmatched` statements along with `satisfied` and `unsatisfied` operations.

See Also:



15
16
17
# File 'lib/shex/algebra/shape_expression.rb', line 15

def satisfies?(focus, depth: 0, **options)
  raise NotImplementedError, "#satisfies? Not implemented in #{self.class}"
end