Sha256: cd86ad979b91c65927ae2162fa1df1fdfe8ae1bcd26de4454b4d57370aeae2da

Contents?: true

Size: 801 Bytes

Versions: 7

Compression:

Stored size: 801 Bytes

Contents

require 'sparql/algebra'

module ShEx::Algebra
  # Implements `satisfies?` and `not_satisfies?`
  module ShapeExpression
    ##
    # Satisfies method
    # @param [RDF::Resource] focus
    # @param [Integer] depth for logging
    # @param [Hash{Symbol => Object}] options
    #   Other, operand-specific options
    # @return [ShapeExpression] with `matched` and `satisfied` accessors for matched triples and sub-expressions
    # @raise [ShEx::NotMatched] with `expression` accessor to access `matched` and `unmatched` statements along with `satisfied` and `unsatisfied` operations.
    # @see [http://shex.io/shex-semantics/#shape-expression-semantics]
    def satisfies?(focus, depth: 0, **options)
      raise NotImplementedError, "#satisfies? Not implemented in #{self.class}"
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
shex-0.6.3 lib/shex/algebra/shape_expression.rb
shex-0.6.2 lib/shex/algebra/shape_expression.rb
shex-0.6.1 lib/shex/algebra/shape_expression.rb
shex-0.6.0 lib/shex/algebra/shape_expression.rb
shex-0.5.2 lib/shex/algebra/shape_expression.rb
shex-0.5.1 lib/shex/algebra/shape_expression.rb
shex-0.5.0 lib/shex/algebra/shape_expression.rb