lib/shex/algebra/node_constraint.rb in shex-0.3.0 vs lib/shex/algebra/node_constraint.rb in shex-0.4.0
- old
+ new
@@ -1,9 +1,9 @@
module ShEx::Algebra
##
class NodeConstraint < Operator
- include Satisfiable
+ include ShapeExpression
NAME = :nodeConstraint
##
# Creates an operator instance from a parsed ShExJ representation
# @param (see Operator#from_shexj)
@@ -13,12 +13,12 @@
super
end
#
# S is a NodeConstraint and satisfies2(focus, se) as described below in Node Constraints. Note that testing if a node satisfies a node constraint does not require a graph or shapeMap.
- # @param (see Satisfiable#satisfies?)
- # @return (see Satisfiable#satisfies?)
- # @raise (see Satisfiable#satisfies?)
+ # @param (see ShapeExpression#satisfies?)
+ # @return (see ShapeExpression#satisfies?)
+ # @raise (see ShapeExpression#satisfies?)
def satisfies?(focus, depth: 0)
status "", depth: depth
satisfies_node_kind?(focus, depth: depth + 1) &&
satisfies_datatype?(focus, depth: depth + 1) &&
satisfies_string_facet?(focus, depth: depth + 1) &&