Module: ShEx::Algebra::Satisfiable

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

Overview

Implements ‘satisfies?` and `not_satisfies?`

Instance Method Summary collapse

Instance Method Details

#satisfiable?Boolean

This operator includes Satisfiable

Returns:

  • (Boolean)


20
# File 'lib/shex/algebra/satisfiable.rb', line 20

def satisfiable?; true; end

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

Satisfies method

Parameters:

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

    for logging

  • options (Hash{Symbol => Object})

    Other, operand-specific options

Returns:

  • (Operator)

    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/satisfiable.rb', line 15

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